Skip to content

Commit

Permalink
Merge Pull Request trilinos#6308 from cgcgcg/Trilinos/fixSuggestedVec…
Browse files Browse the repository at this point in the history
…Size

Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Fix suggested vector size when nr == 0
PR Author: cgcgcg
  • Loading branch information
trilinos-autotester authored Nov 20, 2019
2 parents 2ab6ccc + e87f991 commit dbde32c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ inline int kk_get_suggested_vector_size(
break;
case Exec_CUDA:

suggested_vector_size_ = nnz / double (nr) + 0.5;
if (nr > 0)
suggested_vector_size_ = nnz / double (nr) + 0.5;
if (suggested_vector_size_ < 3){
suggested_vector_size_ = 2;
}
Expand Down

0 comments on commit dbde32c

Please sign in to comment.