VPI tries to use CUDA backend even if I specify to use CPU

Hello,

I have installed the VPI library on my laptop with no dedicated GPU just to try it. I have a small C++ program:

int main() {

std::cout << "VPI_BACKEND_CPU value: " << VPI_BACKEND_CPU << std::endl;

VPIStream stream;

vpiStreamCreate(VPI_BACKEND_CPU, &stream); // Use CPU only

VPIImage testImg_VPI;

cv::Mat testImg = cv::imread(“testImg.jpg”, cv::IMREAD_COLOR);

auto result = vpiImageCreateWrapperOpenCVMat(testImg, VPI_BACKEND_CPU, &testImg_VPI);

char msg[1024];

vpiGetLastStatusMessage(msg, sizeof(msg));

std::cerr << "VPI Error: " << msg << “\n”;

vpiImageDestroy(testImg_VPI);

return 0;

}

the output is:
VPI_BACKEND_CPU value: 1
VPI Error: (cudaErrorNoDevice)

Why does VPI try to use cuda device, if I use VPI_BACKEND_CPU ?

Version of VPI is 3.2

With the best wishes,
Valeriy