GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
GeNNHelperKrnls.h
Go to the documentation of this file.
1 
2 #include <curand_kernel.h>
3 
4 const int BlkSz = 256; //NOTE: This was the best value for our machine even though it supports up to 1204 threads per block. You may try to change it to another value if it works better.
5 
6 /*********************************/
7 //kernels for random number generation
8 /*********************************/
9 
10 __global__ void setup_kernel (curandState *state, unsigned long seed, int sizeofResult);
11 
12 
13 /*********************************/
14 //function to setup the random number generator using the xorwow algorithm
15 /*********************************/
16 
17 void xorwow_setup (curandState *devStates, long int sampleSize, long long int seed);
18 
19 
20 /*********************************/
21 
22 template <typename T>
23 __global__ void generate_random_gpuInput_xorwow (curandState *state, T *result, int sizeofResult, T Rstrength, T Rshift);
24 
25 
26 /*********************************/
27 
28 template <typename T>
29 void generate_random_gpuInput_xorwow (curandState *state, T *result, int sizeofResult, T Rstrength, T Rshift, dim3 sGrid, dim3 sThreads);
__global__ void setup_kernel(curandState *state, unsigned long seed, int sizeofResult)
Definition: GeNNHelperKrnls.cu:8
const int BlkSz
Definition: GeNNHelperKrnls.h:4
void xorwow_setup(curandState *devStates, long int sampleSize, long long int seed)
Definition: GeNNHelperKrnls.cu:18
__global__ void generate_random_gpuInput_xorwow(curandState *state, T *result, int sizeofResult, T Rstrength, T Rshift)
Definition: GeNNHelperKrnls.cu:30