You are not logged in.

#1 2024-03-24 22:20:51

Ataky
Member
Registered: 2024-03-24
Posts: 1

AMDGPU Pro installation not working

I wish i could use AMF encoder on my RX 550 AMD gpu, for that i've been trying to get AMDGPU Pro to work for a while, without success.

I'm mainly testing if it works using this command's feedback (actual output below)

$ vk_pro vulkaninfo

WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Received return code -3 from call to vkCreateInstance in ICD /usr/lib/amdvlkpro64.so. Skipping this driver.
ERROR: [Loader Message] Code 0 : terminator_CreateInstance: Found no drivers!
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 /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.269/vulkaninfo/./vulkaninfo.h:688:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER

Also, when i try to convert a video using ffmpeg it throws errors

$ ffmpeg -i Trecho.mkv -c:v h264_amf -b:v 10M -c:a copy output.mp4

ffmpeg version N-113821-g8b6219a99d Copyright (c) 2000-2024 the FFmpeg developers
   built with gcc 13.2.1 (GCC) 20230801
...
...
[h264_amf @ 0x57e491be66c0] AMF failed to initialise on the given Vulkan device: 1.
[vost#0:0/h264_amf @ 0x57e491beae40] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x57e491bf4740] Error sending frames to consumers: Function not implemented
[vf#0:0 @ 0x57e491bf4740] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x57e491bf4740] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/h264_amf @ 0x57e491beae40] Could not open encoder before EOF
[vost#0:0/h264_amf @ 0x57e491beae40] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_amf @ 0x57e491beae40] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 0x57e491beb680] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A
[aac @ 0x57e492a3a940] Qavg: 8845.936
Conversion failed!

Converting using h264_vaapi works fine.

Following the last wiki's command i got this output

03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] (rev c7)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu

I've tried installing multiple versions of amdgpu-pro-installer alongside multiple combinations of linux-firmware-git (The last combination i did was amdgpu-pro-installer v23.40_1710631-1 + linux-firmware-git 20240130.001ba06d-1).

This is my first post on the forum, sorry if it is too much or too little information at first, I will upload everything that is requested later.

Offline

#2 2024-12-05 12:35:39

LargeDSI
Member
Registered: 2019-09-24
Posts: 6

Re: AMDGPU Pro installation not working

Sorry for the late reply, landed here because of google.

Did you define the vulkan driver via:

export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json

before running ffmpeg?

Offline

#3 2024-12-05 12:37:32

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,482
Website

Re: AMDGPU Pro installation not working

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2024-12-05 14:13:52

cryptearth
Member
Registered: 2024-02-03
Posts: 1,089

Re: AMDGPU Pro installation not working

well, although OP seem not to have come back since let me post relevant info to help others finding this even later:
amd dropped support for everything vega and older back in 2023 - so to get amdgpu_pro to work with a gcn gpu either use an older version from q3/23 (don't remember exactly what was the last working version) or upgrade your gpu to rdna (rx 5000 or newer)

Offline

Board footer

Powered by FluxBB