Skip to content

Commit

Permalink
Sparse: one more change after review
Browse files Browse the repository at this point in the history
  • Loading branch information
lucbv committed Sep 21, 2023
1 parent 0ef521a commit 4dd65a6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions sparse/impl/KokkosSparse_CrsMatrix_traversal_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,7 @@ int64_t crsmatrix_traversal_launch_parameters(int64_t numRows, int64_t nnz,

if (nnz_per_row < 1) nnz_per_row = 1;

int max_vector_length = 1;
#ifdef KOKKOS_ENABLE_CUDA
if (std::is_same<execution_space, Kokkos::Cuda>::value)
max_vector_length = 32;
#endif
#ifdef KOKKOS_ENABLE_HIP
if (std::is_same<execution_space, Kokkos::Experimental::HIP>::value)
max_vector_length = 64;
#endif
int max_vector_length = Kokkos::TeamPolicy<execution_space>::vector_length_max();

if (vector_length < 1) {
vector_length = 1;
Expand Down

0 comments on commit 4dd65a6

Please sign in to comment.