Class CLJNI
java.lang.Object
javaforce.jni.CLJNI
- All Implemented Interfaces:
CLAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclClose(long ctx) longlongclCreateBuffer(long ctx, int size, int type) booleanclExecute(long ctx, long kernel, int count) booleanclExecute2(long ctx, long kernel, int count1, int count2) booleanclExecute3(long ctx, long kernel, int count1, int count2, int count3) booleanclExecute4(long ctx, long kernel, int count1, int count2, int count3, int count4) booleanclFreeBuffer(long ctx, long buffer) booleanclFreeKernel(long ctx, long kernel) longbooleanclLoadLibrary(String file) booleanclReadBufferf32(long ctx, long buffer, float[] value, int size) booleanclReadBufferi8(long ctx, long buffer, byte[] value, int size) booleanclSetArg(long ctx, long kernel, int idx, byte[] value, int size) booleanclWriteBufferf32(long ctx, long buffer, float[] value, int size) booleanclWriteBufferi8(long ctx, long buffer, byte[] value, int size) static CLJNI
-
Constructor Details
-
CLJNI
public CLJNI()
-
-
Method Details
-
getInstance
-
clLoadLibrary
- Specified by:
clLoadLibraryin interfaceCLAPI
-
clCreate
-
clKernel
-
clCreateBuffer
public long clCreateBuffer(long ctx, int size, int type) - Specified by:
clCreateBufferin interfaceCLAPI
-
clSetArg
-
clWriteBufferi8
public boolean clWriteBufferi8(long ctx, long buffer, byte[] value, int size) - Specified by:
clWriteBufferi8in interfaceCLAPI
-
clWriteBufferf32
public boolean clWriteBufferf32(long ctx, long buffer, float[] value, int size) - Specified by:
clWriteBufferf32in interfaceCLAPI
-
clExecute
-
clExecute2
public boolean clExecute2(long ctx, long kernel, int count1, int count2) - Specified by:
clExecute2in interfaceCLAPI
-
clExecute3
public boolean clExecute3(long ctx, long kernel, int count1, int count2, int count3) - Specified by:
clExecute3in interfaceCLAPI
-
clExecute4
public boolean clExecute4(long ctx, long kernel, int count1, int count2, int count3, int count4) - Specified by:
clExecute4in interfaceCLAPI
-
clReadBufferi8
public boolean clReadBufferi8(long ctx, long buffer, byte[] value, int size) - Specified by:
clReadBufferi8in interfaceCLAPI
-
clReadBufferf32
public boolean clReadBufferf32(long ctx, long buffer, float[] value, int size) - Specified by:
clReadBufferf32in interfaceCLAPI
-
clFreeKernel
public boolean clFreeKernel(long ctx, long kernel) - Specified by:
clFreeKernelin interfaceCLAPI
-
clFreeBuffer
public boolean clFreeBuffer(long ctx, long buffer) - Specified by:
clFreeBufferin interfaceCLAPI
-
clClose
-