Skip to content

Commit

Permalink
Merge pull request ComputationalRadiationPhysics#904 from psychocoder…
Browse files Browse the repository at this point in the history
…HPC/topic-addOpenMPSupport

add `OpenMP` support
  • Loading branch information
BenjaminW3 committed Jun 3, 2015
2 parents 2657763 + 7211f79 commit 987635a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/picongpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,18 @@ if( (Boost_VERSION EQUAL 105500) AND
"${CUDA_NVCC_FLAGS} \"-DBOOST_NOINLINE=__attribute__((noinline))\" ")
endif()

################################################################################
# OPENMP
##############################################################################

FIND_PACKAGE(OpenMP)
IF(NOT OPENMP_FOUND)
MESSAGE(STATUS "Disable OpenMP: Can't find library")

ELSE()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
ENDIF()


################################################################################
# Find mallocMC
Expand Down

0 comments on commit 987635a

Please sign in to comment.