| 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 | |
| | 83 | Support for global, local, constant and group, local being the default |
| | 84 | Private (local) - variable assignment, or malloc + memcpy |
| | 85 | |
| | 86 | Global - pointer with memory location. For regular non pointer variables, make a pointer and assign it to it, then use the pointer |
| | 87 | Global variables can be declared in program source but they must use the "constant" address space qualifier and need to be initialized. |
| | 88 | You cannot have global variables that can be modified by kernels and where the modified values are persistent across work-groups and kernel executions. |
| | 89 | |
| | 90 | Constant is just like global, but read only |
| | 91 | |
| | 92 | group - ??? |