Sha256: f3590183460fd73efa939c38a7e5db01ef99abd8b4dc78de4eb5edec56da0ad8

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

/* STARTDEF
void bones_kernel_<algorithm_name>_0(<devicedefinitions>, <argument_definition>);
ENDDEF */
// Start of the <algorithm_name> kernel
void bones_kernel_<algorithm_name>_0(<devicedefinitions>, <argument_definition>) {
  for(int bones_global_id=0; bones_global_id<<parallelism>; bones_global_id++) {
    
    // Calculate the global ID(s) based on the thread id
    <ids>
    
    // Perform the main computation
<algorithm_code1>
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bones-compiler-1.6.0 skeletons/CPU-C/kernel/default.kernel.c
bones-compiler-1.3.1 skeletons/CPU-C/kernel/default.kernel.c
bones-compiler-1.1.0 skeletons/CPU-C/kernel/default.kernel.c