Skip to content

Commit 987635a

Browse files
committed
Merge pull request ComputationalRadiationPhysics#904 from psychocoderHPC/topic-addOpenMPSupport
add `OpenMP` support
2 parents 2657763 + 7211f79 commit 987635a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/picongpu/CMakeLists.txt

+12
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,18 @@ if( (Boost_VERSION EQUAL 105500) AND
254254
"${CUDA_NVCC_FLAGS} \"-DBOOST_NOINLINE=__attribute__((noinline))\" ")
255255
endif()
256256

257+
################################################################################
258+
# OPENMP
259+
##############################################################################
260+
261+
FIND_PACKAGE(OpenMP)
262+
IF(NOT OPENMP_FOUND)
263+
MESSAGE(STATUS "Disable OpenMP: Can't find library")
264+
265+
ELSE()
266+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
267+
ENDIF()
268+
257269

258270
################################################################################
259271
# Find mallocMC

0 commit comments

Comments
 (0)