CUDAStandaloneCodeObject class

(Shortest import: from brian2cuda.codeobject import CUDAStandaloneCodeObject)

class brian2cuda.codeobject.CUDAStandaloneCodeObject(*args, **kw)[source]

CUDA standalone code object

The code should be a MultiTemplate object with two macros defined, main (for the main loop code) and support_code for any support code (e.g. function definitions).

Methods

__call__(**kwds)

Call self as a function.

compile_block(block)

run_block(block)

Details

__call__(**kwds)[source]

Call self as a function.

compile_block(block)[source]
run_block(block)[source]