20#ifndef _SOURCE_CUDA_TFANGLECONFIG_H_
21#define _SOURCE_CUDA_TFANGLECONFIG_H_
23#include <tfAngle_cuda.h>
Tissue Forge GPU acceleration on CUDA-supporting devices.
Definition tfAngleConfig.h:26
A handle to an angle bond.
Definition tfAngle.h:137
CUDA runtime control interface for Tissue Forge angles.
Definition tfAngleConfig.h:42
static HRESULT fromDevice()
Pull engine from device. If engine is not on a device, then the call is ignored.
static HRESULT refreshAngles(std::vector< AngleHandle * > angles)
Update angles on a CUDA device.
static HRESULT setThreads(unsigned int numThreads)
Set the number of threads of the CUDA configuration for a CUDA device.
static int getDevice()
Get the id of the device designated for running angles.
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 angles are currently on a device.
static HRESULT toDevice()
Send angles to device. If angles are already on device, then the call is ignored.
static HRESULT refresh()
Update all angles on a CUDA device.
static HRESULT refreshAngle(AngleHandle *bh)
Update a angle on a CUDA device.
int32_t HRESULT
Definition tf_port.h:255