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

CUDA integer methods? #256

Open
cdeterman opened this issue Feb 2, 2018 · 1 comment
Open

CUDA integer methods? #256

cdeterman opened this issue Feb 2, 2018 · 1 comment

Comments

@cdeterman
Copy link
Contributor

Are the templates for CUDA int methods not provided in ViennaCL? I am getting many errors, such as the following, during some compilation.

/usr/local/lib/R/site-library/RViennaCL/include/viennacl/linalg/cuda/matrix_operations_row.hpp(1013): error: calling a __host__ function("std::sqrt<int> ") from a __global__ function("viennacl::linalg::cuda::matrix_row_unary_element_op_kernel< ::viennacl::op_sqrt, int> ") is not allowed

/usr/local/lib/R/site-library/RViennaCL/include/viennacl/linalg/cuda/matrix_operations_col.hpp(983): error: calling a __host__ function("std::sqrt<int> ") from a __global__ function("viennacl::linalg::cuda::matrix_col_unary_element_op_kernel< ::viennacl::op_sqrt, int> ") is not allowed

/usr/local/lib/R/site-library/RViennaCL/include/viennacl/linalg/cuda/matrix_operations_row.hpp(1013): error: calling a __host__ function("std::sin<int> ") from a __global__ function("viennacl::linalg::cuda::matrix_row_unary_element_op_kernel< ::viennacl::op_sin, int> ") is not allowed

Several more are omitted for the sake of space. Basically all the blas 1 methods.

I see the macro VIENNACL_CUDA_GENERATE_UNARY_OP in the viennacl/linalg/cuda/common.hpp file but I fail to see what dictates whether it generates a different type when all the blas 1 methods are provided for the int type in OpenCL.

@cdeterman
Copy link
Contributor Author

Or is this perhaps a CUDA thing where only float and double are available methods?

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