GPUOpen-Drivers / AMDVLK

AMD Open Source Driver For Vulkan
MIT License
1.69k stars 160 forks source link

ERROR_OUT_OF_HOST_MEMORY when there isn't a suitable AMD GPU in the host system #315

Closed RyuzakiKK closed 3 months ago

RyuzakiKK commented 1 year ago

Description

If you install AMDVLK in a system where there isn't a suitable AMD GPU, Vulkan programs might crash when they try to load the library amdvlk64.so.

Steps to reproduce

Expected behavior

vulkaninfo should always work.

Actual behavior

After you install AMDVLK, vulkaninfo will fail with vkCreateInstance failed with ERROR_OUT_OF_HOST_MEMORY.

Full log of VK_LOADER_DEBUG=all vulkaninfo https://gist.github.com/RyuzakiKK/5cf7532006491aa2b993fee0e36e548d

Additional info

This seems to be the same problem that has been reported a few years ago in https://github.com/GPUOpen-Drivers/AMDVLK/issues/187. Maybe the fix regressed in a recent AMDVLK update?

K1LL3RPUNCH commented 1 year ago

+1

WenqingLiAMD commented 1 year ago

could you try 2023.Q1.3 please?

RyuzakiKK commented 1 year ago

could you try 2023.Q1.3 please?

I just tried it with Ubuntu 22.04 because Arch Linux still has the older amdvlk. I used a laptop with an integrated Intel GPU. After installing mesa-vulkan-drivers and vulkan-tools, vulkaninfo was working correctly.

Then I downloaded the prebuilt amdvlk 2023.Q1.3 and installed it with apt install ./amdvlk_2023.Q1.3_amd64.deb. After that vulkaninfo started to crash with vkCreateInstance failed with ERROR_OUT_OF_HOST_MEMORY.

So unfortunately it seems like the problem has not been fixed yet.

jinjianrong commented 3 months ago

Issue is not observed with v-2024.Q1.2 any more