Error on build: Use of deleted function
When I run the following command:
$ cmake -H. -Brelease
-Ddriver=nouveau
-Duser=ON
-Druntime=ON
-Dusched=OFF
-Duse_as=OFF
-DCMAKE_BUILD_TYPE=Release
$ make -C release
I get the following error:
$ dev/cuda/runtime/ocelot/analysis/implementation/ControlTree.cpp:878:21: error: use of deleted function ‘void boost::ref(const T&&) [with T = analysis::ControlTree*]’ boost::ref(this), _1, _2)); ^ In file included from /usr/include/boost/ref.hpp:15:0, from /usr/include/boost/bind/bind.hpp:25, from /usr/include/boost/bind.hpp:22, from gdev/cuda/runtime/ocelot/analysis/implementation/ControlTree.cpp:22: /usr/include/boost/core/ref.hpp:174:24: note: declared here template<class T> void ref(T const&&) BOOST_REF_DELETE;
I have "libboost1.58-dev" installed (I am using Ubuntu 16.04). Are you using a different version for your test build?
Found the issue: I was using an old version of code
Please update "https://github.com/CPFL/gdev/blob/master/docs/README.cmake.md"
git://github.com/shinpei0208/gdev.git is not compiling (the code is not up-to-date) git://github.com/CPFL/gdev.git works!
Can you help me with this issue: When I run the following commands:
$cd $(TOPDIR)/test/cuda/user/madd $make $./user_test 256 # a[256] + b[256] = c[256]
I get the error: block = (16, 16) grid = (16, 16) [gdev] Failed to open gdev0 cuCtxCreate failed: res = 999 Test failed
It seems gdev driver is not loaded. Can you tell me what to do for this?