-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Even if I build in Release mode, it throws errors. This is my build command:
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES="70" ..
make
And make then throws this error:
[ 79%] Building CUDA object CMakeFiles/hornet_insert_weighted_test.dir/test/HornetInsertTestWeighted.cu.o
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)2u, (unsigned int)4u> ::assign<int, ::hornet::CSoAPtr<int, int, int, float > > ") is not allowed
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)2u, (unsigned int)4u> ::assign<int, ::hornet::CSoAPtr<int, int, int, float > > ") is not allowed
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)2u, (unsigned int)4u> ::assign<int, ::hornet::SoAPtr<int, int, int, float > > ") is not allowed
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)2u, (unsigned int)4u> ::assign<int, ::hornet::SoAPtr<int, int, int, float > > ") is not allowed
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)3u, (unsigned int)4u> ::assign<int, ::hornet::CSoAPtr<int, int, int, float > > ") is not allowed
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)3u, (unsigned int)4u> ::assign<int, ::hornet::CSoAPtr<int, int, int, float > > ") is not allowed
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)3u, (unsigned int)4u> ::assign<int, ::hornet::SoAPtr<int, int, int, float > > ") is not allowed
/Data/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(251): error: calling a __host__ function("thrust::detail::vector_base<int, ::thrust::device_allocator<int> > ::begin() const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)3u, (unsigned int)4u> ::assign<int, ::hornet::SoAPtr<int, int, int, float > > ") is not allowed
8 errors detected in the compilation of "/Data/ullas/hornet/hornet/test/HornetInsertTestWeighted.cu".
make[2]: *** [CMakeFiles/hornet_insert_weighted_test.dir/build.make:77: CMakeFiles/hornet_insert_weighted_test.dir/test/HornetInsertTestWeighted.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:201: CMakeFiles/hornet_insert_weighted_test.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
How do I fix this?
Metadata
Metadata
Assignees
Labels
No labels