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

Hornet doesn't build #56

Open
the-humble-programmer opened this issue Dec 8, 2023 · 1 comment
Open

Hornet doesn't build #56

the-humble-programmer opened this issue Dec 8, 2023 · 1 comment

Comments

@the-humble-programmer
Copy link

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?

@dma-neves
Copy link

Hi! I'm not a Hornet developer, but I had similar issues and since this github page doesn't seem very active these days I thought I'd respond. I created a fork that fixes some of the compilation errors and disables the compilation of some algorithms in hornetsnest that aren't compiling. In case this interests you here's the link: https://github.com/dma-neves/hornet . Also if you use this fork you might want to comment the NO_PRINT_INFO flag I added in hornet/src/Util/CommandLineParam.cpp

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

2 participants