{"action":"closed","issue":{"url":"https://api.github.com/repos/torch/torch7/issues/917","repository_url":"https://api.github.com/repos/torch/torch7","labels_url":"https://api.github.com/repos/torch/torch7/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/torch/torch7/issues/917/comments","events_url":"https://api.github.com/repos/torch/torch7/issues/917/events","html_url":"https://github.com/torch/torch7/issues/917","id":202093029,"number":917,"title":"UBUNTU 16.04 ./install.sh failed : /usr/local/cuda/include/thrust/detail/reference.inl(127): error: no default constructor exists for class ","user":{"login":"albertyou2","id":11494761,"avatar_url":"https://avatars.githubusercontent.com/u/11494761?v=3","gravatar_id":"","url":"https://api.github.com/users/albertyou2","html_url":"https://github.com/albertyou2","followers_url":"https://api.github.com/users/albertyou2/followers","following_url":"https://api.github.com/users/albertyou2/following{/other_user}","gists_url":"https://api.github.com/users/albertyou2/gists{/gist_id}","starred_url":"https://api.github.com/users/albertyou2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertyou2/subscriptions","organizations_url":"https://api.github.com/users/albertyou2/orgs","repos_url":"https://api.github.com/users/albertyou2/repos","events_url":"https://api.github.com/users/albertyou2/events{/privacy}","received_events_url":"https://api.github.com/users/albertyou2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-20T09:30:57Z","updated_at":"2017-01-22T03:16:10Z","closed_at":"2017-01-22T03:16:10Z","body":"hi all , \r\nI met this error when i install torch :\r\n\r\n[  6%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMathScan.cu.o\r\n/usr/local/cuda/include/thrust/detail/reference.inl(127): error: no default constructor exists for class \"thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>\"\r\n          detected during:\r\n            instantiation of \"void thrust::reference<Element, Pointer, Derived>::assign_from(OtherPointer) [with Element=signed long, Pointer=thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>, Derived=thrust::use_default, OtherPointer=const signed long *]\" \r\n(65): here\r\n            instantiation of \"thrust::reference<Element, Pointer, Derived>::derived_type &thrust::reference<Element, Pointer, Derived>::operator=(const thrust::reference<Element, Pointer, Derived>::value_type &) [with Element=signed long, Pointer=thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>, Derived=thrust::use_default]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/reduce_intervals.inl(150): here\r\n            instantiation of \"void thrust::system::cuda::detail::commutative_reduce_intervals_closure<InputIterator, OutputIterator, BinaryFunction, Decomposition, Context>::operator()() [with InputIterator=thrust::transform_iterator<thrust::detail::predicate_to_integral<NonZeroOp<unsigned char>, signed long>, thrust::device_ptr<unsigned char>, signed long, thrust::use_default>, OutputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, BinaryFunction=thrust::plus<signed long>, Decomposition=thrust::system::detail::internal::uniform_decomposition<signed long>, Context=thrust::system::cuda::detail::detail::blocked_thread_array]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/detail/launch_closure.inl(52): here\r\n            instantiation of \"void thrust::system::cuda::detail::detail::launch_closure_by_value(Closure) [with Closure=thrust::system::cuda::detail::commutative_reduce_intervals_closure<thrust::transform_iterator<thrust::detail::predicate_to_integral<NonZeroOp<unsigned char>, signed long>, thrust::device_ptr<unsigned char>, signed long, thrust::use_default>, thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, thrust::plus<signed long>, thrust::system::detail::internal::uniform_decomposition<signed long>, thrust::system::cuda::detail::detail::blocked_thread_array>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/detail/launch_closure.inl(81): here\r\n            instantiation of \"thrust::system::cuda::detail::detail::closure_launcher_base<Closure, launch_by_value>::launch_function_t thrust::system::cuda::detail::detail::closure_launcher_base<Closure, launch_by_value>::get_launch_function() [with Closure=thrust::system::cuda::detail::commutative_reduce_intervals_closure<thrust::transform_iterator<thrust::detail::predicate_to_integral<NonZeroOp<unsigned char>, signed long>, thrust::device_ptr<unsigned char>, signed long, thrust::use_default>, thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, thrust::plus<signed long>, thrust::system::detail::internal::uniform_decomposition<signed long>, thrust::system::cuda::detail::detail::blocked_thread_array>, launch_by_value=true]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/detail/launch_closure.inl(206): here\r\n            [ 2 instantiation contexts not shown ]\r\n            instantiation of \"thrust::system::cuda::detail::detail::launch_calculator<Closure>::launch_calculator() [with Closure=thrust::system::cuda::detail::commutative_reduce_intervals_closure<thrust::transform_iterator<thrust::detail::predicate_to_integral<NonZeroOp<unsigned char>, signed long>, thrust::device_ptr<unsigned char>, signed long, thrust::use_default>, thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, thrust::plus<signed long>, thrust::system::detail::internal::uniform_decomposition<signed long>, thrust::system::cuda::detail::detail::blocked_thread_array>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/reduce_intervals.inl(189): here\r\n            instantiation of \"void thrust::system::cuda::detail::reduce_intervals(thrust::system::cuda::detail::execution_policy<DerivedPolicy> &, InputIterator, OutputIterator, BinaryFunction, Decomposition) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator=thrust::transform_iterator<thrust::detail::predicate_to_integral<NonZeroOp<unsigned char>, signed long>, thrust::device_ptr<unsigned char>, signed long, thrust::use_default>, OutputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, BinaryFunction=thrust::plus<signed long>, Decomposition=thrust::system::detail::internal::uniform_decomposition<signed long>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/copy_if.inl(201): here\r\n            instantiation of \"OutputIterator thrust::system::cuda::detail::copy_if_detail::copy_if(thrust::system::cuda::detail::execution_policy<DerivedPolicy> &, InputIterator1, InputIterator1, InputIterator2, OutputIterator, Predicate) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator1=thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, InputIterator2=thrust::device_ptr<unsigned char>, OutputIterator=thrust::permutation_iterator<thrust::device_ptr<long>, thrust::transform_iterator<strided_range<thrust::device_ptr<long>>::stride_functor, thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, thrust::use_default, thrust::use_default>>, Predicate=NonZeroOp<unsigned char>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/copy_if.inl(251): here\r\n            instantiation of \"OutputIterator thrust::system::cuda::detail::copy_if(thrust::system::cuda::detail::execution_policy<DerivedPolicy> &, InputIterator1, InputIterator1, InputIterator2, OutputIterator, Predicate) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator1=thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, InputIterator2=thrust::device_ptr<unsigned char>, OutputIterator=thrust::permutation_iterator<thrust::device_ptr<long>, thrust::transform_iterator<strided_range<thrust::device_ptr<long>>::stride_functor, thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, thrust::use_default, thrust::use_default>>, Predicate=NonZeroOp<unsigned char>]\" \r\n/usr/local/cuda/include/thrust/detail/copy_if.inl(60): here\r\n            instantiation of \"OutputIterator thrust::copy_if(const thrust::detail::execution_policy_base<DerivedPolicy> &, InputIterator1, InputIterator1, InputIterator2, OutputIterator, Predicate) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator1=thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, InputIterator2=thrust::device_ptr<unsigned char>, OutputIterator=thrust::permutation_iterator<thrust::device_ptr<long>, thrust::transform_iterator<strided_range<thrust::device_ptr<long>>::stride_functor, thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, thrust::use_default, thrust::use_default>>, Predicate=NonZeroOp<unsigned char>]\" \r\n/home/sojoyoo/torch/extra/cutorch/lib/THC/generic/THCTensorMath.cu(313): here\r\n\r\n/usr/local/cuda/include/thrust/detail/reference.inl(98): error: no default constructor exists for class \"thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>\"\r\n          detected during:\r\n            instantiation of \"thrust::reference<Element, Pointer, Derived>::operator thrust::reference<Element, Pointer, Derived>::value_type() const [with Element=signed long, Pointer=thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>, Derived=thrust::use_default]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/bulk/algorithm/scan.hpp(514): here\r\n            instantiation of \"RandomAccessIterator2 thrust::system::cuda::detail::bulk_::inclusive_scan(thrust::system::cuda::detail::bulk_::concurrent_group<thrust::system::cuda::detail::bulk_::agent<grainsize>, size> &, RandomAccessIterator1, RandomAccessIterator1, RandomAccessIterator2, BinaryFunction) [with size=512UL, grainsize=3UL, RandomAccessIterator1=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, RandomAccessIterator2=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, BinaryFunction=thrust::plus<signed long>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/scan.inl(55): here\r\n            instantiation of \"void thrust::system::cuda::detail::scan_detail::inclusive_scan_n::operator()(ConcurrentGroup &, InputIterator, Size, OutputIterator, BinaryFunction) [with ConcurrentGroup=thrust::system::cuda::detail::bulk_::concurrent_group<thrust::system::cuda::detail::bulk_::agent<3UL>, 512UL>, InputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, Size=signed long, OutputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, BinaryFunction=thrust::plus<signed long>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/bulk/detail/apply_from_tuple.hpp(83): here\r\n            instantiation of \"void thrust::system::cuda::detail::bulk_::detail::apply_from_tuple(Function, const thrust::tuple<Arg1, Arg2, Arg3, Arg4, Arg5, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> &) [with Function=thrust::system::cuda::detail::scan_detail::inclusive_scan_n, Arg1=thrust::system::cuda::detail::bulk_::concurrent_group<thrust::system::cuda::detail::bulk_::agent<3UL>, 512UL> &, Arg2=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, Arg3=signed long, Arg4=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, Arg5=thrust::plus<signed long>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/bulk/detail/closure.hpp(50): here\r\n            instantiation of \"void thrust::system::cuda::detail::bulk_::detail::closure<Function, Tuple>::operator()() [with Function=thrust::system::cuda::detail::scan_detail::inclusive_scan_n, Tuple=thrust::tuple<thrust::system::cuda::detail::bulk_::concurrent_group<thrust::system::cuda::detail::bulk_::agent<3UL>, 512UL> &, thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, signed long, thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, thrust::plus<signed long>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/bulk/detail/cuda_task.hpp(58): here\r\n            [ 11 instantiation contexts not shown ]\r\n            instantiation of \"OutputIterator thrust::system::cuda::detail::inclusive_scan(thrust::system::cuda::detail::execution_policy<DerivedPolicy> &, InputIterator, InputIterator, OutputIterator, AssociativeOperator) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, OutputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, AssociativeOperator=thrust::plus<signed long>]\" \r\n/usr/local/cuda/include/thrust/detail/scan.inl(63): here\r\n            instantiation of \"OutputIterator thrust::inclusive_scan(const thrust::detail::execution_policy_base<DerivedPolicy> &, InputIterator, InputIterator, OutputIterator, AssociativeOperator) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, OutputIterator=thrust::detail::normal_iterator<thrust::pointer<signed long, thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, thrust::use_default, thrust::use_default>>, AssociativeOperator=thrust::plus<signed long>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/copy_if.inl(204): here\r\n            instantiation of \"OutputIterator thrust::system::cuda::detail::copy_if_detail::copy_if(thrust::system::cuda::detail::execution_policy<DerivedPolicy> &, InputIterator1, InputIterator1, InputIterator2, OutputIterator, Predicate) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator1=thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, InputIterator2=thrust::device_ptr<unsigned char>, OutputIterator=thrust::permutation_iterator<thrust::device_ptr<long>, thrust::transform_iterator<strided_range<thrust::device_ptr<long>>::stride_functor, thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, thrust::use_default, thrust::use_default>>, Predicate=NonZeroOp<unsigned char>]\" \r\n/usr/local/cuda/include/thrust/system/cuda/detail/copy_if.inl(251): here\r\n            instantiation of \"OutputIterator thrust::system::cuda::detail::copy_if(thrust::system::cuda::detail::execution_policy<DerivedPolicy> &, InputIterator1, InputIterator1, InputIterator2, OutputIterator, Predicate) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator1=thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, InputIterator2=thrust::device_ptr<unsigned char>, OutputIterator=thrust::permutation_iterator<thrust::device_ptr<long>, thrust::transform_iterator<strided_range<thrust::device_ptr<long>>::stride_functor, thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, thrust::use_default, thrust::use_default>>, Predicate=NonZeroOp<unsigned char>]\" \r\n/usr/local/cuda/include/thrust/detail/copy_if.inl(60): here\r\n            instantiation of \"OutputIterator thrust::copy_if(const thrust::detail::execution_policy_base<DerivedPolicy> &, InputIterator1, InputIterator1, InputIterator2, OutputIterator, Predicate) [with DerivedPolicy=thrust::detail::execute_with_allocator<THCThrustAllocator, thrust::system::cuda::detail::execute_on_stream_base>, InputIterator1=thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, InputIterator2=thrust::device_ptr<unsigned char>, OutputIterator=thrust::permutation_iterator<thrust::device_ptr<long>, thrust::transform_iterator<strided_range<thrust::device_ptr<long>>::stride_functor, thrust::counting_iterator<long, thrust::use_default, thrust::use_default, thrust::use_default>, thrust::use_default, thrust::use_default>>, Predicate=NonZeroOp<unsigned char>]\" \r\n/home/sojoyoo/torch/extra/cutorch/lib/THC/generic/THCTensorMath.cu(313): here\r\n\r\n2 errors detected in the compilation of \"/tmp/tmpxft_000019e9_00000000-7_THCTensorMath.cpp1.ii\".\r\nCMake Error at THC_generated_THCTensorMath.cu.o.cmake:267 (message):\r\n  Error generating file\r\n  /home/sojoyoo/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMath.cu.o\r\n\r\n\r\nlib/THC/CMakeFiles/THC.dir/build.make:2778: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o' failed\r\nmake[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o] Error 1\r\nmake[2]: *** 正在等待未完成的任务....\r\nCMakeFiles/Makefile2:172: recipe for target 'lib/THC/CMakeFiles/THC.dir/all' failed\r\nmake[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2\r\nMakefile:127: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n\r\nError: Build error: Failed building.\r\n\r\n\r\nMy OS is Ubuntu 16.04 LTS,compiler are gcc 5.4.1 and g++ 5.4.1.\r\nI installed CUDA 8 and cudnn 5.1 successful.\r\nDid someone met this error before?\r\n"}}
{"actor":{"display_login":"albertyou2"}}