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

Build Failure #66

Open
the-humble-programmer opened this issue Dec 8, 2023 · 0 comments
Open

Build Failure #66

the-humble-programmer opened this issue Dec 8, 2023 · 0 comments

Comments

@the-humble-programmer
Copy link

I am unable to build, even in Release mode. These are the commands I used:

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES="70" ..
make

And then make 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?

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

1 participant