Trying to compile a library which uses CUSP and THRUST, I came across the following error
In file included from /usr/local/cuda/include/cusp/system/cuda/detail/multiply/coo_flat_spmv.h:21:0,
from /usr/local/cuda/include/cusp/system/cuda/detail/multiply.h:21,
from /usr/local/cuda/include/cusp/system/cuda/execution_policy.h:50,
from /usr/local/cuda/include/cusp/execution_policy.h:34,
from /usr/local/cuda/include/cusp/convert.h:25,
from /usr/local/cuda/include/cusp/detail/coo_matrix.inl:18,
from /usr/local/cuda/include/cusp/coo_matrix.h:605,
from lnInclude/cudaTypes.H:57,
from lnInclude/cudaSolver.H:42,
from cudaCG/cudaCG.H:43,
from cudaCG/cudaCG.C:26:
/usr/local/cuda/include/cusp/system/cuda/arch.h:24:10: fatal error: thrust/system/cuda/detail/detail/launch_calculator.h: No such file or directory
#include <thrust/system/cuda/detail/detail/launch_calculator.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In fact, there is no such file
root@orca:cudaSolvers# find /usr/local/cuda-9.1/include/ -name launch_calculator.h
root@orca:cudaSolvers#
More precisely, there is no /usr/local/cuda-9.1/include/thrust/system/cuda/detail/detail*
root@orca:cudaSolvers# ls /usr/local/cuda-9.1/include/thrust/system/cuda/detail/detail
ls: cannot access '/usr/local/cuda-9.1/include/thrust/system/cuda/detail/detail': No such file or directory
The arch.h says
#if THRUST_VERSION >= 100700
#include <thrust/system/cuda/detail/detail/launch_calculator.h>
#elif THRUST_VERSION >= 100600
#include <thrust/system/cuda/detail/arch.h>
#else
#include <thrust/detail/backend/cuda/arch.h>
Looking at the toolkit documentation [1], the version should be 1.7.0. So, I think something has been missed in the toolkit. I searched the web and found some pages that people have such problem with cuda-9 RC. So, the hope was that this problem would be fixed.
Any idea? I have stuck at this problem.