Hi,
I encountered these errors when compiling the blas3.cu
/usr/include/viennacl/linalg/cuda/scalar_operations.hpp(96): error: kernel launches from templates are not allowed in system files
/usr/include/viennacl/linalg/cuda/scalar_operations.hpp(220): error: kernel launches from templates are not allowed in system files
/usr/include/viennacl/linalg/cuda/scalar_operations.hpp(348): error: kernel launches from templates are not allowed in system files
.
.
.
71 errors detected in the compilation of "/tmp/tmpxft_00003278_00000000-4_blas3.cpp4.ii".
I am a beginner using the ViennaCL and I don't know how to deal with the errors.
Is there any instruction I can follow?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This has to do with the location of the ViennaCL include files and some restrictions inside the CUDA compiler.
If you need the CUDA backend, please copy the /usr/include/viennacl folder into your project directory, this should fix the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I encountered these errors when compiling the blas3.cu
/usr/include/viennacl/linalg/cuda/scalar_operations.hpp(96): error: kernel launches from templates are not allowed in system files
/usr/include/viennacl/linalg/cuda/scalar_operations.hpp(220): error: kernel launches from templates are not allowed in system files
/usr/include/viennacl/linalg/cuda/scalar_operations.hpp(348): error: kernel launches from templates are not allowed in system files
.
.
.
71 errors detected in the compilation of "/tmp/tmpxft_00003278_00000000-4_blas3.cpp4.ii".
I am a beginner using the ViennaCL and I don't know how to deal with the errors.
Is there any instruction I can follow?
Thanks.
This has to do with the location of the ViennaCL include files and some restrictions inside the CUDA compiler.
If you need the CUDA backend, please copy the /usr/include/viennacl folder into your project directory, this should fix the problem.