Hi All,
I am trying to install CUDA on Hyper-V Ubuntu Linux 18.04.2 LTS virtual machine.
And my Host system is running Windows Server 2019 and the GPU model I have is Nvidia Titan RTX.
To enable my Hyper-V VM to use the GPU, I have success and done the GPU pass-through on my Host system to dismount the GPU and mount it to my Hyper-V Ubuntu Linux VM by referring to this documentation: https://docs.nvidia.com/grid/5.0/grid-vgpu-user-guide/index.html#using-gpu-pass-through-windows-server-hyper-v.
Then I have install CUDA on my Hyper-V Ubuntu Linux VM by following the instruction on Package Manager Installation from this documenatation:
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation
After complete the CUDA installation and successfully make the CUDA sample program. I encounter error when running the ./deviceQuery and ./bandwidthTest binaries.
The error I encounter is as below:
test-Virtual-Machine:~/NVIDIA_CUDA-10.1_Samples/bin/x86_64/linux/release$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 101
-> invalid device ordinal
Result = FAIL
test-Virtual-Machine:~/NVIDIA_CUDA-10.1_Samples/bin/x86_64/linux/release$ ./bandwidthTest
[CUDA Bandwidth Test] - Starting...
Running on...
cudaGetDeviceProperties returned 101
-> invalid device ordinal
CUDA error at bandwidthTest.cu:242 code=101(cudaErrorInvalidDevice) "cudaSetDevice(currentDevice)"
The error message when run nvidia-smi:
test-Virtual-Machine:~/NVIDIA_CUDA-10.1_Samples/bin/x86_64/linux/release$ nvidia-smi
Unable to determine the device handle for GPU 8C8A:00:00.0: Unknown Error
Can I know what should I do in order to successfully validate my CUDA installation is completed on my Hyper-V Ubuntu Linux VM?
Thanks and regards,
YiYang