20#ifndef _SOURCE_CUDA_TFBONDCONFIG_H_
21#define _SOURCE_CUDA_TFBONDCONFIG_H_
23#include <tfBond_cuda.h>
Tissue Forge GPU acceleration on CUDA-supporting devices.
Definition tfAngleConfig.h:26
Handle to a bond.
Definition tfBond.h:144
CUDA runtime control interface for Tissue Forge bonds.
Definition tfBondConfig.h:42
static HRESULT refreshBond(BondHandle *bh)
Update a bond on a CUDA device.
static HRESULT setDevice(int deviceId=0)
Set the id of the device for running bonds.
static HRESULT setThreads(unsigned int numThreads)
Set the number of threads of the CUDA configuration for a CUDA device.
static HRESULT fromDevice()
Pull engine from device. If engine is not on a device, then the call is ignored.
static HRESULT refreshBonds(std::vector< BondHandle * > bonds)
Update bonds on a CUDA device.
static HRESULT toDevice()
Send bonds to device. If bonds are already on device, then the call is ignored.
static HRESULT refresh()
Update all bonds on a CUDA device.
static HRESULT setBlocks(unsigned int numBlocks)
Set the number of blocks of the CUDA configuration for a CUDA device.
static bool onDevice()
Check whether the bonds are currently on a device.
static int getDevice()
Get the id of the device designated for running bonds.
int32_t HRESULT
Definition tf_port.h:255