---
name: "GPUInterface"
section: "3"
platform: "linux"
package: "libhmsbeagle-dev"
version: "1.0-6"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GPUInterface"
---

# GPUInterface(3)

## 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.
