hzhan0607 / cusp-library

Automatically exported from code.google.com/p/cusp-library
Apache License 2.0
0 stars 0 forks source link

cannot find thrust include thrust/detail/backend/cuda/partition.h #83

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On line 28 Cusp v0.2.0 file
"cusp/detail/device/generalized_spmv/coo_flat.h"
includes header file from thrust v1.5.0
"#include <thrust/detail/backend/cuda/partition.h>"
but there is no such file in thrust v1.5.0

Step to reproduce:
1. Download and extract code examples at
http://code.google.com/p/cusp-library/downloads/detail?name=examples-v0.2.zip
2. Goto directory examples/Algorithms
3. Type "nvcc maximal_independent_set.cu" or "nvcc multiply.cu"
4. Error message:

---

In file included from 
/usr/local/cuda/bin/../include/cusp/graph/detail/maximal_independent_set.inl:17:
0,
                 from /usr/local/cuda/bin/../include/cusp/graph/maximal_independent_set.h:65,
                 from maximal_independent_set.cu:1:
/usr/local/cuda/bin/../include/cusp/detail/device/generalized_spmv/coo_flat.h:28
:50: fatal error: thrust/detail/backend/cuda/partition.h: No such file or 
directory
compilation terminated.

---

5. Compiling "nvcc blas.cu" or "nvcc transpose.cu" works just fine.

Using CUDA 4.1.

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2011 NVIDIA Corporation
Built on Tue_Oct_18_17:35:10_PDT_2011
Cuda compilation tools, release 4.1, V0.2.1221

Original issue reported on code.google.com by windh...@in.tum.de on 6 Dec 2011 at 7:27

GoogleCodeExporter commented 8 years ago
I see its already fixed in the source repository.

Original comment by windh...@in.tum.de on 6 Dec 2011 at 8:39

GoogleCodeExporter commented 8 years ago
I have a similar problem. When I try to compile Solvers/cg.cu or other I 
received 

In file included from /home/ksikora/cusp/detail/device/reduce_by_key.inl:19,
                 from /home/ksikora/cusp/detail/device/reduce_by_key.h:46,
                 from /home/ksikora/cusp/detail/device/spmm/coo.h:20,
                 from /home/ksikora/cusp/detail/device/multiply.h:30,
                 from /home/ksikora/cusp/detail/dispatch/multiply.h:20,
                 from /home/ksikora/cusp/detail/multiply.inl:17,
                 from /home/ksikora/cusp/multiply.h:90,
                 from /home/ksikora/cusp/krylov/detail/bicgstab.inl:20,
                 from /home/ksikora/cusp/krylov/bicgstab.h:126,
                 from bicgstab.cu:3:
/home/ksikora/cusp/detail/device/generalized_spmv/coo_flat.h:28:50: error: 
thrust/detail/backend/cuda/partition.h: Nie ma takiego pliku ani katalogu

for example blas.cu works fine. 

I using CUDA 4.0
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2011 NVIDIA Corporation
Built on Thu_May_12_11:09:45_PDT_2011
Cuda compilation tools, release 4.0, V0.2.1221

Original comment by krzysiek...@gmail.com on 11 Dec 2011 at 10:02

GoogleCodeExporter commented 8 years ago
I download a old version of trust (1.4) and its works. 
In summary, same functions from cusp doesn't work with trust 1.5 

Original comment by krzysiek...@gmail.com on 11 Dec 2011 at 10:34