{"action":"opened","issue":{"url":"https://api.github.com/repos/viennacl/viennacl-dev/issues/135","labels_url":"https://api.github.com/repos/viennacl/viennacl-dev/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/viennacl/viennacl-dev/issues/135/comments","events_url":"https://api.github.com/repos/viennacl/viennacl-dev/issues/135/events","html_url":"https://github.com/viennacl/viennacl-dev/issues/135","id":82499730,"number":135,"title":"Bug with CUDA backend for Armadillo Bindings?","user":{"login":"cdeterman","id":3091179,"avatar_url":"https://avatars.githubusercontent.com/u/3091179?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeterman","html_url":"https://github.com/cdeterman","followers_url":"https://api.github.com/users/cdeterman/followers","following_url":"https://api.github.com/users/cdeterman/following{/other_user}","gists_url":"https://api.github.com/users/cdeterman/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeterman/subscriptions","organizations_url":"https://api.github.com/users/cdeterman/orgs","repos_url":"https://api.github.com/users/cdeterman/repos","events_url":"https://api.github.com/users/cdeterman/events{/privacy}","received_events_url":"https://api.github.com/users/cdeterman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-29T16:43:29Z","updated_at":"2015-05-29T16:43:29Z","closed_at":null,"body":"Using the armadillo example you have provided in the tutorials works fine if I don't modify it in any way.  However, I decided to try it using the CUDA backend.  So I added the following line to a copy of the file changed to .cu:\r\n\r\n    #define VIENNACL_WITH_CUDA 1\r\n\r\nI then try to compile with:\r\n    \r\n    nvcc -arch=sm_30 armadillo-with-viennacl.cu -I/path/to/viennacl\r\n\r\nBut this results in the following error:\r\n\r\n>/usr/include/armadillo_bits/arma_static_check.hpp(23): error: const variable \"junk\" requires an initializer\r\n\r\n>1 error detected in the compilation of \"/tmp/tmpxft_000003bf_00000000-5_armadillo-with-viennacl.cpp4.ii\".\r\n\r\nDid I make a mistake somewhere in using the CUDA backend?"}}