|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjcuda.driver.JITOptions
public final class JITOptions
Note: This class should be considered as preliminary,
and might change in future releases.
A utility class to circumvent the limitations of Java in terms
of interpreting memory areas as pointers or primitive values:
This class allows mapping CUjit_option identifiers to
their respective values, so that the options may be passed
to methods that require the parameters
unsigned int numOptions, CUjit_option *options,
void **optionValues
in the original CUDA API:
| Constructor Summary | |
|---|---|
JITOptions()
Creates new, empty JITOptions |
|
| Method Summary | |
|---|---|
byte[] |
getBytes(int key)
Returns the value of the given option. |
float |
getFloat(int key)
Returns the value of the given option. |
int |
getInt(int key)
Returns the value of the given option. |
java.lang.String |
getString(int key)
Convenience method that returns the value of the given option as a string. |
void |
put(int key)
Put the specified option into these options (without a value) |
void |
putBytes(int key,
byte[] value)
Put the given value for the specified option into these options |
void |
putFloat(int key,
float value)
Put the given value for the specified option into these options |
void |
putInt(int key,
int value)
Put the given value for the specified option into these options |
void |
remove(int key)
Removes the specified option |
java.lang.String |
toFormattedString()
Creates and returns a formatted (aligned, multi-line) String representation of this object |
java.lang.String |
toString()
Returns a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JITOptions()
| Method Detail |
|---|
public void remove(int key)
key - An option identifierpublic void put(int key)
key - An option identifier
public void putInt(int key,
int value)
key - An option identifiervalue - The option value
public void putFloat(int key,
float value)
key - An option identifiervalue - The option value
public void putBytes(int key,
byte[] value)
key - An option identifiervalue - The option valuepublic int getInt(int key)
int or
unsigned int value.
key - An option identifier
public float getFloat(int key)
float value.
key - An option identifier
public byte[] getBytes(int key)
null if
the specified option is unknown or not a byte[] value.
key - An option identifier
public java.lang.String getString(int key)
null if
the specified option is unknown or not a byte[] value.
key - An option identifier
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toFormattedString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||