I am a new user to cusp, experienced with cuda sparse matrix multiplication and cudaBlas. Yesterday I installed current versions cuda and cusp according to instructions, including updating PATH and LD_LIBRARY_PATH and compiled `version` ok. The output is as follows:
The following libraries were found:
CUDA v5.5
Thrust v1.7.0
Cusp v0.3.0
When attempting to compile one of the solver examples however I get the following error:
In file included from /usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/detail/device/spmv/coo_flat.h:21:0,
from /usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/detail/device/multiply.h:23,
from /usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/detail/dispatch/multiply.h:20,
from /usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/detail/multiply.inl:17,
from /usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/multiply.h:90,
from /usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/krylov/detail/cg.inl:20,
from /usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/krylov/cg.h:132,
/usr/local/cuda/bin/../targets/x86_64-linux/include/cusp/detail/device/arch.h:22:44: fatal error: thrust/system/cuda/detail/arch.h: No such file or directory
compilation terminated.
The file arch.h is located in cusp/detail/device/arch.h not in thrust/system/cuda/detail/arch.h.
When I attempt compilation with an explicit path to this file I still get similar errors.
-I/usr/local/cuda/include \
-I/usr/local/cuda/targets/x86_64-linux/include/cusp/detail/device/arch.h
In file included from /usr/local/cuda/include/cusp/detail/device/spmv/coo_flat.h:21:0,
from /usr/local/cuda/include/cusp/detail/device/multiply.h:23,
from /usr/local/cuda/include/cusp/detail/dispatch/multiply.h:20,
from /usr/local/cuda/include/cusp/detail/multiply.inl:17,
from /usr/local/cuda/include/cusp/multiply.h:90,
from /usr/local/cuda/include/cusp/krylov/detail/cg.inl:20,
from /usr/local/cuda/include/cusp/krylov/cg.h:132,
/usr/local/cuda/include/cusp/detail/device/arch.h:22:44: fatal error: thrust/system/cuda/detail/arch.h: No such file or directory
compilation terminated.
I use Ubuntu 12.04LTS and gcc version is gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3.
I updated the PATH and LD_LIBRARY_PATH as follows:
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH
There is a softlink in /usr/local, apparently created by the ubuntu installer:
cuda -> cuda-5.5
Other than the os I believe I have the latest versions of all packages. Is there an incompatibility with the versions of gcc? CUDA? Cusp? Thrust?
Any help would be appreciated.
Thanks, Jack