Can I use Vulkan in Runpod ?
Hi,
I’m trying to use Vulkan inside the following Docker image:
I installed Vulkan tools with:
However, when I run vulkaninfo or any Vulkan program, I get the following error:
I suspect it might be related to the NVIDIA Vulkan driver or ICD not being present inside the container.
Has anyone successfully used Vulkan with this Docker image?
How can I properly configure the NVIDIA Vulkan ICD in this container?
Thanks in advance for any help!
runpod/pytorch:2.8.0-py3.11-cuda12.8.1-cudnn-devel-ubuntu22.04
runpod/pytorch:2.8.0-py3.11-cuda12.8.1-cudnn-devel-ubuntu22.04
apt-get install -y --no-install-recommends vulkan-tools
apt-get install -y --no-install-recommends vulkan-tools
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
root@88c99df870d9:/app# cat /etc/vulkan/icd.d/nvidia_icd.json
{
"file_format_version" : "1.0.1",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.4.303"
}
}
root@88c99df870d9:/app# dpkg -l | grep vulkan
ii libvulkan1:amd64 1.3.204.1-2 amd64 Vulkan loader library
ii vulkan-tools 1.3.204.0+dfsg1-1 amd64 Miscellaneous Vulkan utilities
root@88c99df870d9:/app# dpkg -l | grep nvidia
root@88c99df870d9:/app# nvidia-smi
Wed Oct 1 01:12:16 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.172.08 Driver Version: 570.172.08 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA RTX A4500 On | 00000000:81:00.0 Off | Off |
| 30% 24C P8 16W / 200W | 1MiB / 20470MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
root@88c99df870d9:/app# vulkaninfo --summary
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
root@88c99df870d9:/app#
root@88c99df870d9:/app# cat /etc/vulkan/icd.d/nvidia_icd.json
{
"file_format_version" : "1.0.1",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.4.303"
}
}
root@88c99df870d9:/app# dpkg -l | grep vulkan
ii libvulkan1:amd64 1.3.204.1-2 amd64 Vulkan loader library
ii vulkan-tools 1.3.204.0+dfsg1-1 amd64 Miscellaneous Vulkan utilities
root@88c99df870d9:/app# dpkg -l | grep nvidia
root@88c99df870d9:/app# nvidia-smi
Wed Oct 1 01:12:16 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.172.08 Driver Version: 570.172.08 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA RTX A4500 On | 00000000:81:00.0 Off | Off |
| 30% 24C P8 16W / 200W | 1MiB / 20470MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
root@88c99df870d9:/app# vulkaninfo --summary
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
root@88c99df870d9:/app#
4 Replies
Its very hit and miss, not all the hosts have it. Try a CUDA 12.8/12.9 host as those are newer and are more likely to have it
Thank you for your kindness.
However, I tried several times, but I didn't succeed.
Once we've confirmed that it works in a Pod environment, we'd like to run this process in a serverless environment. Is there a way to configure it to automatically select the most suitable container?
ex) RTX 5090
ex) A40
root@cb4735d46d49:/app# cat /etc/vulkan/icd.d/nvidia_icd.json
{
"file_format_version" : "1.0.1",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.4.303"
}
}
root@cb4735d46d49:/app# dpkg -l | grep vulkan
ii libvulkan1:amd64 1.3.204.1-2 amd64 Vulkan loader library
ii vulkan-tools 1.3.204.0+dfsg1-1 amd64 Miscellaneous Vulkan utilities
root@cb4735d46d49:/app# vulkaninfo --summary
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
root@cb4735d46d49:/app# nvidia-smi
Wed Oct 1 23:29:49 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.153.02 Driver Version: 570.153.02 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 On | 00000000:0A:00.0 Off | N/A |
| 0% 29C P8 22W / 575W | 0MiB / 32607MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
root@cb4735d46d49:/app#
root@cb4735d46d49:/app# cat /etc/vulkan/icd.d/nvidia_icd.json
{
"file_format_version" : "1.0.1",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.4.303"
}
}
root@cb4735d46d49:/app# dpkg -l | grep vulkan
ii libvulkan1:amd64 1.3.204.1-2 amd64 Vulkan loader library
ii vulkan-tools 1.3.204.0+dfsg1-1 amd64 Miscellaneous Vulkan utilities
root@cb4735d46d49:/app# vulkaninfo --summary
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
root@cb4735d46d49:/app# nvidia-smi
Wed Oct 1 23:29:49 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.153.02 Driver Version: 570.153.02 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 On | 00000000:0A:00.0 Off | N/A |
| 0% 29C P8 22W / 575W | 0MiB / 32607MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
root@cb4735d46d49:/app#
root@2d38c96e5f8f:/app# cat /etc/vulkan/icd.d/nvidia_icd.json
{
"file_format_version" : "1.0.1",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.4.303"
}
}
root@2d38c96e5f8f:/app# dpkg -l | grep vulkan
ii libvulkan1:amd64 1.3.204.1-2 amd64 Vulkan loader library
ii vulkan-tools 1.3.204.0+dfsg1-1 amd64 Miscellaneous Vulkan utilities
root@2d38c96e5f8f:/app# vulkaninfo --summary
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
root@2d38c96e5f8f:/app# nvidia-smi
Wed Oct 1 23:36:58 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.158.01 Driver Version: 570.158.01 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA A40 On | 00000000:52:00.0 Off | 0 |
| 0% 27C P8 21W / 300W | 0MiB / 46068MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
root@2d38c96e5f8f:/app#
root@2d38c96e5f8f:/app# cat /etc/vulkan/icd.d/nvidia_icd.json
{
"file_format_version" : "1.0.1",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.4.303"
}
}
root@2d38c96e5f8f:/app# dpkg -l | grep vulkan
ii libvulkan1:amd64 1.3.204.1-2 amd64 Vulkan loader library
ii vulkan-tools 1.3.204.0+dfsg1-1 amd64 Miscellaneous Vulkan utilities
root@2d38c96e5f8f:/app# vulkaninfo --summary
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Could not get 'vkCreateInstance' via 'vk_icdGetInstanceProcAddr' for ICD libGLX_nvidia.so.0
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
root@2d38c96e5f8f:/app# nvidia-smi
Wed Oct 1 23:36:58 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.158.01 Driver Version: 570.158.01 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA A40 On | 00000000:52:00.0 Off | 0 |
| 0% 27C P8 21W / 300W | 0MiB / 46068MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
root@2d38c96e5f8f:/app#
They dont have selections for vulkan so I wouldn't dare it on serverless
Okay, I got it. Thanks!