chrono::fsi::ChDeviceUtils Class Reference

Description

This utility class encapsulates a operators on device vectors which might be needed in host files.

Static Public Member Functions

static void ResizeMyThrust3 (thrust::device_vector< Real3 > &mThrustVec, int mSize)
 Resizes a thrust vector of Real3 on the device to a specific size.
 
static void ResizeMyThrust4 (thrust::device_vector< Real4 > &mThrustVec, int mSize)
 Resizes a thrust vector of Real4 on the device to a specific size.
 
static void FillMyThrust4 (thrust::device_vector< Real4 > &mThrustVec, Real4 v)
 Fills out a thrust vector of Real4 on the device with a specific Real4.
 
static void ClearMyThrustR3 (thrust::device_vector< Real3 > &mThrustVec)
 Clears a thrust vector of Real3 from the device.
 
static void ClearMyThrustR4 (thrust::device_vector< Real4 > &mThrustVec)
 Clears a thrust vector of Real4 from the device.
 
static void ClearMyThrustU1 (thrust::device_vector< uint > &mThrustVec)
 Clears a thrust vector of unsigned int from the device.
 
static void PushBackR3 (thrust::device_vector< Real3 > &mThrustVec, Real3 a3)
 Appends a Real3 data to a thrust vector of Real3 on the device.
 
static void PushBackR4 (thrust::device_vector< Real4 > &mThrustVec, Real4 a4)
 Appends a Real4 data to a thrust vector of Real4 on the device.
 
static void ResizeR3 (thrust::device_vector< Real3 > &mThrustVec, int size)
 Resizes a thrust vector of Real4 on the device to a specific size.
 
static void ResizeR4 (thrust::device_vector< Real4 > &mThrustVec, int size)
 Resizes a thrust vector of Real3 on the device to a specific size.
 
static void ResizeU1 (thrust::device_vector< uint > &mThrustVec, int size)
 Resizes a thrust vector of uint on the device to a specific size.