Skip to content

Commit

Permalink
[LAPACK][CUSOLVER] Add getri batch funcs (#248)
Browse files Browse the repository at this point in the history
* Add getri batch funcs

* Responding to comments
  • Loading branch information
hdelan authored Jun 2, 2023
1 parent 1f30285 commit 57c5f2b
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 223 deletions.
7 changes: 6 additions & 1 deletion src/lapack/backends/cusolver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
set(LIB_NAME onemkl_lapack_cusolver)
set(LIB_OBJ ${LIB_NAME}_obj)
find_package(cuSOLVER REQUIRED)
find_package(cuBLAS REQUIRED)
set(SOURCES cusolver_lapack.cpp
cusolver_batch.cpp
$<$<STREQUAL:${ONEMKL_SYCL_IMPLEMENTATION},dpc++>:cusolver_scope_handle.cpp >
Expand All @@ -31,10 +32,14 @@ target_include_directories(${LIB_OBJ}
PRIVATE ${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/src/include
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/src/blas/backends/cublas
${CMAKE_BINARY_DIR}/bin
)
target_compile_options(${LIB_OBJ} PRIVATE ${ONEMKL_BUILD_COPT})
target_link_libraries(${LIB_OBJ} PUBLIC ONEMKL::SYCL::SYCL ONEMKL::cuSOLVER::cuSOLVER)
target_link_libraries(${LIB_OBJ}
PUBLIC ONEMKL::SYCL::SYCL
ONEMKL::cuSOLVER::cuSOLVER
ONEMKL::cuBLAS::cuBLAS)
target_compile_features(${LIB_OBJ} PUBLIC cxx_std_11)
set_target_properties(${LIB_OBJ} PROPERTIES
POSITION_INDEPENDENT_CODE ON)
Expand Down
Loading

0 comments on commit 57c5f2b

Please sign in to comment.