Skip to content

Commit

Permalink
Fix bug in CudaSpikeQueue creation
Browse files Browse the repository at this point in the history
When the synapses_initialise_queue kernel was called with less then the
maximum of available threads per block, not all spikequeues were
initialised correctly.
  • Loading branch information
denisalevi committed Jan 7, 2018
1 parent e8223c3 commit d415eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions brian2cuda/templates/synapses_initialise_queue.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace {
__global__ void _run_{{codeobj_name}}_kernel(
unsigned int _source_N,
unsigned int _num_blocks,
unsigned int _num_threads_per_block,
unsigned int _num_threads,
double _dt,
unsigned int _syn_N,
unsigned int num_delays,
Expand All @@ -29,7 +29,7 @@ __global__ void _run_{{codeobj_name}}_kernel(

{{pathobj}}.queue->prepare(
tid,
_num_threads_per_block,
_num_threads,
_num_blocks,
0,
_source_N,
Expand Down Expand Up @@ -405,7 +405,7 @@ void _run_{{pathobj}}_initialise_queue()
_run_{{codeobj_name}}_kernel<<<num_blocks, num_threads>>>(
source_N,
num_parallel_blocks,
max_threads_per_block,
num_threads,
dt,
syn_N,
num_delays,
Expand Down

0 comments on commit d415eba

Please sign in to comment.