You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and file structure ViennaCL/viennacl/matrix.hpp (etc).
This causes a pretty huge error I've pasted into this pastebin, which begins with:
In file included from ViennaCL/viennacl/linalg/scalar_operations.hpp:40:0,
from ViennaCL/viennacl/scalar.hpp:30,
from ViennaCL/viennacl/tools/entry_proxy.hpp:27,
from ViennaCL/viennacl/detail/matrix_def.hpp:26,
from ViennaCL/viennacl/matrix.hpp:26,
from quest_viennacl.cpp:3:
ViennaCL/viennacl/linalg/cuda/scalar_operations.hpp: In function‘typename viennacl::enable_if<((viennacl::is_scalar<T>::value && viennacl::is_scalar<ScalarT2>::value) && viennacl::is_any_scalar<FactorT>::value)>::type viennacl::linalg::cuda::as(ScalarT1&, const ScalarT2&, const NumericT&, viennacl::vcl_size_t, bool, bool)’:
ViennaCL/viennacl/linalg/cuda/scalar_operations.hpp:88:14: error: expected primary-expression before ‘<’ token
as_kernel<<<1, 1>>>(viennacl::cuda_arg(s1), ^ViennaCL/viennacl/linalg/cuda/scalar_operations.hpp:88:21: error: expected primary-expression before ‘>’ token as_kernel<<<1, 1>>>(viennacl::cuda_arg(s1),
I take it the CUDA syntax isn't being recognised. This seems specific to ViennaCL, since I CUDA compile other projects (e.g. QuEST) without issue on this system.
Is ViennaCL incompatible with CUDA 9.1? I'm compiling for a Quadro P6000 with computability 6.1, so need to use at least CUDA 8.0.
Is there any way I can make this work?
The text was updated successfully, but these errors were encountered:
You need to name your source file with extension .cu to make nvcc interpret the CUDA code correctly. Then, calling nvcc -DVIENNACL_WITH_CUDA -IViennaCL demo.cu should succeed.
Hi,
I'm trying to compile a simple example:
with command
and file structure
ViennaCL/viennacl/matrix.hpp
(etc).This causes a pretty huge error I've pasted into this pastebin, which begins with:
I take it the CUDA syntax isn't being recognised. This seems specific to ViennaCL, since I CUDA compile other projects (e.g. QuEST) without issue on this system.
Is ViennaCL incompatible with CUDA 9.1? I'm compiling for a Quadro P6000 with computability 6.1, so need to use at least CUDA 8.0.
Is there any way I can make this work?
The text was updated successfully, but these errors were encountered: