/**
  * The number of devices associated with the program.
  *
  * @param program The program
  * @return The value
  */
 public static int getNumDevices(cl_program program) {
   return Infos.getInt(Infos.FOR_PROGRAM, program, CL_PROGRAM_NUM_DEVICES);
 }
Beispiel #2
0
 /**
  * The number of arguments
  *
  * @param kernel The kernel
  * @return The value
  */
 public static int getNumArgs(cl_kernel kernel) {
   return Infos.getInt(Infos.FOR_KERNEL, kernel, CL_KERNEL_NUM_ARGS);
 }
 /**
  * The reference count. Only intended for identifying memory leaks.
  *
  * @param program The program
  * @return The value
  */
 public static int getReferenceCount(cl_program program) {
   return Infos.getInt(Infos.FOR_PROGRAM, program, CL_PROGRAM_REFERENCE_COUNT);
 }
Beispiel #4
0
 /**
  * The reference count - only provided for identifying memory leaks.
  *
  * @param kernel The kernel
  * @return The value
  */
 public static int getReferenceCount(cl_kernel kernel) {
   return Infos.getInt(Infos.FOR_KERNEL, kernel, CL_KERNEL_REFERENCE_COUNT);
 }