This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/share/CodeBlocks/lexers/lexer_cu.sample

7 lines
168 B
Plaintext

__global__ static void HelloCUDA(char* result, int num)
{
int i=threadIdx.x;
char p_HelloCUDA[]="Hello CUDA!";
if(i<num)
result[i]=p_HelloCUDA[i];
}