File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
19
19
if (MPI_HOME )
20
20
message (STATUS "Using provided MPI_HOME=${MPI_HOME} " )
21
21
else ()
22
- set (MPI_HOME "/opt/intel/oneapi/mpi/latest" )
22
+ # set(MPI_HOME "/opt/intel/oneapi/mpi/latest")
23
+ set (MPI_HOME "/usr/lib/x86_64-linux-gnu/openmpi" )
23
24
message (STATUS "Using default MPI_HOME=${MPI_HOME} " )
24
25
endif ()
25
26
@@ -30,12 +31,12 @@ if(NOT DEFINED ROCM_PATH)
30
31
set (ROCM_PATH $ENV{ROCM_PATH} CACHE PATH "Path to which HIP has been installed" )
31
32
endif ()
32
33
endif ()
33
- set (CMAKE_MODULE_PATH "${ROCM_PATH} /hip /cmake" ${CMAKE_MODULE_PATH} )
34
+ set (CMAKE_MODULE_PATH "${ROCM_PATH} /lib /cmake/hip " ${CMAKE_MODULE_PATH} )
34
35
set (HIP_INCLUDE_DIRS "${ROCM_PATH} /include" ${HIP_INCLUDE_DIRS} )
35
36
set (HIP_LIBRARIES "${ROCM_PATH} /lib" ${HIP_LIBRARIES} )
36
37
37
38
set (DEF_WL_CXX_FLAGS " -D__HIP_PLATFORM_AMD__ " )
38
- set (DEF_GENERAL_CXX_FLAGS " -cxx=hipcc - O3 -std=c++17 -fopenmp " )
39
+ set (DEF_GENERAL_CXX_FLAGS " -O3 -std=c++17 " )
39
40
set (DEF_COMBINED_CXX_FLAGS "${DEF_GENERAL_CXX_FLAGS} ${DEF_WL_CXX_FLAGS} " )
40
41
41
42
# -DCMAKE_CXX_FLAGS=" -blah -blah " overrides the default flags (BOTH general and WL specific)
@@ -79,4 +80,4 @@ include_directories(
79
80
80
81
add_executable (SeisAcoMod2D ${SOURCES} )
81
82
82
- target_link_libraries (SeisAcoMod2D -L${MPI_HOME}/lib -L${HIP_LIBRARIES} )
83
+ target_link_libraries (SeisAcoMod2D -L${HIP_LIBRARIES} -L${MPI_HOME}/lib -lmpi_cxx -lmpi )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if(NOT DEFINED ROCM_PATH)
35
35
set (ROCM_PATH $ENV{ROCM_PATH} CACHE PATH "Path to which HIP has been installed" )
36
36
endif ()
37
37
endif ()
38
- set (CMAKE_MODULE_PATH "${ROCM_PATH} /hip /cmake" ${CMAKE_MODULE_PATH} )
38
+ set (CMAKE_MODULE_PATH "${ROCM_PATH} /lib /cmake/hip " ${CMAKE_MODULE_PATH} )
39
39
set (HIP_INCLUDE_DIRS "${ROCM_PATH} /include" ${HIP_INCLUDE_DIRS} )
40
40
set (HIP_LIBRARIES "${ROCM_PATH} /lib" ${HIP_LIBRARIES} )
41
41
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ if(NOT DEFINED ROCM_PATH)
23
23
set (ROCM_PATH $ENV{ROCM_PATH} CACHE PATH "Path to which HIP has been installed" )
24
24
endif ()
25
25
endif ()
26
- set (CMAKE_MODULE_PATH "${ROCM_PATH} /hip /cmake" ${CMAKE_MODULE_PATH} )
26
+ set (CMAKE_MODULE_PATH "${ROCM_PATH} /lib /cmake/hip " ${CMAKE_MODULE_PATH} )
27
27
set (HIP_INCLUDE_DIRS "${ROCM_PATH} /include" ${HIP_INCLUDE_DIRS} )
28
28
set (HIP_LIBRARIES "${ROCM_PATH} /lib" ${HIP_LIBRARIES} )
29
29
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if(NOT DEFINED ROCM_PATH)
36
36
set (ROCM_PATH $ENV{ROCM_PATH} CACHE PATH "Path to which HIP has been installed" )
37
37
endif ()
38
38
endif ()
39
- set (CMAKE_MODULE_PATH "${ROCM_PATH} /hip /cmake" ${CMAKE_MODULE_PATH} )
39
+ set (CMAKE_MODULE_PATH "${ROCM_PATH} /lib /cmake/hip " ${CMAKE_MODULE_PATH} )
40
40
set (HIP_INCLUDE_DIRS "${ROCM_PATH} /include" ${HIP_INCLUDE_DIRS} )
41
41
set (HIP_LIBRARIES "${ROCM_PATH} /lib" ${HIP_LIBRARIES} )
42
42
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if(NOT DEFINED ROCM_PATH)
43
43
set (ROCM_PATH $ENV{ROCM_PATH} CACHE PATH "Path to which HIP has been installed" )
44
44
endif ()
45
45
endif ()
46
- set (CMAKE_MODULE_PATH "${ROCM_PATH} /hip /cmake" ${CMAKE_MODULE_PATH} )
46
+ set (CMAKE_MODULE_PATH "${ROCM_PATH} /lib /cmake/hip " ${CMAKE_MODULE_PATH} )
47
47
set (HIP_INCLUDE_DIRS "${ROCM_PATH} /include" ${HIP_INCLUDE_DIRS} )
48
48
set (HIP_LIBRARIES "${ROCM_PATH} /lib" ${HIP_LIBRARIES} )
49
49
@@ -78,6 +78,7 @@ set(SOURCES
78
78
${CMAKE_SOURCE_DIR} /src/utils/math_utils.cpp
79
79
${CMAKE_SOURCE_DIR} /src/utils/matrix_broadcast_utils.cpp
80
80
${CMAKE_SOURCE_DIR} /src/utils/reduce_utils.cpp
81
+ ${CMAKE_SOURCE_DIR} /../data/verify.cpp
81
82
82
83
# Kernels
83
84
${CMAKE_SOURCE_DIR} /src/kernels/apply_forces.cpp
@@ -95,6 +96,7 @@ set(SOURCES
95
96
include_directories (
96
97
${CMAKE_SOURCE_DIR} /src
97
98
${CMAKE_SOURCE_DIR} /src/include
99
+ ${CMAKE_SOURCE_DIR} /../data
98
100
${HIP_INCLUDE_DIRS}
99
101
)
100
102
You can’t perform that action at this time.
0 commit comments