添加thrust的库后出错

在添加thrust库中的host_vector.h等头文件时

C:NVIDIAcudatoolkitinclude hrustdetailconfig
中的debug.h一直出问题,因此注释
#ifndef THRUST_DEBUG
# ifndef NDEBUG
# if (DEBUG || _DEBUG)
# define THRUST_DEBUG 1
# endif // (DEBUG || _DEBUG)
# endif // NDEBUG
#endif // THRUST_DEBUG
之后问题解决

原文地址:https://www.cnblogs.com/qingsunny/p/4334296.html