Having just updated my Odeint version on a Linux Ubuntu 12.04 running Cuda 4.2 and gcc/g++ (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)_, I have tried to compile the CUDA/Thrust examples files in odeint-v2/libs/numeric/odeint/examples/thrust using a slightly modified version of the included Makefile:
CUDA_ROOT = /usr/local/cuda
ARCH = sm_20
CC = gcc
CXX = gcc
NVCC = $(CUDA_ROOT)/bin/nvcc
INCLUDES += -I$(BOOST_ROOT) -I$(THRUST_ROOT) -I$(CUDA_ROOT)/include -I../../../../..
NVCCFLAGS = -O3 $(INCLUDES) -arch $(ARCH) --compiler-bindir=/usr/bin/gcc
but unfortunately, I obtained the error messages below which I do not understand. Could any one help me to solve this ?
Thanks a lot for any help.
~/local/odeint-v2/libs/numeric/odeint/examples/thrust$ make all
/usr/local/cuda/bin/nvcc -O3 -I -I -I/usr/local/cuda/include -I../../../../.. -arch sm_20 --compiler-bindir=/usr/bin/gcc -c phase_oscillator_chain.cu -o phase_oscillator_chain.co
../../../../../boost/numeric/odeint/algebra/default_operations.hpp(93): warning: missing return statement at end of non-void function "boost::numeric::odeint::default_operations::scale_sum2<Fac1, Fac2>::operator="
gcc -o phase_oscillator_chain -L/usr/local/cuda/lib64 -lcudart -lgomp phase_oscillator_chain.co
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function std::vector<double, std::allocator >::vector(unsigned long, double const&, std::allocator const&) [clone .isra.177] [clone .constprop.473]: error: undefined reference to 'operator new(unsigned long)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_vector<unsigned long, thrust::device_malloc_allocator >::~device_vector() [clone .constprop.478]: error: undefined reference to '__cxa_allocate_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_vector<unsigned long, thrust::device_malloc_allocator >::~device_vector() [clone .constprop.478]: error: undefined reference to '__cxa_throw'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_vector<unsigned long, thrust::device_malloc_allocator >::~device_vector() [clone .constprop.478]: error: undefined reference to '__cxa_free_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function phase_oscillators::~phase_oscillators() [clone .constprop.474]: error: undefined reference to '__cxa_allocate_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function phase_oscillators::~phase_oscillators() [clone .constprop.474]: error: undefined reference to '__cxa_throw'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function phase_oscillators::~phase_oscillators() [clone .constprop.474]: error: undefined reference to '__cxa_allocate_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function phase_oscillators::~phase_oscillators() [clone .constprop.474]: error: undefined reference to '__cxa_throw'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function phase_oscillators::~phase_oscillators() [clone .constprop.474]: error: undefined reference to '__cxa_free_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function phase_oscillators::~phase_oscillators() [clone .constprop.474]: error: undefined reference to '__cxa_free_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to '__cxa_allocate_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to '_cxa_throw'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::basic_string(char const, std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'std::length_error::length_error(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'std::length_error::~length_error()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'typeinfo for std::length_error'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to '__cxa_begin_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to '__cxa_rethrow'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'cxa_free_exception'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<unsigned long, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >&) [clone .constprop.493]: error: undefined reference to 'cxa_end_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::~cuda_error_category(): error: undefined reference to 'operator delete(void)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::system_error_category::~system_error_category(): error: undefined reference to 'operator delete(void)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::generic_error_category::~generic_error_category(): error: undefined reference to 'operator delete(void)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::error_category::~error_category(): error: undefined reference to 'operator delete(void)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::message(int) const: error: undefined reference to 'cxa_guard_acquire'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::message(int) const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::basic_string(char const, std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::message(int) const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::basic_string(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::message(int) const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::basic_string(char const, std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::message(int) const: error: undefined reference to '__cxa_guard_release'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::message(int) const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::message(int) const: error: undefined reference to '__cxa_guard_abort'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::generic_error_category::message(int) const: error: undefined reference to '_cxa_guard_acquire'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::generic_error_category::message(int) const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::basic_string(char const, std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::generic_error_category::message(int) const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::basic_string(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::generic_error_category::message(int) const: error: undefined reference to '__cxa_guard_release'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::generic_error_category::message(int) const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::generic_error_category::message(int) const: error: undefined reference to '__cxa_guard_abort'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >::allocate(unsigned long) [clone .part.152]: error: undefined reference to 'std::bad_alloc::~bad_alloc()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >::allocate(unsigned long) [clone .part.152]: error: undefined reference to 'vtable for std::bad_alloc'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::contiguous_storage<unsigned long, thrust::device_malloc_allocator >::allocate(unsigned long) [clone .part.152]: error: undefined reference to 'typeinfo for std::bad_alloc'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >::allocate(unsigned long) [clone .part.179]: error: undefined reference to 'std::bad_alloc::~bad_alloc()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >::allocate(unsigned long) [clone .part.179]: error: undefined reference to 'vtable for std::bad_alloc'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >::allocate(unsigned long) [clone .part.179]: error: undefined reference to 'typeinfo for std::bad_alloc'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::~system_error(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::_Rep::_S_empty_rep_storage'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::~system_error(): error: undefined reference to 'std::runtime_error::~runtime_error()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::~system_error(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::_Rep::_M_destroy(std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::bad_alloc::~bad_alloc(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::_Rep::_S_empty_rep_storage'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::bad_alloc::~bad_alloc(): error: undefined reference to 'std::bad_alloc::~bad_alloc()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::bad_alloc::~bad_alloc(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::_Rep::_M_destroy(std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::~system_error(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::_Rep::_S_empty_rep_storage'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::~system_error(): error: undefined reference to 'std::runtime_error::~runtime_error()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::~system_error(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::_Rep::_M_destroy(std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::bad_alloc::~bad_alloc(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::_Rep::_S_empty_rep_storage'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::bad_alloc::~bad_alloc(): error: undefined reference to 'std::bad_alloc::~bad_alloc()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::bad_alloc::~bad_alloc(): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::Rep::M_destroy(std::allocator const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to 'std::runtime_error::what() const'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::assign(char const, unsigned long)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::append(char const, unsigned long)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::append(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to '__cxa_begin_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to 'std::runtime_error::what() const'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to '__cxa_end_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::what() const: error: undefined reference to '__cxa_call_unexpected'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::default_error_condition(int) const: error: undefined reference to '__cxa_guard_acquire'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::default_error_condition(int) const: error: undefined reference to '__cxa_guard_release'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::default_error_condition(int) const: error: undefined reference to '__cxa_guard_acquire'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::detail::cuda_error_category::default_error_condition(int) const: error: undefined reference to '__cxa_guard_release'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::system::system_error::system_error(int, thrust::system::error_category const&): error: undefined reference to 'std::runtime_error::runtime_error(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function main: error: undefined reference to 'std::cout'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function main: error: undefined reference to 'std::cout'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function main: error: undefined reference to 'std::basic_ostream<char, std::char_traits >& std::endl<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function main: error: undefined reference to 'std::cout'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function GLOBAL__sub_I__ZN77_GLOBAL__N__57_tmpxft_00001c78_00000000_9_phase_oscillator_chain_cpp4_ii_main2_1E: error: undefined reference to 'std::ios_base::Init::Init()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function GLOBAL__sub_I__ZN77_GLOBAL__N__57_tmpxft_00001c78_00000000_9_phase_oscillator_chain_cpp4_ii_main2_1E: error: undefined reference to 'std::ios_base::Init::~Init()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_ptr thrust::detail::backend::cuda::malloc<0u>(unsigned long): error: undefined reference to 'std::bad_alloc::what() const'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_ptr thrust::detail::backend::cuda::malloc<0u>(unsigned long): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::assign(char const)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_ptr thrust::detail::backend::cuda::malloc<0u>(unsigned long): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::append(char const)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_ptr thrust::detail::backend::cuda::malloc<0u>(unsigned long): error: undefined reference to 'std::basic_string<char, std::char_traits, std::allocator >::append(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::device_ptr thrust::detail::backend::cuda::malloc<0u>(unsigned long): error: undefined reference to 'std::bad_alloc::~bad_alloc()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::backend::cuda::no_throw_free<0u>(thrust::device_ptr): error: undefined reference to '__cxa_begin_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::backend::cuda::no_throw_free<0u>(thrust::device_ptr): error: undefined reference to '__cxa_end_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::backend::cuda::no_throw_free<0u>(thrust::device_ptr): error: undefined reference to '__cxa_call_unexpected'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<__gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > > >(unsigned long, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to 'std::length_error::length_error(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<__gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > > >(unsigned long, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to 'std::length_error::~length_error()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<__gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > > >(unsigned long, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to 'typeinfo for std::length_error'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<__gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > > >(unsigned long, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to '__cxa_begin_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<__gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > > >(unsigned long, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to '__cxa_rethrow'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<__gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > > >(unsigned long, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, __gnu_cxx::__normal_iterator<double const*, std::vector<double, std::allocator > >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to '__cxa_end_catch'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to 'std::length_error::length_error(std::basic_string<char, std::char_traits, std::allocator > const&)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to 'std::length_error::~length_error()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to 'typeinfo for std::length_error'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function void thrust::detail::vector_base<double, thrust::device_malloc_allocator >::allocate_and_copy<thrust::detail::normal_iterator<thrust::device_ptr > >(unsigned long, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::normal_iterator<thrust::device_ptr >, thrust::detail::contiguous_storage<double, thrust::device_malloc_allocator >&): error: undefined reference to '__cxa_rethrow'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function std::ostream_iterator<double, char, std::char_traits > thrust::detail::backend::cuda::copy_cross_spacethrust::detail::normal_iterator<thrust::device_ptr, std::ostream_iterator<double, char, std::char_traits > >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, std::ostream_iterator<double, char, std::char_traits >, thrust::random_access_traversal_tag, thrust::incrementable_traversal_tag): error: undefined reference to 'operator new(unsigned long)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function std::ostream_iterator<double, char, std::char_traits > thrust::detail::backend::cuda::copy_cross_spacethrust::detail::normal_iterator<thrust::device_ptr, std::ostream_iterator<double, char, std::char_traits > >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, std::ostream_iterator<double, char, std::char_traits >, thrust::random_access_traversal_tag, thrust::incrementable_traversal_tag): error: undefined reference to 'std::basic_ostream<char, std::char_traits >& std::basic_ostream<char, std::char_traits >::_M_insert(double)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function std::ostream_iterator<double, char, std::char_traits > thrust::detail::backend::cuda::copy_cross_spacethrust::detail::normal_iterator<thrust::device_ptr, std::ostream_iterator<double, char, std::char_traits > >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, std::ostream_iterator<double, char, std::char_traits >, thrust::random_access_traversal_tag, thrust::incrementable_traversal_tag): error: undefined reference to 'std::basic_ostream<char, std::char_traits >& std::_ostream_insert<char, std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const, long)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function std::ostream_iterator<double, char, std::char_traits > thrust::detail::backend::cuda::copy_cross_spacethrust::detail::normal_iterator<thrust::device_ptr, std::ostream_iterator<double, char, std::char_traits > >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, std::ostream_iterator<double, char, std::char_traits >, thrust::random_access_traversal_tag, thrust::incrementable_traversal_tag): error: undefined reference to 'std::basic_ostream<char, std::char_traits >& std::basic_ostream<char, std::char_traits >::M_insert(double)'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function std::ostream_iterator<double, char, std::char_traits > thrust::detail::backend::cuda::copy_cross_spacethrust::detail::normal_iterator<thrust::device_ptr, std::ostream_iterator<double, char, std::char_traits > >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, std::ostream_iterator<double, char, std::char_traits >, thrust::random_access_traversal_tag, thrust::incrementable_traversal_tag): error: undefined reference to 'std::__throw_bad_alloc()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::normal_iteratorthrust::device_ptr thrust::detail::overlapped_copythrust::detail::normal_iterator<thrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr): error: undefined reference to 'std::bad_alloc::~bad_alloc()'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::normal_iteratorthrust::device_ptr thrust::detail::overlapped_copythrust::detail::normal_iterator<thrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr): error: undefined reference to 'vtable for std::bad_alloc'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::normal_iteratorthrust::device_ptr thrust::detail::overlapped_copythrust::detail::normal_iterator<thrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr): error: undefined reference to 'typeinfo for std::bad_alloc'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::normal_iteratorthrust::device_ptr thrust::detail::overlapped_copythrust::detail::normal_iterator<thrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr >(thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr, thrust::detail::normal_iteratorthrust::device_ptr): error: undefined reference to '__cxa_call_unexpected'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function thrust::detail::vector_base<double, thrust::device_malloc_allocator >::fill_insert(thrust::detail::normal_iteratorthrust::device_ptr, unsigned long, double const&): error: undefined reference to '__cxa_rethrow'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function typeinfo for thrust::system::system_error: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function typeinfo for thrust::system::system_error: error: undefined reference to 'typeinfo for std::runtime_error'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function vtable for thrust::system::error_category: error: undefined reference to '__cxa_pure_virtual'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function vtable for thrust::system::error_category: error: undefined reference to '__cxa_pure_virtual'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function typeinfo for thrust::system::detail::bad_alloc: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function typeinfo for thrust::system::detail::bad_alloc: error: undefined reference to 'typeinfo for std::bad_alloc'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function typeinfo for thrust::system::error_category: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function typeinfo for thrust::system::detail::cuda_error_category: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
phase_oscillator_chain.co:tmpxft_00001c78_00000000-1_phase_oscillator_chain.cudafe1.cpp:function typeinfo for thrust::system::detail::system_error_category: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
phase_oscillator_chain.co(.eh_frame+0x8f3): error: undefined reference to '__gxx_personality_v0'
collect2: ld a retourné 1 code d'état d'exécution
make: ** [phase_oscillator_chain] Erreur 1