Class CLJNI

java.lang.Object
javaforce.jni.CLJNI
All Implemented Interfaces:
CLAPI

public class CLJNI extends Object implements CLAPI
  • Constructor Details

    • CLJNI

      public CLJNI()
  • Method Details

    • getInstance

      public static CLJNI getInstance()
    • clLoadLibrary

      public boolean clLoadLibrary(String file)
      Specified by:
      clLoadLibrary in interface CLAPI
    • clCreate

      public long clCreate(String src, int type)
      Specified by:
      clCreate in interface CLAPI
    • clKernel

      public long clKernel(long ctx, String func)
      Specified by:
      clKernel in interface CLAPI
    • clCreateBuffer

      public long clCreateBuffer(long ctx, int size, int type)
      Specified by:
      clCreateBuffer in interface CLAPI
    • clSetArg

      public boolean clSetArg(long ctx, long kernel, int idx, byte[] value, int size)
      Specified by:
      clSetArg in interface CLAPI
    • clWriteBufferi8

      public boolean clWriteBufferi8(long ctx, long buffer, byte[] value, int size)
      Specified by:
      clWriteBufferi8 in interface CLAPI
    • clWriteBufferf32

      public boolean clWriteBufferf32(long ctx, long buffer, float[] value, int size)
      Specified by:
      clWriteBufferf32 in interface CLAPI
    • clExecute

      public boolean clExecute(long ctx, long kernel, int count)
      Specified by:
      clExecute in interface CLAPI
    • clExecute2

      public boolean clExecute2(long ctx, long kernel, int count1, int count2)
      Specified by:
      clExecute2 in interface CLAPI
    • clExecute3

      public boolean clExecute3(long ctx, long kernel, int count1, int count2, int count3)
      Specified by:
      clExecute3 in interface CLAPI
    • clExecute4

      public boolean clExecute4(long ctx, long kernel, int count1, int count2, int count3, int count4)
      Specified by:
      clExecute4 in interface CLAPI
    • clReadBufferi8

      public boolean clReadBufferi8(long ctx, long buffer, byte[] value, int size)
      Specified by:
      clReadBufferi8 in interface CLAPI
    • clReadBufferf32

      public boolean clReadBufferf32(long ctx, long buffer, float[] value, int size)
      Specified by:
      clReadBufferf32 in interface CLAPI
    • clFreeKernel

      public boolean clFreeKernel(long ctx, long kernel)
      Specified by:
      clFreeKernel in interface CLAPI
    • clFreeBuffer

      public boolean clFreeBuffer(long ctx, long buffer)
      Specified by:
      clFreeBuffer in interface CLAPI
    • clClose

      public boolean clClose(long ctx)
      Specified by:
      clClose in interface CLAPI