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

Debug builds do not compile #48

Open
pgera opened this issue Jul 18, 2019 · 1 comment
Open

Debug builds do not compile #48

pgera opened this issue Jul 18, 2019 · 1 comment

Comments

@pgera
Copy link

pgera commented Jul 18, 2019

cmake -DCMAKE_BUILD_TYPE=Debug ..

@pgera
Copy link
Author

pgera commented Jul 18, 2019

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(245): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_allocator<int> > ::begin const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)0u, (unsigned int)2u> ::assign<int,  ::hornet::SoAPtr<int, int > > ") is not allowed

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(247): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_allocator<int> > ::begin const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)0u, (unsigned int)2u> ::assign<int,  ::hornet::SoAPtr<int, int > > ") is not allowed

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(245): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_allocator<int> > ::begin const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)1u, (unsigned int)2u> ::assign<int,  ::hornet::SoAPtr<int, int > > ") is not allowed

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(247): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_allocator<int> > ::begin const") from a __host__ __device__ function("hornet::RecursiveGather<(unsigned int)1u, (unsigned int)2u> ::assign<int,  ::hornet::SoAPtr<int, int > > ") is not allowed

4 errors detected in the compilation of "/tmp/tmpxft_00007802_00000000-7_HornetDeleteTest.compute_70.cpp1.ii".
CMakeFiles/hornet_delete_test.dir/build.make:62: recipe for target 'CMakeFiles/hornet_delete_test.dir/test/HornetDeleteTest.cu.o' failed
make[2]: *** [CMakeFiles/hornet_delete_test.dir/test/HornetDeleteTest.cu.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/hornet_delete_test.dir/all' failed
make[1]: *** [CMakeFiles/hornet_delete_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(245): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(247): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(245): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(247): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(245): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(247): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(245): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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

/home/nfs/pgera/hornet/hornet/include/Core/HornetDevice/../SoA/impl/SoAPtr.i.cuh(247): error: calling a __host__ function("thrust::detail::vector_base<int,  ::thrust::device_malloc_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 "/tmp/tmpxft_0000780b_00000000-7_HornetInsertTestWeighted.compute_70.cpp1.ii".
CMakeFiles/hornet_insert_weighted_test.dir/build.make:62: recipe for target 'CMakeFiles/hornet_insert_weighted_test.dir/test/HornetInsertTestWeighted.cu.o' failed
make[2]: *** [CMakeFiles/hornet_insert_weighted_test.dir/test/HornetInsertTestWeighted.cu.o] Error 1
CMakeFiles/Makefile2:257: recipe for target 'CMakeFiles/hornet_insert_weighted_test.dir/all' failed
make[1]: *** [CMakeFiles/hornet_insert_weighted_test.dir/all] Error 2
[ 68%] Linking CUDA device code CMakeFiles/ptxtest.dir/cmake_device_link.o
[ 70%] Linking CUDA device code CMakeFiles/mem_benchmark.dir/cmake_device_link.o
[ 73%] Linking CXX executable ptxtest
[ 75%] Linking CXX executable mem_benchmark
[ 75%] Built target ptxtest
[ 75%] Built target mem_benchmark
[ 78%] Linking CUDA device code CMakeFiles/lb_test.dir/cmake_device_link.o
[ 80%] Linking CXX executable lb_test
[ 80%] Built target lb_test
[ 82%] Linking CUDA device code CMakeFiles/hornet_insert_test.dir/cmake_device_link.o
[ 85%] Linking CXX executable hornet_insert_test
[ 87%] Linking CUDA device code CMakeFiles/hornet_mgpu_insert_test.dir/cmake_device_link.o
[ 90%] Linking CXX executable hornet_mgpu_insert_test
[ 90%] Built target hornet_insert_test
[ 90%] Built target hornet_mgpu_insert_test
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

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