New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add address space qualifier to OpenCL C++ #13

Open
AnastasiaStulova opened this Issue Oct 31, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@AnastasiaStulova
Copy link

AnastasiaStulova commented Oct 31, 2018

In OpenCL C++ explicit address spaces have to be used with classes. This might prevent porting existing OpenCL C code to C++ because address spaces will have to be rewritten.

On the other hand we allow address spaces with __ prefix in Clang as toolchain only feature, because it's the cheapest way to implement address space classes correctly.

Would it make sense to add the address spaces into OpenCL C++ at least with __ prefix? Without the prefix it probably won't work unfortunately due to the conflict with C++ private class access modifier.

@keryell

This comment has been minimized.

Copy link

keryell commented Oct 31, 2018

Yes, that seems like a useful OpenCL Next extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment