Debian Codegraph @

packages/seacas/applications/epu/CMakeLists.txt

raw
1 # This will build one or two versions of epu.
2 # In a MPI-enabled build, it will build 'epu' which is a serial application and 'pepu' which is a parallel-enabled epu
3 # In a serial, non-MPI-enabled build, it will only build 'epu'.
4 # On some platforms, both applications may perform the same if run in serial; however, some platforms require
5 # parallel applications to be run on a compute-partition. We used to just build a parallel-enabled epu
6 # when MPI was enabled, but this caused issues for users on those platforms which would not allow a
7 # parallel application to be run on a non-compute partition, so now we build two versions...
8
9 TRIBITS_SUBPACKAGE(Epu)
10
11 TRIBITS_INCLUDE_DIRECTORIES(
12 "${CMAKE_CURRENT_SOURCE_DIR}"
13 )
14
15 SET(HEADERS "")
16 APPEND_GLOB(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/EP_ExodusFile.C
17 ${CMAKE_CURRENT_SOURCE_DIR}/EP_Internals.C
18 ${CMAKE_CURRENT_SOURCE_DIR}/EP_ParallelDisks.C
19 ${CMAKE_CURRENT_SOURCE_DIR}/EP_SystemInterface.C)
20
21 #disabling on PGI due to an odd compiler issue with the compiler generated assembly.
22 #this error only seems to manifest on pgi 11.1, however, the version of the compiler
23 #is not given for pgi compilers unfortunately so we can't be more specific
24 IF(NOT __LINUX_COMPILER_PGI)
25 TRIBITS_ADD_EXECUTABLE(
26 epu
27 NOEXEPREFIX
28 NOEXESUFFIX
29 SOURCES ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/epu.C
30 INSTALLABLE
31 )
32 IF (TPL_ENABLE_MPI)
33 TRIBITS_ADD_EXECUTABLE(
34 pepu
35 NOEXEPREFIX
36 NOEXESUFFIX
37 SOURCES ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/pepu.C
38 COMM mpi
39 INSTALLABLE
40 )
41 target_compile_definitions(pepu PUBLIC SEACAS_HAVE_MPI)
42 ENDIF()
43 ENDIF()
44
45 TRIBITS_SUBPACKAGE_POSTPROCESS()