GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
lfsr113.c File Reference
#include <clRNG/lfsr113.h>
#include "private.h"
#include <stdlib.h>
#include "clRNG/private/lfsr113.c.h"

Classes

struct  clrngLfsr113StreamCreator_
 

Macros

#define BASE_CREATOR_STATE   { 987654321, 987654321, 987654321, 987654321 }
 Default initial seed of the first stream. More...
 

Functions

clrngLfsr113StreamCreatorclrngLfsr113CopyStreamCreator (const clrngLfsr113StreamCreator *creator, clrngStatus *err)
 
clrngStatus clrngLfsr113DestroyStreamCreator (clrngLfsr113StreamCreator *creator)
 
clrngStatus clrngLfsr113RewindStreamCreator (clrngLfsr113StreamCreator *creator)
 
clrngStatus clrngLfsr113SetBaseCreatorState (clrngLfsr113StreamCreator *creator, const clrngLfsr113StreamState *baseState)
 
clrngStatus clrngLfsr113ChangeStreamsSpacing (clrngLfsr113StreamCreator *creator, cl_int e, cl_int c)
 
clrngLfsr113StreamclrngLfsr113AllocStreams (size_t count, size_t *bufSize, clrngStatus *err)
 
clrngStatus clrngLfsr113DestroyStreams (clrngLfsr113Stream *streams)
 
void lfsr113AdvanceState (clrngLfsr113StreamState *currentState)
 
clrngStatus clrngLfsr113CreateOverStreams (clrngLfsr113StreamCreator *creator, size_t count, clrngLfsr113Stream *streams)
 
clrngLfsr113StreamclrngLfsr113CreateStreams (clrngLfsr113StreamCreator *creator, size_t count, size_t *bufSize, clrngStatus *err)
 
clrngLfsr113StreamclrngLfsr113CopyStreams (size_t count, const clrngLfsr113Stream *streams, clrngStatus *err)
 
clrngLfsr113StreamclrngLfsr113MakeSubstreams (clrngLfsr113Stream *stream, size_t count, size_t *bufSize, clrngStatus *err)
 
clrngStatus clrngLfsr113AdvanceStreams (size_t count, clrngLfsr113Stream *streams, cl_int e, cl_int c)
 
clrngStatus clrngLfsr113WriteStreamInfo (const clrngLfsr113Stream *stream, FILE *file)
 
clrngStatus clrngLfsr113DeviceRandomU01Array_ (size_t streamCount, cl_mem streams, size_t numberCount, cl_mem outBuffer, cl_uint numQueuesAndEvents, cl_command_queue *commQueues, cl_uint numWaitEvents, const cl_event *waitEvents, cl_event *outEvents, cl_bool singlePrecision)
 

Macro Definition Documentation

◆ BASE_CREATOR_STATE

#define BASE_CREATOR_STATE   { 987654321, 987654321, 987654321, 987654321 }

Default initial seed of the first stream.

Function Documentation

◆ clrngLfsr113AdvanceStreams()

clrngStatus clrngLfsr113AdvanceStreams ( size_t  count,
clrngLfsr113Stream streams,
cl_int  e,
cl_int  c 
)

See also
clrngAdvanceStreams()

◆ clrngLfsr113AllocStreams()

clrngLfsr113Stream* clrngLfsr113AllocStreams ( size_t  count,
size_t *  bufSize,
clrngStatus err 
)

See also
clrngAllocStreams()

◆ clrngLfsr113ChangeStreamsSpacing()

clrngStatus clrngLfsr113ChangeStreamsSpacing ( clrngLfsr113StreamCreator creator,
cl_int  e,
cl_int  c 
)

See also
clrngChangeStreamsSpacing()

◆ clrngLfsr113CopyStreamCreator()

clrngLfsr113StreamCreator* clrngLfsr113CopyStreamCreator ( const clrngLfsr113StreamCreator creator,
clrngStatus err 
)

See also
clrngCopyStreamCreator()

◆ clrngLfsr113CopyStreams()

clrngLfsr113Stream* clrngLfsr113CopyStreams ( size_t  count,
const clrngLfsr113Stream streams,
clrngStatus err 
)

See also
clrngCopyStreams()

◆ clrngLfsr113CreateOverStreams()

clrngStatus clrngLfsr113CreateOverStreams ( clrngLfsr113StreamCreator creator,
size_t  count,
clrngLfsr113Stream streams 
)

See also
clrngCreateOverStreams()

◆ clrngLfsr113CreateStreams()

clrngLfsr113Stream* clrngLfsr113CreateStreams ( clrngLfsr113StreamCreator creator,
size_t  count,
size_t *  bufSize,
clrngStatus err 
)

See also
clrngCreateStreams()

◆ clrngLfsr113DestroyStreamCreator()

clrngStatus clrngLfsr113DestroyStreamCreator ( clrngLfsr113StreamCreator creator)

See also
clrngDestroyStreamCreator()

◆ clrngLfsr113DestroyStreams()

clrngStatus clrngLfsr113DestroyStreams ( clrngLfsr113Stream streams)

See also
clrngDestroyStreams()

◆ clrngLfsr113DeviceRandomU01Array_()

clrngStatus clrngLfsr113DeviceRandomU01Array_ ( size_t  streamCount,
cl_mem  streams,
size_t  numberCount,
cl_mem  outBuffer,
cl_uint  numQueuesAndEvents,
cl_command_queue *  commQueues,
cl_uint  numWaitEvents,
const cl_event *  waitEvents,
cl_event *  outEvents,
cl_bool  singlePrecision 
)

◆ clrngLfsr113MakeSubstreams()

clrngLfsr113Stream* clrngLfsr113MakeSubstreams ( clrngLfsr113Stream stream,
size_t  count,
size_t *  bufSize,
clrngStatus err 
)

See also
clrngMakeSubstreams()

◆ clrngLfsr113RewindStreamCreator()

clrngStatus clrngLfsr113RewindStreamCreator ( clrngLfsr113StreamCreator creator)

See also
clrngRewindStreamCreator()

◆ clrngLfsr113SetBaseCreatorState()

clrngStatus clrngLfsr113SetBaseCreatorState ( clrngLfsr113StreamCreator creator,
const clrngLfsr113StreamState baseState 
)

See also
clrngSetBaseCreatorState()

◆ clrngLfsr113WriteStreamInfo()

clrngStatus clrngLfsr113WriteStreamInfo ( const clrngLfsr113Stream stream,
FILE *  file 
)
See also
clrngWriteStreamInfo()

◆ lfsr113AdvanceState()

void lfsr113AdvanceState ( clrngLfsr113StreamState currentState)