Skip to content

Error on build: Use of deleted function #7

Open

Description

@sakjain92

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?

Activity

  1. changed the title [-]Can't find "nouveau.h"[/-] [+]Error on build: Use of deleted function[/+] on Apr 2, 2018
  2. sakjain92 commented on Apr 2, 2018

    @sakjain92
    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!

  3. sakjain92 commented on Apr 2, 2018

    @sakjain92
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions