Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hornet doesn't build #56

@the-humble-programmer

Description

@the-humble-programmer

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions