Skip to content

Commit

Permalink
dense matrix needs RAJA when GPU is used
Browse files Browse the repository at this point in the history
  • Loading branch information
nychiang committed Feb 2, 2024
1 parent 41ef3d3 commit 8cb2c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ if(HIOP_USE_GPU)
"\n* HIOP_USE_HIP"
)
endif()
set(HIOP_USE_RAJA "ON") #CUDA/HIP requires using RAJA. This dependency will be removed in a future release, after somee necessary implementations.
endif(HIOP_USE_GPU)

if(HIOP_USE_RAJA)
Expand Down
2 changes: 1 addition & 1 deletion src/LinAlg/LinAlgFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ hiopMatrixDense* LinearAlgebraFactory::create_matrix_dense(const ExecSpaceInfo&
return nullptr;
#endif //HIOP_USE_RAJA
} else {// for if(hi.exec_backend_ == "RAJA")

assert(false && "device memory backend not available because HiOp was not built with RAJA");
if(mem_space_upper == "CUDA") {
#ifdef HIOP_USE_CUDA
assert(mem_space_upper == "DEVICE");
Expand Down

0 comments on commit 8cb2c10

Please sign in to comment.