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

Error on build: Use of deleted function #7

Open
sakjain92 opened this issue Apr 2, 2018 · 2 comments
Open

Error on build: Use of deleted function #7

sakjain92 opened this issue Apr 2, 2018 · 2 comments

Comments

@sakjain92
Copy link

sakjain92 commented Apr 2, 2018

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 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?

@sakjain92 sakjain92 changed the title Can't find "nouveau.h" Error on build: Use of deleted function Apr 2, 2018
@sakjain92
Copy link
Author

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!

@sakjain92
Copy link
Author

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?

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