Skip to content

Commit

Permalink
add OpenMP support
Browse files Browse the repository at this point in the history
add `find_package(OpenMP)` to `CMakeLists.txt`
  • Loading branch information
psychocoderHPC committed Jun 3, 2015
1 parent f0ba515 commit 7211f79
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/picongpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2013-2014 Axel Huebl, Benjamin Schneider, Felix Schmitt, Heiko Burau, Rene Widera
# Copyright 2013-2015 Axel Huebl, Benjamin Schneider, Felix Schmitt, Heiko Burau, Rene Widera
#
# This file is part of PIConGPU.
#
Expand Down Expand Up @@ -268,6 +268,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()


################################################################################
# PMacc options
Expand Down

0 comments on commit 7211f79

Please sign in to comment.