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

error: ‘Type’ is not a member of ‘vex::Filter’ when VEXCL_BACKEND_CUDA is defined #235

Open
mw66 opened this issue Mar 19, 2018 · 1 comment

Comments

@mw66
Copy link

mw66 commented Mar 19, 2018

ctx = new vex::Context(
vex::Filter::Type(CL_DEVICE_TYPE_GPU) &&
vex::Filter::DoublePrecision &&
vex::Filter::Count(1)
);

I think vex should define a dummy func in this case, so the client code no matter which backend it choose to use.

@ddemidov
Copy link
Owner

ddemidov commented Mar 19, 2018

CL_DEVICE_TYPE_* constants are defined in CL/cl.h, which may be unavailable for non-opencl-based backends. How about providing using dummy vex::Filter::GPU, vex::Filter::CPU, vex::Filter::Accelerator instead?

EDIT: those are already defined for the CUDA backend: https://github.com/ddemidov/vexcl/blob/master/vexcl/backend/cuda/filter.hpp#L53-L56

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

2 participants