|
Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|
CUDA runtime control interface for Tissue Forge angles. More...
#include <tfAngleConfig.h>
Static Public Member Functions | |
| static bool | onDevice () |
| Check whether the angles are currently on a device. | |
| static int | getDevice () |
| Get the id of the device designated for running angles. | |
| static HRESULT | toDevice () |
| Send angles to device. If angles are already on device, then the call is ignored. | |
| static HRESULT | fromDevice () |
| Pull engine from device. If engine is not on a device, then the call is ignored. | |
| static HRESULT | setBlocks (unsigned int numBlocks) |
| Set the number of blocks of the CUDA configuration for a CUDA device. | |
| static HRESULT | setThreads (unsigned int numThreads) |
| Set the number of threads of the CUDA configuration for a CUDA device. | |
| static HRESULT | refreshAngle (AngleHandle *bh) |
| Update a angle on a CUDA device. | |
| static HRESULT | refreshAngles (std::vector< AngleHandle * > angles) |
| Update angles on a CUDA device. | |
| static HRESULT | refresh () |
| Update all angles on a CUDA device. | |
CUDA runtime control interface for Tissue Forge angles.
This object provides control for configuring angle calculations on CUDA devices.
At any time during a simulation, supported angle calculations can be sent to a particular CUDA device, or brought back to the CPU when deployed on a CUDA device. CUDA dynamic parallelism can also be specified before deploying angle calculations to a CUDA device. Future Tissue Forge versions will support deployment on multiple devices.
|
static |
Pull engine from device. If engine is not on a device, then the call is ignored.
|
static |
Get the id of the device designated for running angles.
|
static |
Check whether the angles are currently on a device.
|
static |
Update all angles on a CUDA device.
Useful for notifying the device that angles have changed.
If engine is not on a device, then the call is ignored.
|
static |
Update a angle on a CUDA device.
Useful for notifying the device that a angle has changed.
If engine is not on a device, then the call is ignored.
| bh | angle to update |
|
static |
Update angles on a CUDA device.
Useful for notifying the device that angles have changed.
If engine is not on a device, then the call is ignored.
| angles | angles to update |
|
static |
Set the number of blocks of the CUDA configuration for a CUDA device.
Throws an error if called when the angles are already deployed to a CUDA device.
| numBlocks | number of blocks |
|
static |
Set the number of threads of the CUDA configuration for a CUDA device.
Throws an error if called when angles are already deployed to a CUDA device.
| numThreads | number of threads |
|
static |
Send angles to device. If angles are already on device, then the call is ignored.