Skip to content

Commit

Permalink
Find and link to hipsparse and cusparse.
Browse files Browse the repository at this point in the history
  • Loading branch information
l90lpa committed Nov 15, 2024
1 parent 317c499 commit ccccf70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions hic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if( HAVE_CUDA )
find_package(CUDAToolkit REQUIRED)
elseif( HAVE_HIP )
find_package(hip CONFIG REQUIRED)
find_package(hipsparse CONFIG REQUIRED)
endif()

add_subdirectory( src )
Expand Down
2 changes: 2 additions & 0 deletions hic/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ install( FILES hic/hic_dummy/hic_dummy_runtime.h DESTINATION include/hi

if( HAVE_CUDA )
target_link_libraries( hic INTERFACE CUDA::cudart )
target_link_libraries( hic INTERFACE CUDA::cusparse )
elseif( HAVE_HIP )
target_link_libraries( hic INTERFACE hip::host )
target_link_libraries( hic INTERFACE roc::hipsparse )
endif()

0 comments on commit ccccf70

Please sign in to comment.