public static final class CudaKernel.Parameters
extends java.lang.Object
implements java.lang.Cloneable
Parameters
class represents the actual parameters in
a kernel
launch.Constructor and Description |
---|
Parameters(CudaKernel.Parameters that)
Creates a copy of the given parameter block.
|
Parameters(int count)
Creates a new bundle of parameter values.
|
Parameters(java.lang.Object... values)
Creates a new bundle of parameter values.
|
Modifier and Type | Method and Description |
---|---|
CudaKernel.Parameters |
add(byte value)
Appends a byte value to the list of parameter values.
|
CudaKernel.Parameters |
add(char value)
Appends a character value to the list of parameter values.
|
CudaKernel.Parameters |
add(CudaBuffer value)
Appends a buffer address to the list of parameter values.
|
CudaKernel.Parameters |
add(double value)
Appends a double value to the list of parameter values.
|
CudaKernel.Parameters |
add(float value)
Appends a float value to the list of parameter values.
|
CudaKernel.Parameters |
add(int value)
Appends a integer value to the list of parameter values.
|
CudaKernel.Parameters |
add(long value)
Appends a long value to the list of parameter values.
|
CudaKernel.Parameters |
add(short value)
Appends a short value to the list of parameter values.
|
CudaKernel.Parameters |
clone()
Creates a copy of this parameter block.
|
CudaKernel.Parameters |
set(int index,
byte value)
Replaces the parameter at the specified index with the given byte value.
|
CudaKernel.Parameters |
set(int index,
char value)
Replaces the parameter at the specified index with the given character value.
|
CudaKernel.Parameters |
set(int index,
CudaBuffer value)
Replaces the parameter at the specified index with the given buffer address.
|
CudaKernel.Parameters |
set(int index,
double value)
Replaces the parameter at the specified index with the given double value.
|
CudaKernel.Parameters |
set(int index,
float value)
Replaces the parameter at the specified index with the given float value.
|
CudaKernel.Parameters |
set(int index,
int value)
Replaces the parameter at the specified index with the given int value.
|
CudaKernel.Parameters |
set(int index,
long value)
Replaces the parameter at the specified index with the given long value.
|
CudaKernel.Parameters |
set(int index,
short value)
Replaces the parameter at the specified index with a short value.
|
public Parameters(int count)
count
- the number of values to be passed when the kernel is launchedjava.lang.IllegalArgumentException
- if the count is negative or greater than 64public Parameters(java.lang.Object... values)
Each parameter value must be one of the following:
values
- the values to be passed when the kernel is launchedjava.lang.IllegalArgumentException
- if parameters
contains any unsupported typespublic Parameters(CudaKernel.Parameters that)
that
- the parameter block to be copiedpublic CudaKernel.Parameters add(byte value)
value
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters add(char value)
value
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters add(CudaBuffer value)
value
- the value to be passed when the kernel is launched,
or null to pass a null pointerjava.lang.IllegalStateException
- if the buffer has been closed (see CudaBuffer.close()
)java.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters add(double value)
value
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters add(float value)
value
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters add(int value)
value
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters add(long value)
value
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters add(short value)
value
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if all positions already have values definedpublic CudaKernel.Parameters clone()
clone
in class java.lang.Object
public CudaKernel.Parameters set(int index, byte value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listpublic CudaKernel.Parameters set(int index, char value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listpublic CudaKernel.Parameters set(int index, CudaBuffer value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launched,
or null to pass a null pointerjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listpublic CudaKernel.Parameters set(int index, double value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listpublic CudaKernel.Parameters set(int index, float value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listpublic CudaKernel.Parameters set(int index, int value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listpublic CudaKernel.Parameters set(int index, long value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listpublic CudaKernel.Parameters set(int index, short value)
index
- the index of the parameter to be setvalue
- the value to be passed when the kernel is launchedjava.lang.IndexOutOfBoundsException
- if index
< 0 or index
>= the size of this parameter listEclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2013, 2025 IBM Corp. and others.