Changes between Version 14 and Version 15 of OpenCLTransformation


Ignore:
Timestamp:
08/07/14 13:33:34 (12 years ago)
Author:
fuufusuu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenCLTransformation

    v14 v15  
    7979err |= clSetKernelArg(kernel, 2, sizeof(unsigned int), &count);
    8080
    81 clSetKernelArg sets arguments for an array of each device in the kernel.
     81* 'clSetKernelArg': sets arguments for an array of each device in the kernel.
     82
     83Support for global, local, constant and group, local being the default
     84Private (local) - variable assignment, or malloc + memcpy
     85
     86Global - pointer with memory location. For regular non pointer variables, make a pointer and assign it to it, then use the pointer
     87Global variables can be declared in program source but they must use the "constant" address space qualifier and need to be initialized.
     88You cannot have global variables that can be modified by kernels and where the modified values are persistent across work-groups and kernel executions.
     89
     90Constant is just like global, but read only
     91
     92group - ???
    8293{{{
    8394  ((args*)kernel.arguments)->input = input;