Skip to content

Commit

Permalink
Merge pull request #645 from jthies/cmake-cuda-fix
Browse files Browse the repository at this point in the history
CMake: Add CUDA include directories if AMGX is to be used
  • Loading branch information
raback authored Feb 10, 2025
2 parents d1be8b4 + 0c3f904 commit ac6f7fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fem/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ ENDIF()

IF(WITH_AMGX)
TARGET_LINK_LIBRARIES(elmersolver Elmer::MPI_C "${AMGX_LIBRARY};${CUDA_LIBRARIES}")
ENDIF()
TARGET_INCLUDE_DIRECTORIES(elmersolver PRIVATE "${CUDA_INCLUDE_DIRS}")
ENDIF()

IF(WITH_Trilinos)
TARGET_LINK_LIBRARIES(elmersolver Elmer::MPI_CXX "${Trilinos_LIBRARIES};${ML_LIBRARIES};${Epetra_LIBRARIES};${Teuchos_LIBRARIES}")
Expand Down

0 comments on commit ac6f7fb

Please sign in to comment.