Using CuTensorNet in the CUDA Quantum Docker container

In general, I would like to write tensor network algorithms that use the CuTensorNet library, and it would be ideal to use it in the Dockerized environment made available in the CUDA Quantum documentation page.

In particular, I would like to run the QR decomposition example program in the Docker container, but I get the following error.

tensor_qr_example.cpp:15:10: fatal error: 'cuda_runtime.h' file not found

#include <cuda_runtime.h>

         ^~~~~~~~~~~~~~~~

1 error generated.

failed: "/opt/llvm/bin/clang++ -std=c++20 -I/opt/nvidia/cudaq/include -DCUDAQ_LIBRARY_MODE -o tensor_qr_example.o -c tensor_qr_example.cpp"

It seems that the header file is not in the container. I would like a solution, whether it involves including the header file, or bypassing it, where I can stay in the container.

Your help is greatly appreciated.

Thanks.

1 Like