The equipment is shown in the figure
Behind is my c++ code
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include <iostream>
#include <time.h>
#include"opencv2/cudaarithm.hpp"
#include"cufft.h"
#include"opencv2/core/cuda.hpp"
#include <cuda_runtime.h>
#include<cuda.h>
#include <opencv2/cudaimgproc.hpp>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
#define NX 1024
#define NY 1024
cufftDoubleComplex *idata, *odata;
cufftDoubleComplex *hdata;
hdata = (cufftDoubleComplex *)malloc(sizeof(cufftDoubleComplex)*NX*NY);
cudaMalloc((void**)&idata, sizeof(cufftDoubleComplex)*NX*NY);
cudaMalloc((void**)&odata, sizeof(cufftDoubleComplex)*NX*NY);
THE Issues is that :/home/nvidia/Downloads/QTracker_booster_G4040/UI/main.cpp:-1: error: undefined reference to `cudaMalloc'
I tried for a day, but there was no progress。I hope to use Cuda to accelerate FFT on the MAT class of OpenCV,