Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Runtime/omp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ if(OMP_SUPPORTED)
DOWNLOAD_COMMAND ""
# Build with LIBOMP_ENABLE_SHARED=OFF so that libomp.a can be embedded into model.so
# Since OpenMP is not exposed in the LLVM build directory, it must be configured
# and built separately in its own build directory
# and built separately in its own build directory.
# We prefer having all runtime components built in Release mode; if debugging was desired,
# then the CMAKE_BUILD_TYPE can be changed to ${CMAKE_BUILD_TYPE} or Debug as desired.
CONFIGURE_COMMAND sh -c "CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} \
cmake -G Ninja -S ${OPENMP_SOURCE_DIR} \
-B ${OMP_TOPDIR}/openmp-build \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DCMAKE_BUILD_TYPE=Release \
-DLIBOMP_ENABLE_SHARED=OFF"

BUILD_COMMAND sh -c "cmake --build ${OMP_TOPDIR}/openmp-build --target omp"
Expand Down
Loading