Cuda error 'cuda_runtime_api.h'

asked 2018-08-22 11:10:15 -0500

vps gravatar image

Hi all, I have build opencv 3.4.2 for GPU. Code:

include "opencv2/core/cuda_types.hpp"

include "opencv2/core/cuda.inl.hpp"

include "opencv2/core/cuda.hpp"

include "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include\cuda_runtime.h"

include "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include\device_launch_parameters.h"

include "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include\thrust\host_vector.h"

include "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include\thrust\device_vector.h"

using namespace cv; using namespace std;

int main() { Mat image = imread("sachin.jpg"); imshow("sachin", image); waitKey(0); return 0; }

Error: Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: 'cuda_runtime_api.h': No such file or directory test1 C:\sources\opencv-3.4.2\build\install\include\thrust\system\cuda\detail\bulk\detail\guarded_cuda_runtime_api.hpp 50

edit retag flag offensive close merge delete