Add rocalutionSolver

This commit is contained in:
Tong Dong Qiu
2022-10-18 13:59:00 +02:00
parent fd145e2cd7
commit ea73a1bf3c
7 changed files with 360 additions and 2 deletions

View File

@@ -297,6 +297,12 @@ if(OpenCL_FOUND)
endif()
endif()
find_package(rocalution)
if(ROCALUTION_FOUND)
set(HAVE_ROCALUTION 1)
endif()
# read the list of components from this file (in the project directory);
# it should set various lists with the names of the files to include
include (CMakeLists_files.cmake)
@@ -538,6 +544,10 @@ if(OpenCL_FOUND)
target_link_libraries( opmsimulators PUBLIC ${OpenCL_LIBRARIES} )
endif()
if(ROCALUTION_FOUND)
target_include_directories(opmsimulators PRIVATE ${rocalution_INCLUDE_DIR}/rocalution)
endif()
if(VexCL_FOUND)
target_link_libraries( opmsimulators PUBLIC OPM::VexCL::OpenCL )
endif()