public final class CudaFunction
extends java.lang.Object
CudaFunction
class represents a kernel entry point found in
a specific CudaModule
loaded on a CUDA-capable device.Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE_BINARY_VERSION
The binary architecture version for which the function was compiled.
|
static int |
ATTRIBUTE_CONST_SIZE_BYTES
The size in bytes of user-allocated constant memory required by this
function.
|
static int |
ATTRIBUTE_LOCAL_SIZE_BYTES
The size in bytes of local memory used by each thread of this function.
|
static int |
ATTRIBUTE_MAX_THREADS_PER_BLOCK
The maximum number of threads per block, beyond which a launch of the
function would fail.
|
static int |
ATTRIBUTE_NUM_REGS
The number of registers used by each thread of this function.
|
static int |
ATTRIBUTE_PTX_VERSION
The PTX virtual architecture version for which the function was
compiled.
|
static int |
ATTRIBUTE_SHARED_SIZE_BYTES
The size in bytes of statically-allocated shared memory required by
this function.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttribute(int attribute)
Returns the value of the specified @{code attribute}.
|
void |
setCacheConfig(CudaDevice.CacheConfig config)
Configures the cache for this function.
|
void |
setSharedMemConfig(CudaDevice.SharedMemConfig config)
Configures the shared memory of this function.
|
public static final int ATTRIBUTE_BINARY_VERSION
public static final int ATTRIBUTE_CONST_SIZE_BYTES
public static final int ATTRIBUTE_LOCAL_SIZE_BYTES
public static final int ATTRIBUTE_MAX_THREADS_PER_BLOCK
public static final int ATTRIBUTE_NUM_REGS
public static final int ATTRIBUTE_PTX_VERSION
public static final int ATTRIBUTE_SHARED_SIZE_BYTES
public int getAttribute(int attribute) throws CudaException
attribute
- the attribute to be queried (see ATTRIBUTE_XXX)CudaException
- if a CUDA exception occurspublic void setCacheConfig(CudaDevice.CacheConfig config) throws CudaException
config
- the desired cache configurationCudaException
- if a CUDA exception occurspublic void setSharedMemConfig(CudaDevice.SharedMemConfig config) throws CudaException
config
- the desired shared memory configurationCudaException
- if a CUDA exception occursEclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2013, 2025 IBM Corp. and others.