Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA] Lanczos solver v2 #2481

Open
wants to merge 35 commits into
base: branch-24.12
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2c68742
init
aamijar Aug 17, 2024
0f5bdcb
benchmarking lanczos working
aamijar Aug 20, 2024
5ee60cb
format style
aamijar Aug 21, 2024
fa222c1
eigsh pylibraft api
aamijar Aug 21, 2024
7240937
gtest
aamijar Aug 21, 2024
a4cdc7a
clean up code
aamijar Aug 21, 2024
2be393a
update gtest rng seed
aamijar Aug 22, 2024
4f37b5c
update gtest edge case
aamijar Aug 22, 2024
79ce3f1
update gtest clean
aamijar Aug 22, 2024
ceb1d7a
resolving pr comments
aamijar Aug 23, 2024
14b7266
resolving pr comments
aamijar Aug 23, 2024
c564352
resolving pr comments
aamijar Aug 23, 2024
aba9c4e
resolving pr comments
aamijar Aug 24, 2024
ba16aca
resolving pr comments
aamijar Aug 24, 2024
74908f2
resolving pr comments
aamijar Aug 24, 2024
7b31108
resolving pr comments
aamijar Aug 27, 2024
2cdcc66
resolving pr comments
aamijar Aug 28, 2024
5aa1df2
Merge branch 'branch-24.10' into lanczos-solver-new
aamijar Aug 30, 2024
e4afa2d
Merge branch 'branch-24.10' into lanczos-solver-new
aamijar Aug 30, 2024
1160722
resolving pr comments
aamijar Sep 9, 2024
e473728
resolving pr comments
aamijar Sep 9, 2024
cc22a39
resolving pr comments
aamijar Sep 9, 2024
8767c6a
resolving pr comments
aamijar Sep 9, 2024
a3809eb
resolving pr comments
aamijar Sep 9, 2024
d4b4955
resolving pr comments
aamijar Sep 9, 2024
2f317b8
Add python test
lowener Oct 30, 2024
428ead4
Resolve PR comments
lowener Nov 1, 2024
985db38
Merge branch 'branch-24.12' into lanczos-solver-new
lowener Nov 1, 2024
2a14b26
Fix style
lowener Nov 1, 2024
9bc731c
Fix doc
lowener Nov 2, 2024
b870aac
Fix merge
lowener Nov 4, 2024
288ea20
Improve detail namespace usage, fix documentation
lowener Nov 5, 2024
80dafb9
Add python doc
lowener Nov 11, 2024
f8078e1
Consider v0 as optional in c++
lowener Nov 14, 2024
16459c7
Merge branch 'branch-24.12' into lanczos-solver-new
cjnolet Nov 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ if(RAFT_COMPILE_LIBRARY)
src/raft_runtime/random/rmat_rectangular_generator_int64_float.cu
src/raft_runtime/random/rmat_rectangular_generator_int_double.cu
src/raft_runtime/random/rmat_rectangular_generator_int_float.cu
src/raft_runtime/solver/lanczos_solver_int64_double.cu
src/raft_runtime/solver/lanczos_solver_int64_float.cu
src/raft_runtime/solver/lanczos_solver_int_double.cu
src/raft_runtime/solver/lanczos_solver_int_float.cu
src/spatial/knn/detail/ball_cover/registers_eps_pass_euclidean.cu
src/spatial/knn/detail/ball_cover/registers_pass_one_2d_dist.cu
src/spatial/knn/detail/ball_cover/registers_pass_one_2d_euclidean.cu
Expand Down
20 changes: 19 additions & 1 deletion cpp/include/raft/sparse/linalg/detail/cusparse_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,25 @@ namespace linalg {
namespace detail {

/**
* @brief create a cuSparse dense descriptor
* @brief create a cuSparse dense descriptor for a vector
* @tparam ValueType Data type of vector_view (float/double)
* @tparam IndexType Type of vector_view
* @param[in] vector_view input raft::device_vector_view
* @returns dense vector descriptor to be used by cuSparse API
*/
template <typename ValueType, typename IndexType>
cusparseDnVecDescr_t create_descriptor(raft::device_vector_view<ValueType, IndexType> vector_view)
{
cusparseDnVecDescr_t descr;
RAFT_CUSPARSE_TRY(raft::sparse::detail::cusparsecreatednvec(
&descr,
vector_view.extent(0),
const_cast<std::remove_const_t<ValueType>*>(vector_view.data_handle())));
return descr;
}

/**
* @brief create a cuSparse dense descriptor for a matrix
* @tparam ValueType Data type of dense_view (float/double)
* @tparam IndexType Type of dense_view
* @tparam LayoutPolicy layout of dense_view
Expand Down
Loading
Loading