5

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?

1 Answer 1

7

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.