Class CL

java.lang.Object
javaforce.cl.CL
All Implemented Interfaces:
AutoCloseable

public class CL extends Object implements AutoCloseable
  • Field Details

  • Method Details

    • init

      public static boolean init()
    • create

      public static CL create(String src, int type)
    • create

      public static CL create(String src)
    • kernel

      public long kernel(String func)
    • createReadBuffer

      public long createReadBuffer(int size)
    • createWriteBuffer

      public long createWriteBuffer(int size)
    • createReadWriteBuffer

      public long createReadWriteBuffer(int size)
    • setArg

      public boolean setArg(long kernel, int idx, byte[] value)
    • setArg

      public boolean setArg(long kernel, int idx, long value)
    • writeBuffer

      public boolean writeBuffer(long buffer, byte[] data)
    • writeBuffer

      public boolean writeBuffer(long buffer, float[] data)
    • execute

      public boolean execute(long kernel, int count)
    • readBuffer

      public boolean readBuffer(long buffer, byte[] data)
    • readBuffer

      public boolean readBuffer(long buffer, float[] data)
    • freeKernel

      public boolean freeKernel(long kernel)
    • freeBuffer

      public boolean freeBuffer(long buffer)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • main

      public static void main(String[] args)