Skip to content
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

Failing OpenCL vector traits due to address spaces #58

Open
AnastasiaStulova opened this issue Oct 26, 2021 · 0 comments
Open

Failing OpenCL vector traits due to address spaces #58

AnastasiaStulova opened this issue Oct 26, 2021 · 0 comments

Comments

@AnastasiaStulova
Copy link
Contributor

many vector traits seem to have issues is used with address spaces deduced.

Here is an example:

int4 v;
static_assert(std::vector_size<decltype(v)>::value==4); // This fails because  v is '__provate int4' and not 'int4'

To make them work we need to add remove_address_space trait everywhere. Could we reduce such verbosity by providing extra specializations of such traits? We can probably do it universally for all qualifiers and add a description as a rule:

any top level qualifier provided with type T is ignored/stripped out before ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant