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

I have a problem with spai #278

Closed
RENJIEYM opened this issue May 28, 2019 · 2 comments
Closed

I have a problem with spai #278

RENJIEYM opened this issue May 28, 2019 · 2 comments

Comments

@RENJIEYM
Copy link

hello,
when i add the header file like "#include "viennacl/linalg/spai.hpp" ", these errors will happen,and i don't know how fix it

/usr/local/cuda-9.0/bin/..//include/viennacl/linalg/detail/spai/qr.hpp(435): error: class "viennacl::context" has no member "opencl_context"

/usr/local/cuda-9.0/bin/..//include/viennacl/linalg/detail/spai/spai-dynamic.hpp(369): error: class "viennacl::context" has no member "opencl_context"

/usr/local/cuda-9.0/bin/..//include/viennacl/linalg/detail/spai/spai-dynamic.hpp(451): error: class "viennacl::context" has no member "opencl_context"

/usr/local/cuda-9.0/bin/..//include/viennacl/linalg/detail/spai/spai-dynamic.hpp(543): error: class "viennacl::context" has no member "opencl_context"

/usr/local/cuda-9.0/bin/..//include/viennacl/linalg/detail/spai/spai.hpp(309): error: class "viennacl::context" has no member "opencl_context"

/usr/local/cuda-9.0/bin/..//include/viennacl/linalg/detail/spai/spai.hpp(539): error: class "viennacl::context" has no member "opencl_context"

/usr/local/cuda-9.0/bin/..//include/viennacl/linalg/spai.hpp(141): error: namespace "viennacl::traits" has no member "opencl_handle"

environment :ubuntu, cuda 9.0, opencl 1.2

@karlrupp
Copy link
Collaborator

SPAI is only available with OpenCL. You have to enable the OpenCL backend via VIENNACL_HAVE_OPENCL.

@RENJIEYM
Copy link
Author

Thank you for replying so fast,
according to your suggestion, my program has been compiled,and I compile with nvcc, -lOpenCL is also needed.
Thank you again for your help!!!

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