Skip to content

Commit

Permalink
Add TODOs for how to parallelize effect application for heterog. delays
Browse files Browse the repository at this point in the history
  • Loading branch information
denisalevi committed Feb 15, 2022
1 parent e7ad71b commit 8ea335d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions brian2cuda/brianlib/cudaVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ class cudaVector
return m_data;
};

__device__ set_size_address(volatile size_type* size)
{
// TODO:
// 1. Mofigy m_size to be a pointer
// 2. Change it's address in here (not sure if method call needs 'volatile'?
// 3. In spikequeue.h, after initializing the queues, declare a
// volatile array of size of queues and change each queues m_size
// parameter with this function here.
// 4. In synapses.cu, get the queue size by indexing this new array
// with current_offset and Memcpy it to host to set the correct kernel
// dimensions.
};

__device__ scalar& at(size_type index)
{
if (index < 0 || index >= m_size)
Expand Down

0 comments on commit 8ea335d

Please sign in to comment.