making amdgpu work on arm achitecutre with vulkan

This commit is contained in:
yeongbba
2025-01-19 01:30:34 +09:00
parent e61c329435
commit 4b74cee096
6 changed files with 15 additions and 11 deletions

View File

@@ -410,7 +410,7 @@ func GetGPUInfo() GpuInfoList {
rocmGPUs = AMDGetGPUInfo()
bootstrapped = true
if len(cudaGPUs) == 0 && len(rocmGPUs) == 0 && len(oneapiGPUs) == 0 {
if len(cudaGPUs) == 0 && len(rocmGPUs) == 0 && len(oneapiGPUs) == 0 && len(vulkanGPUs) == 0 {
slog.Info("no compatible GPUs were discovered")
}
}

View File

@@ -53,12 +53,12 @@ var (
)
var VulkanGlobs = []string{
"/usr/lib/x86_64-linux-gnu/libvulkan.so*",
"/usr/lib/aarch64-linux-gnu/libvulkan.so*",
"/usr/lib*/libvulkan.so*",
}
var capLinuxGlobs = []string{
"/usr/lib/x86_64-linux-gnu/libcap.so*",
"/usr/lib/aarch64-linux-gnu/libcap.so*",
"/usr/lib*/libcap.so*",
}