예제 #1
0
 /**
  * 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);
 }
예제 #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);
 }
예제 #3
0
 /**
  * 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);
 }
예제 #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);
 }