Implement PR comments

This commit is contained in:
Tong Dong Qiu 2023-02-28 16:21:21 +01:00
parent eaef4b8c85
commit 2c50951ddd
2 changed files with 5 additions and 3 deletions

View File

@ -239,6 +239,8 @@ if(hip_FOUND)
if(rocsparse_FOUND AND rocblas_FOUND) if(rocsparse_FOUND AND rocblas_FOUND)
set(HAVE_ROCSPARSE 1) set(HAVE_ROCSPARSE 1)
set(COMPILE_BDA_BRIDGE 1) set(COMPILE_BDA_BRIDGE 1)
else()
unset(HAVE_ROCSPARSE)
endif() endif()
if(${CXX_COMPILER} STREQUAL "hipcc") if(${CXX_COMPILER} STREQUAL "hipcc")
find_package(rocalution) find_package(rocalution)
@ -569,8 +571,8 @@ if(ROCALUTION_FOUND)
endif() endif()
if(rocsparse_FOUND AND rocblas_FOUND) if(rocsparse_FOUND AND rocblas_FOUND)
target_link_libraries( opmsimulators PUBLIC rocsparse ) target_link_libraries( opmsimulators PUBLIC roc::rocsparse )
target_link_libraries( opmsimulators PUBLIC rocblas ) target_link_libraries( opmsimulators PUBLIC roc::rocblas )
endif() endif()
if(VexCL_FOUND) if(VexCL_FOUND)

View File

@ -101,7 +101,7 @@ BdaBridge<BridgeMatrix, BridgeVector, block_size>::BdaBridge(std::string acceler
use_gpu = true; // should be replaced by a 'use_bridge' boolean use_gpu = true; // should be replaced by a 'use_bridge' boolean
backend.reset(new Opm::Accelerator::rocsparseSolverBackend<block_size>(linear_solver_verbosity, maxit, tolerance, platformID, deviceID)); backend.reset(new Opm::Accelerator::rocsparseSolverBackend<block_size>(linear_solver_verbosity, maxit, tolerance, platformID, deviceID));
#else #else
OPM_THROW(std::logic_error, "Error openclSolver was chosen, but rocsparse was not found by CMake"); OPM_THROW(std::logic_error, "Error rocsparseSolver was chosen, but rocsparse/rocblas was not found by CMake");
#endif #endif
} else if (accelerator_mode.compare("none") == 0) { } else if (accelerator_mode.compare("none") == 0) {
use_gpu = false; use_gpu = false;