Skip to content

Commit 41a03d8

Browse files
committed
Merge branch 'develop'
2 parents 3708ac2 + f88fa84 commit 41a03d8

File tree

135 files changed

+76145
-74955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+76145
-74955
lines changed

CMakeLists.txt

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ endif(NOT CMAKE_BUILD_TYPE)
1111
message(STATUS "Build type: " ${CMAKE_BUILD_TYPE})
1212

1313
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
14+
option(ENABLE_MPI "Enable MPI Parallelization" ON)
1415
enable_language(C Fortran)
1516

1617
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
@@ -19,17 +20,28 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
1920
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
2021
set(CMAKE_MACOSX_RPATH 1)
2122

22-
find_package(OpenMP)
23-
if(OPENMP_FOUND)
24-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
25-
endif(OPENMP_FOUND)
23+
if(CMAKE_C_COMPILER_ID STREQUAL "Intel")
24+
if("${CMAKE_C_COMPILER_VERSION}" VERSION_LESS "15.0.0.20140528")
25+
set(OMP_FLAG_Intel "-openmp")
26+
else()
27+
set(OMP_FLAG_Intel "-qopenmp")
28+
endif()
29+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OMP_FLAG_Intel}")
30+
else()
31+
find_package(OpenMP)
32+
if(OPENMP_FOUND)
33+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
34+
endif(OPENMP_FOUND)
35+
endif()
2636

27-
find_package(MPI)
28-
if(MPI_FOUND)
29-
include_directories(${MPI_C_INCLUDE_PATH})
30-
add_definitions(-DMPI)
31-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_C_LINK_FLAGS}")
32-
endif(MPI_FOUND)
37+
if(ENABLE_MPI)
38+
find_package(MPI)
39+
if(MPI_FOUND)
40+
include_directories(${MPI_C_INCLUDE_PATH})
41+
add_definitions(-DMPI)
42+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_C_LINK_FLAGS}")
43+
endif(MPI_FOUND)
44+
endif(ENABLE_MPI)
3345

3446
find_package(LAPACK)
3547
if(LAPACK_FOUND)

HPhiconfig.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
echo ""
3+
echo "#################### NOTICE ########################"
4+
echo " HPhiconfig.sh will be removed in the future release,"
5+
echo " and only CMake will be supported."
6+
echo "######################################################"
7+
echo ""
28
if [ -z ${1} ] || [ ${1} = "help" ]; then
39
echo ""
410
echo "Usage:"

0 commit comments

Comments
 (0)