Package | Description |
---|---|
jcuda.driver |
Contains the classes related to the JCuda driver API.
|
Modifier and Type | Field and Description |
---|---|
static CUdevice |
JCudaDriver.CU_DEVICE_CPU
Device that represents the CPU
|
static CUdevice |
JCudaDriver.CU_DEVICE_INVALID
Device that represents an invalid device
|
Modifier and Type | Method and Description |
---|---|
static int |
JCudaDriver.cuCtxCreate(CUcontext pctx,
int flags,
CUdevice dev)
Create a CUDA context.
|
static int |
JCudaDriver.cuCtxGetDevice(CUdevice device)
Returns the device ID for the current context.
|
static int |
JCudaDriver.cuDeviceCanAccessPeer(int[] canAccessPeer,
CUdevice dev,
CUdevice peerDev)
Queries if a device may directly access a peer device's memory.
|
static int |
JCudaDriver.cuDeviceComputeCapability(int[] major,
int[] minor,
CUdevice dev)
Deprecated.
Deprecated as of CUDA 5.0, replaced with
JCudaDriver.cuDeviceGetAttribute(int[], int, CUdevice) |
static int |
JCudaDriver.cuDeviceGet(CUdevice device,
int ordinal)
Returns a handle to a compute device.
|
static int |
JCudaDriver.cuDeviceGetAttribute(int[] pi,
int attrib,
CUdevice dev)
Returns information about the device.
|
static int |
JCudaDriver.cuDeviceGetByPCIBusId(CUdevice dev,
String pciBusId)
Returns a handle to a compute device.
|
static int |
JCudaDriver.cuDeviceGetLuid(byte[] luid,
int[] deviceNodeMask,
CUdevice dev)
Return an LUID and device node mask for the device.
|
static int |
JCudaDriver.cuDeviceGetLuidNative(byte[] luid,
int[] deviceNodeMask,
CUdevice dev) |
static int |
JCudaDriver.cuDeviceGetName(byte[] name,
int len,
CUdevice dev)
Returns an identifer string for the device.
|
static int |
JCudaDriver.cuDeviceGetP2PAttribute(int[] value,
int attrib,
CUdevice srcDevice,
CUdevice dstDevice)
Queries attributes of the link between two devices.
|
static int |
JCudaDriver.cuDeviceGetPCIBusId(String[] pciBusId,
int len,
CUdevice dev)
Returns a PCI Bus Id string for the device.
|
static int |
JCudaDriver.cuDeviceGetProperties(CUdevprop prop,
CUdevice dev)
Deprecated.
Deprecated as of CUDA 5.0, replaced with
JCudaDriver.cuDeviceGetAttribute(int[], int, CUdevice) |
static int |
JCudaDriver.cuDeviceGetUuid(CUuuid uuid,
CUdevice dev)
Return an UUID for the device.
|
static int |
JCudaDriver.cuDevicePrimaryCtxRelease(CUdevice dev) |
static int |
JCudaDriver.cuDevicePrimaryCtxRetain(CUcontext pctx,
CUdevice dev) |
static int |
JCudaDriver.cuDevicePrimaryCtxSetFlags(CUdevice dev,
int flags) |
static int |
JCudaDriver.cuDeviceTotalMem(long[] bytes,
CUdevice dev)
Returns the total amount of memory on the device.
|
static int |
JCudaDriver.cuGLCtxCreate(CUcontext pCtx,
int Flags,
CUdevice device)
Deprecated.
Deprecated as of CUDA 5.0
|
static int |
JCudaDriver.cuGLGetDevices(int[] pCudaDeviceCount,
CUdevice[] pCudaDevices,
int cudaDeviceCount,
int CUGLDeviceList_deviceList)
Gets the CUDA devices associated with the current OpenGL context.
|
static int |
JCudaDriver.cuMemAdvise(CUdeviceptr devPtr,
long count,
int advice,
CUdevice device)
Advise about the usage of a given memory range
Advise the Unified Memory subsystem about the usage pattern for the memory range starting at devPtr with a size of count bytes. |
static int |
JCudaDriver.cuMemPrefetchAsync(CUdeviceptr devPtr,
long count,
CUdevice dstDevice,
CUstream hStream)
Prefetches memory to the specified destination device
Prefetches memory to the specified destination device. devPtr is the base device pointer of the memory to be prefetched and dstDevice is the destination device. count specifies the number of bytes to copy. |
Copyright © 2020. All rights reserved.