From 8ea335dbb40f9056c680ead66d3a44ff30f9fa36 Mon Sep 17 00:00:00 2001 From: Denis Alevi Date: Tue, 15 Feb 2022 17:34:12 +0100 Subject: [PATCH] Add TODOs for how to parallelize effect application for heterog. delays --- brian2cuda/brianlib/cudaVector.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/brian2cuda/brianlib/cudaVector.h b/brian2cuda/brianlib/cudaVector.h index 1bf30fd8..8344bbd3 100644 --- a/brian2cuda/brianlib/cudaVector.h +++ b/brian2cuda/brianlib/cudaVector.h @@ -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)