File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ ARG MUSA_VERSION=rc3.1.1
2
2
3
3
FROM mthreads/musa:${MUSA_VERSION}-devel-ubuntu22.04 as build
4
4
5
- RUN apt-get update && apt-get install -y cmake
5
+ RUN apt-get update && apt-get install -y ccache cmake git
6
6
7
7
WORKDIR /sd.cpp
8
8
9
9
COPY . .
10
10
11
11
RUN mkdir build && cd build && \
12
- cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_MUSA=ON -DCMAKE_BUILD_TYPE=Release && \
12
+ cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
13
+ -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} -fopenmp -I/usr/lib/llvm-14/lib/clang/14.0.0/include -L/usr/lib/llvm-14/lib" \
14
+ -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fopenmp -I/usr/lib/llvm-14/lib/clang/14.0.0/include -L/usr/lib/llvm-14/lib" \
15
+ -DSD_MUSA=ON -DCMAKE_BUILD_TYPE=Release && \
13
16
cmake --build . --config Release
14
17
15
18
FROM mthreads/musa:${MUSA_VERSION}-runtime-ubuntu22.04 as runtime
You can’t perform that action at this time.
0 commit comments