|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jocl.utils.Mems
public class Mems
Utility methods related to memory objects.
Method Summary | |
---|---|
static org.jocl.cl_mem |
create(org.jocl.cl_context context,
byte[] array)
Create a memory object that contains the data from the given array |
static org.jocl.cl_mem |
create(org.jocl.cl_context context,
double[] array)
Create a memory object that contains the data from the given array |
static org.jocl.cl_mem |
create(org.jocl.cl_context context,
float[] array)
Create a memory object that contains the data from the given array |
static org.jocl.cl_mem |
create(org.jocl.cl_context context,
int size)
Create a memory object with the given size. |
static org.jocl.cl_mem |
create(org.jocl.cl_context context,
int[] array)
Create a memory object that contains the data from the given array |
static org.jocl.cl_mem |
create(org.jocl.cl_context context,
long[] array)
Create a memory object that contains the data from the given array |
static org.jocl.cl_mem |
create(org.jocl.cl_context context,
short[] array)
Create a memory object that contains the data from the given array |
static void |
release(org.jocl.cl_mem... mems)
Release each of the given memory objects if it is not null . |
static void |
release(java.lang.Iterable<org.jocl.cl_mem> mems)
Release each of the given memory objects if it is not null . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.jocl.cl_mem create(org.jocl.cl_context context, int size)
context
- The context for which the memory object will be createdsize
- The size of the memory object, in bytes
public static org.jocl.cl_mem create(org.jocl.cl_context context, byte[] array)
context
- The context for which the memory object will be createdarray
- The array
public static org.jocl.cl_mem create(org.jocl.cl_context context, short[] array)
context
- The context for which the memory object will be createdarray
- The array
public static org.jocl.cl_mem create(org.jocl.cl_context context, int[] array)
context
- The context for which the memory object will be createdarray
- The array
public static org.jocl.cl_mem create(org.jocl.cl_context context, long[] array)
context
- The context for which the memory object will be createdarray
- The array
public static org.jocl.cl_mem create(org.jocl.cl_context context, float[] array)
context
- The context for which the memory object will be createdarray
- The array
public static org.jocl.cl_mem create(org.jocl.cl_context context, double[] array)
context
- The context for which the memory object will be createdarray
- The array
public static void release(org.jocl.cl_mem... mems)
null
.
mems
- The memory objects to releasepublic static void release(java.lang.Iterable<org.jocl.cl_mem> mems)
null
.
mems
- The memory objects to release
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |