NAME¶
GPUInterface -
SYNOPSIS¶
Public Member Functions¶
int
Initialize ()
int
GetDeviceCount ()
void
SetDevice (int deviceNumber, int paddedStateCount, int
categoryCount, int patternCount, long flags)
void
Synchronize ()
GPUFunction
GetFunction (const char *functionName)
void
LaunchKernel (GPUFunction deviceFunction,
Dim3Int block,
Dim3Int grid, int parameterCountV, int totalParameterCount,...)
void *
MallocHost (size_t memSize)
void *
CallocHost (size_t size, size_t length)
void *
AllocatePinnedHostMemory (size_t memSize, bool writeCombined, bool
mapped)
GPUPtr
AllocateMemory (size_t memSize)
GPUPtr
AllocateRealMemory (size_t length)
GPUPtr
AllocateIntMemory (size_t length)
void
MemsetShort (GPUPtr dest, unsigned short val, size_t count)
void
MemcpyHostToDevice (GPUPtr dest, const void *src, size_t memSize)
void
MemcpyDeviceToHost (void *dest, const GPUPtr src, size_t memSize)
void
MemcpyDeviceToDevice (GPUPtr dest, GPUPtr src, size_t memSize)
void
FreeHostMemory (void *hPtr)
void
FreePinnedHostMemory (void *hPtr)
void
FreeMemory (GPUPtr dPtr)
GPUPtr
GetDevicePointer (void *hPtr)
unsigned int
GetAvailableMemory ()
void
GetDeviceName (int deviceNumber, char *deviceName, int nameLength)
void
GetDeviceDescription (int deviceNumber, char *deviceDescription)
bool
GetSupportsDoublePrecision (int deviceNumber)
template<typename Real > void
PrintfDeviceVector (GPUPtr dPtr, int
length, Real r)
template<typename Real > void
PrintfDeviceVector (GPUPtr dPtr, int
length, double checkValue, Real r)
template<typename Real > void
PrintfDeviceVector (GPUPtr dPtr, int
length, double checkValue, int *signal, Real r)
void
PrintfDeviceInt (GPUPtr dPtr, int length)
void
DestroyKernelMap ()
Public Attributes¶
KernelResource *
kernelResource
Protected Member Functions¶
void
InitializeKernelMap ()
Protected Attributes¶
std::map< int, int > *
resourceMap
bool
supportDoublePrecision
Author¶
Generated automatically by Doxygen for HMSBEAGLE from the source code.