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: use of deleted function #13

Open
powderfool000 opened this issue Jul 12, 2019 · 2 comments
Open

error: use of deleted function #13

powderfool000 opened this issue Jul 12, 2019 · 2 comments

Comments

@powderfool000
Copy link

system setup:

Ubuntu LTS 16.04
NVidia drivers, 418.67
CUDA Toolkit, v9.2
NVidia GeForce 940MX (Compute Capability 5.0)

when run 'make python_cpu', i got the following error below

/usr/include/boost/python/object/value_holder.hpp:137:13: error: use of deleted function ‘cufhe::Ctxt::Ctxt(const cufhe::Ctxt&)’
BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_UNFORWARD_LOCAL, nil)
^
In file included from python/lib/fhepy.cpp:23:0:
./include/cufhe.h:109:3: note: declared here
Ctxt(const Ctxt& that) = delete;
^
Makefile:97: recipe for target 'python/lib/fhepy_cpu.o' failed
make: *** [python/lib/fhepy_cpu.o] Error 1

Any idea how i should go about this? Or is there anything i can check?

@benediamond
Copy link

I am getting something similar: see dump below.

ubuntu@ip-172-31-4-138:~/cuFHE/cufhe$ make python_gpu
nvcc -std=c++11 -O3 -w  -I./ -M -o build/details/allocator_gpu.d \
		lib/details/allocator_gpu.cu
nvcc -std=c++11 -O3 -w  -I./ -c -o build/details/allocator_gpu.o \
		lib/details/allocator_gpu.cu -Xcompiler '-fPIC'
nvcc -std=c++11 -O3 -w  -I./ -M -o build/ntt_gpu/ntt_1024_twiddle.d \
		lib/ntt_gpu/ntt_1024_twiddle.cu
nvcc -std=c++11 -O3 -w  -I./ -c -o build/ntt_gpu/ntt_1024_twiddle.o \
		lib/ntt_gpu/ntt_1024_twiddle.cu -Xcompiler '-fPIC'
nvcc -std=c++11 -O3 -w  -I./ -M -o build/cufhe_gates_gpu.d \
		lib/cufhe_gates_gpu.cu
nvcc -std=c++11 -O3 -w  -I./ -c -o build/cufhe_gates_gpu.o \
		lib/cufhe_gates_gpu.cu -Xcompiler '-fPIC'
nvcc -std=c++11 -O3 -w  -I./ -M -o build/cufhe_gpu.d \
		lib/cufhe_gpu.cu
nvcc -std=c++11 -O3 -w  -I./ -c -o build/cufhe_gpu.o \
		lib/cufhe_gpu.cu -Xcompiler '-fPIC'
nvcc -std=c++11 -O3 -w  -I./ -M -o build/bootstrap_gpu.d \
		lib/bootstrap_gpu.cu
nvcc -std=c++11 -O3 -w  -I./ -c -o build/bootstrap_gpu.o \
		lib/bootstrap_gpu.cu -Xcompiler '-fPIC'
g++ -std=c++11 -O3 -w -I./ -M -o build/cufhe.d \
		lib/cufhe.cc
g++ -std=c++11 -O3 -w -I./ -fPIC -c -o build/cufhe.o \
		lib/cufhe.cc
g++ -std=c++11 -O3 -w -I./ -M -o build/cufhe_io.d \
		lib/cufhe_io.cc
g++ -std=c++11 -O3 -w -I./ -fPIC -c -o build/cufhe_io.o \
		lib/cufhe_io.cc
nvcc -std=c++11 -O3 -w  -shared -o bin/libcufhe_gpu.so build/details/allocator_gpu.o build/ntt_gpu/ntt_1024_twiddle.o build/cufhe_gates_gpu.o build/cufhe_gpu.o build/bootstrap_gpu.o build/cufhe.o build/cufhe_io.o
nvcc  -I./ -I./include -I/usr/include/python2.7 -I/usr/include -Xcompiler '-fPIC' -c python/lib/fhepy.cu -std=c++11 -O3 -w -o python/lib/fhepy_gpu.o
/usr/include/boost/python/object/value_holder.hpp(131): error: function "cufhe::Ctxt::Ctxt(const cufhe::Ctxt &)"
./include/cufhe.h(109): here cannot be referenced -- it is a deleted function
          detected during:
            instantiation of "boost::python::objects::value_holder<Value>::value_holder(PyObject *, A0) [with Value=cufhe::Ctxt, A0=boost::reference_wrapper<const cufhe::Ctxt>]" 
