Hello,
I'm trying to make a single prediction in c++ with Caffe.
I found
this code but it cannot compile. Indeed, as i don't intend to use my GPU, i didn't install CUDA.
But CUDA seems to be indispensable in the inclusions.
Here is the message i get when i try to compile :
In file included from main.cpp:9:
In file included from include/caffe/caffe.hpp:7:
In file included from include/caffe/blob.hpp:8:
In file included from include/caffe/common.hpp:19:
include/caffe/util/device_alternate.hpp:34:10: fatal error: 'cublas_v2.h' file not found
#include <cublas_v2.h>
^
1 error generated.
How can i make it work without installing CUDA ? The problem is the inclusions in the device_alternate header :
#include <cublas_v2.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <curand.h>
#include <driver_types.h> // cuda driver types
Thanks,