public class Cuda extends Object
| Constructor and Description |
|---|
Cuda() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDevice()
Get the id of the current device.
|
static boolean |
isEnvCompatibleForTesting()
This should only be used for tests, to enable or disable tests if the current environment
is not compatible with this version of the library.
|
static CudaMemInfo |
memGetInfo()
Mapping: cudaMemGetInfo(size_t *free, size_t *total)
|
static void |
memset(long dst,
byte value,
long count)
Sets count bytes starting at the memory area pointed to by dst, with value.
|
public static CudaMemInfo memGetInfo() throws CudaException
CudaExceptionpublic static void memset(long dst,
byte value,
long count)
throws CudaException
dst - - Destination memory addressvalue - - Byte value to set dst withcount - - Size in bytes to setCudaExceptionpublic static int getDevice()
throws CudaException
CudaException - on any errorpublic static boolean isEnvCompatibleForTesting()
Copyright © 2019. All rights reserved.