Created
January 16, 2018 12:53
-
-
Save oss-dev-somewhere/2a2f8d482e8fdff76c84422d13ec99bc to your computer and use it in GitHub Desktop.
OpenCL Hello World
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__kernel | |
void hello( | |
__global __read_only char * restrict a, | |
__global __write_only char * restrict b) | |
{ | |
b[0] = 'H'; | |
b[1] = 'e'; | |
b[2] = 'l'; | |
b[3] = 'l'; | |
b[4] = 'o'; | |
b[5] = ','; | |
b[6] = ' '; | |
b[7] = 'W'; | |
b[8] = 'o'; | |
b[9] = 'r'; | |
b[10] = 'l'; | |
b[11] = 'd'; | |
b[12] = '!'; | |
b[13] = '\0'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment