20#ifndef _SOURCE_CUDA_TFENGINECONFIG_H_
21#define _SOURCE_CUDA_TFENGINECONFIG_H_
Tissue Forge GPU acceleration on CUDA-supporting devices.
Definition tfAngleConfig.h:26
CUDA runtime control interface for Tissue Forge engine.
Definition tfEngineConfig.h:43
HRESULT setBlocks(unsigned int numBlocks, int deviceId=-1)
Set the number of blocks of the CUDA configuration for a CUDA device.
HRESULT toDevice()
Send engine to device. If engine is already on device, then the call is ignored.
HRESULT refreshFluxes()
Update fluxes on a CUDA device.
HRESULT refreshBoundaryConditions()
Update boundary conditions on a CUDA device.
HRESULT setThreads(unsigned int numThreads, int deviceId=-1)
Set the number of threads of the CUDA configuration for a CUDA device.
HRESULT clearDevice()
Clear configured device for the engine.
HRESULT refresh()
Update the image of the engine on a CUDA device.
HRESULT fromDevice()
Pull engine from device. If engine is not on a device, then the call is ignored.
HRESULT refreshPotentials()
Update potentials on a CUDA device.
bool onDevice()
Check whether the engine is currently on a device.
int getDevice()
Get the id of the device running the engine.
HRESULT setDevice(int deviceId=0)
Set the id of the device for running the engine.
int32_t HRESULT
Definition tf_port.h:255