Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 3e394c4

Browse files
authored
Set by default the number of warps to execute in a large reasonable number and update the related documentation (#700)
1 parent 81dd5ef commit 3e394c4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

coreneuron/apps/corenrn_parameters.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ corenrn_parameters::corenrn_parameters() {
4747
"Print number of instances of each mechanism and detailed memory stats.");
4848

4949
auto sub_gpu = app.add_option_group("GPU", "Commands relative to GPU.");
50-
sub_gpu->add_option("-W, --nwarp", this->nwarp, "Number of warps to balance.", true)
50+
sub_gpu
51+
->add_option("-W, --nwarp",
52+
this->nwarp,
53+
"Number of warps to execute in parallel the Hines solver. Each warp solves a "
54+
"group of cells. (Only used with cell permute 2)",
55+
true)
5156
->check(CLI::Range(0, 1'000'000));
5257
sub_gpu
5358
->add_option("-R, --cell-permute",

coreneuron/apps/corenrn_parameters.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct corenrn_parameters {
4646
unsigned ms_subint = 2; /// Number of multisend interval. 1 or 2
4747
unsigned spkcompress = 0; /// Spike Compression
4848
unsigned cell_interleave_permute = 0; /// Cell interleaving permutation
49-
unsigned nwarp = 0; /// Number of warps to balance for cell_interleave_permute == 2
49+
unsigned nwarp = 1024; /// Number of warps to balance for cell_interleave_permute == 2
5050
unsigned num_gpus = 0; /// Number of gpus to use per node
5151
unsigned report_buff_size = report_buff_size_default; /// Size in MB of the report buffer.
5252
int seed = -1; /// Initialization seed for random number generator (int)

0 commit comments

Comments
 (0)