@@ -97,8 +97,6 @@ void faster_dot_on_csr(raft::resources const& handle,
9797{
9898 if (nnz == 0 || n_rows == 0 ) return ;
9999
100- auto stream = resource::get_cuda_stream (handle);
101-
102100 constexpr value_idx MAX_ROW_PER_ITER = 500 ;
103101 int dev_id, sm_count, blocks_per_sm;
104102
@@ -115,7 +113,7 @@ void faster_dot_on_csr(raft::resources const& handle,
115113 (std::min (value_idx (blocks_per_sm * sm_count * 16 ), nnz) + block_x - 1 ) / block_x;
116114 dim3 blocks (block_x, block_y, 1 );
117115
118- raft::launch_kernel (stream , blocks, tpb, smem_size)(
116+ raft::launch_kernel (handle , blocks, tpb, smem_size)(
119117 faster_dot_on_csr_kernel<value_idx, value_t , dot_t >,
120118 dot,
121119 indptr,
@@ -135,7 +133,7 @@ void faster_dot_on_csr(raft::resources const& handle,
135133 (std::min (value_idx (blocks_per_sm * sm_count * 16 ), nnz) + block_x - 1 ) / block_x;
136134 dim3 blocks (block_x, block_y, 1 );
137135
138- raft::launch_kernel (stream , blocks, tpb, smem_size)(
136+ raft::launch_kernel (handle , blocks, tpb, smem_size)(
139137 faster_dot_on_csr_kernel<value_idx, value_t , dot_t >,
140138 dot,
141139 indptr,
@@ -154,7 +152,7 @@ void faster_dot_on_csr(raft::resources const& handle,
154152 (std::min (value_idx (blocks_per_sm * sm_count * 16 ), nnz) + block_x - 1 ) / block_x;
155153 dim3 blocks (block_x, block_y, 1 );
156154
157- raft::launch_kernel (stream , blocks, tpb, smem_size)(
155+ raft::launch_kernel (handle , blocks, tpb, smem_size)(
158156 faster_dot_on_csr_kernel<value_idx, value_t , dot_t >,
159157 dot,
160158 indptr,
@@ -173,7 +171,7 @@ void faster_dot_on_csr(raft::resources const& handle,
173171 (std::min (value_idx (blocks_per_sm * sm_count * 16 ), nnz) + block_x - 1 ) / block_x;
174172 dim3 blocks (block_x, block_y, 1 );
175173
176- raft::launch_kernel (stream , blocks, tpb, smem_size)(
174+ raft::launch_kernel (handle , blocks, tpb, smem_size)(
177175 faster_dot_on_csr_kernel<value_idx, value_t , dot_t >,
178176 dot,
179177 indptr,
0 commit comments