Sha256: 0380f14d03808f918b067db05f781b32f8568d6a8207643eae5ba95697e47d57

Contents?: true

Size: 660 Bytes

Versions: 6

Compression:

Stored size: 660 Bytes

Contents

  
  // Create the kernel
  cl_kernel bones_kernel_<algorithm_name>_0 = clCreateKernel(bones_program, "bones_kernel_<algorithm_name>_0", &bones_errors); error_check(bones_errors);
  
  // Set all the arguments to the kernel function
  int bones_num_args = 0;
  <kernel_argument_list>
  // Start the kernel
  size_t bones_global_worksize[] = {DIV_CEIL(<parallelism>,8)*8};
  bones_errors = clEnqueueNDRangeKernel(bones_queue,bones_kernel_<algorithm_name>_0,1,NULL,bones_global_worksize,NULL,0,NULL,&bones_event); error_check(bones_errors);
  
  // Synchronize and clean-up the kernel
  clFinish(bones_queue);
  clReleaseKernel(bones_kernel_<algorithm_name>_0);

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
bones-compiler-1.6.0 skeletons/CPU-OPENCL-INTEL/kernel/default.host.c
bones-compiler-1.6.0 skeletons/CPU-OPENCL-AMD/kernel/default.host.c
bones-compiler-1.3.1 skeletons/CPU-OPENCL-INTEL/kernel/default.host.c
bones-compiler-1.3.1 skeletons/CPU-OPENCL-AMD/kernel/default.host.c
bones-compiler-1.1.0 skeletons/CPU-OPENCL-INTEL/kernel/default.host.c
bones-compiler-1.1.0 skeletons/CPU-OPENCL-AMD/kernel/default.host.c