mackycheese21
mackycheese21

Reputation: 894

OpenCL global vs __global and kernel vs __kernel

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?

Upvotes: 5

Views: 1248

Answers (1)

doqtor
doqtor

Reputation: 8494

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.

Upvotes: 7

Related Questions