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

update cuda auto csr param #407

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Changes from all commits
Commits
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
6 changes: 2 additions & 4 deletions include/ginkgo/core/matrix/csr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,10 @@ class Csr : public EnableLinOp<Csr<ValueType, IndexType>>,
// if the number of stored elements is larger than <nnz_limit> or
// the maximum number of stored elements per row is larger than
// <row_len_limit>, use load_balance otherwise use classical
// CUDA: nnz_limit = 1e6, row_len_limit = 64
// TODO: need to tune CUDA parameters according to new classical
// strategy
// CUDA: nnz_limit = 1e6, row_len_limit = 1024
// AMD: nnz_limit = 1e8, row_len_limit = 768
index_type nnz_limit = 1e6;
index_type row_len_limit = 64;
index_type row_len_limit = 1024;
#if GINKGO_HIP_PLATFORM_HCC
if (!cuda_strategy_) {
nnz_limit = 1e8;
Expand Down