Skip to content

Commit 6f64099

Browse files
committed
[SeisAcoMod2D][CUDA] Fix incorrect linking flags
The flag -L should be only applied to directories containing libraries, not to absolute paths to library files. Fix the flag by removing -L which was resulting in flags like these being added: -L/path/to/libmpicxx.so -L/path/to/libcudart_static.a
1 parent 24460aa commit 6f64099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SeisAcoMod2D/CUDA/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ include_directories(
8484

8585
cuda_add_executable(SeisAcoMod2D ${SOURCES})
8686

87-
target_link_libraries(SeisAcoMod2D -L${MPI_HOME}/lib -L${MPI_CXX_LIBRARIES} -L${CUDA_LIBRARIES})
87+
target_link_libraries(SeisAcoMod2D -L${MPI_HOME}/lib ${MPI_CXX_LIBRARIES} ${CUDA_LIBRARIES})

0 commit comments

Comments
 (0)