/usr/include/boost/python/object/make_instance.hpp(72): here
            instantiation of "Holder *boost::python::objects::make_instance<T, Holder>::construct(void *, PyObject *, boost::reference_wrapper<const T>) [with T=cufhe::Ctxt, Holder=boost::python::objects::value_holder<cufhe::Ctxt>]" 
/usr/include/boost/python/object/make_instance.hpp(46): here
            instantiation of "PyObject *boost::python::objects::make_instance_impl<T, Holder, Derived>::execute(Arg &) [with T=cufhe::Ctxt, Holder=boost::python::objects::value_holder<cufhe::Ctxt>, Derived=boost::python::objects::make_instance<cufhe::Ctxt, boost::python::objects::value_holder<cufhe::Ctxt>>, Arg=const boost::reference_wrapper<const cufhe::Ctxt>]" 
/usr/include/boost/python/object/class_wrapper.hpp(29): here
            instantiation of "PyObject *boost::python::objects::class_cref_wrapper<Src, MakeInstance>::convert(const Src &) [with Src=cufhe::Ctxt, MakeInstance=boost::python::objects::make_instance<cufhe::Ctxt, boost::python::objects::value_holder<cufhe::Ctxt>>]" 
/usr/include/boost/python/converter/as_to_python_function.hpp(27): here
            instantiation of "PyObject *boost::python::converter::as_to_python_function<T, ToPython>::convert(const void *) [with T=cufhe::Ctxt, ToPython=boost::python::objects::class_cref_wrapper<cufhe::Ctxt, boost::python::objects::make_instance<cufhe::Ctxt, boost::python::objects::value_holder<cufhe::Ctxt>>>]" 
/usr/include/boost/python/to_python_converter.hpp(83): here
            [ 4 instantiation contexts not shown ]
            instantiation of "void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux2(T2 *, Callback) [with T=cufhe::Ctxt, X1=boost::python::detail::not_specified, X2=boost::python::detail::not_specified, X3=boost::python::detail::not_specified, T2=cufhe::Ctxt, Callback=boost::integral_constant<__nv_bool, false>]" 
/usr/include/boost/python/object/class_metadata.hpp(218): here
            instantiation of "void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux(void *) [with T=cufhe::Ctxt, X1=boost::python::detail::not_specified, X2=boost::python::detail::not_specified, X3=boost::python::detail::not_specified]" 
/usr/include/boost/python/object/class_metadata.hpp(204): here
            instantiation of "void boost::python::objects::class_metadata<T, X1, X2, X3>::register_() [with T=cufhe::Ctxt, X1=boost::python::detail::not_specified, X2=boost::python::detail::not_specified, X3=boost::python::detail::not_specified]" 
/usr/include/boost/python/class.hpp(450): here
            instantiation of "void boost::python::class_<W, X1, X2, X3>::initialize(const DefVisitor &) [with W=cufhe::Ctxt, X1=boost::python::detail::not_specified, X2=boost::python::detail::not_specified, X3=boost::python::detail::not_specified, DefVisitor=boost::python::init_base<boost::python::init<boost::python::optional<__nv_bool, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_>, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_>>]" 
/usr/include/boost/python/class.hpp(204): here
            instantiation of "boost::python::class_<W, X1, X2, X3>::class_(const char *, const boost::python::init_base<DerivedT> &) [with W=cufhe::Ctxt, X1=boost::python::detail::not_specified, X2=boost::python::detail::not_specified, X3=boost::python::detail::not_specified, DerivedT=boost::python::init<boost::python::optional<__nv_bool, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_>, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_, mpl_::void_>]" 
python/lib/fhepy.cu(56): here

1 error detected in the compilation of "/tmp/tmpxft_00005848_00000000-6_fhepy.cpp1.ii".
Makefile:103: recipe for target 'python/lib/fhepy_gpu.o' failed
make: *** [python/lib/fhepy_gpu.o] Error 1

any thoughts? this is on a freshly created AWS instance of type Deep Learning AMI (Ubuntu 18.04) Version 27.0 (ami-0a7789c77135a5f8a). thanks.

@mbsullivan
Copy link

I also get this, both for python_cpu and python_gpu.

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

3 participants