Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCL global vs __global and kernel vs __kernel

Tags:

opencl

This is more a question of semantics.

In XCode, __global and global are syntax highlighted the same. __kernel and kernel are syntax highlighted the same.

What is the difference between __global vs global and __kernel vs kernel? Are they the same?

like image 305
mackycheese21 Avatar asked Jun 23 '18 18:06

mackycheese21


1 Answers

There is no difference.

By manual for __global:

The address space names without the __ prefix i.e. global, local, constant and private may be substituted for the corresponding address space names with the __ prefix.

like image 82
doqtor Avatar answered Nov 10 '22 03:11

doqtor