Skip to content

Instantly share code, notes, and snippets.

@getnamo
Created October 10, 2018 06:35
Show Gist options
  • Save getnamo/5c2c3a883dcad603b1232d46697c953a to your computer and use it in GitHub Desktop.
Save getnamo/5c2c3a883dcad603b1232d46697c953a to your computer and use it in GitHub Desktop.
__kernel void hello(__global char* string)
{
string[0] = 'H';
string[1] = 'e';
string[2] = 'l';
string[3] = 'l';
string[4] = 'o';
string[5] = ',';
string[6] = ' ';
string[7] = 'W';
string[8] = 'o';
string[9] = 'r';
string[10] = 'l';
string[11] = 'd';
string[12] = '!';
string[13] = '\0';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment