Package Base Details: amdgpu-pro-installer

Git Clone URL: https://aur.archlinux.org/amdgpu-pro-installer.git (read-only, click to copy)
Submitter: LEW21
Maintainer: Ashark (mesmer)
Last Packager: mesmer
Votes: 123
Popularity: 0.79
First Submitted: 2016-03-28 22:44 (UTC)
Last Updated: 2024-03-28 21:56 (UTC)

Pinned Comments

mesmer commented on 2022-12-23 04:31 (UTC) (edited on 2023-05-28 19:28 (UTC) by mesmer)

IF PROBLEM HAPPEN

this package is our try to put amdgpu in ARCH, but this could break or have problems as amd update and change their packages for ubuntu

if anything happens you can always download a older tag in https://github.com/Ashark/archlinux-amdgpu-pro/releases and get the PKGBUILD there, and use makepkg with that build while we update or try to fix :)

ALWAYS USE LINUX-FIRMWARE-GIT IF LATEST DRIVER FAIL BEFORE ISSUE SOME ERROR

https://aur.archlinux.org/packages/linux-firmware-git

Ashark commented on 2019-12-09 20:52 (UTC) (edited on 2022-12-06 08:45 (UTC) by Ashark)

PKGBUILD generator is located here: https://github.com/Ashark/archlinux-amdgpu-pro

AMDGPU PRO wiki page: https://wiki.archlinux.org/index.php/AMDGPU_PRO

New versions will appear here: https://repo.radeon.com/amdgpu/.

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 .. 58 Next › Last »

Ashark commented on 2022-05-17 17:55 (UTC)

I am not updating only because I hoped this package could not be needed if https://gitlab.freedesktop.org/mesa/mesa/-/issues/6256 is solved. Regarding the error, can you try again, and if problem persist, open an issue in the repo?

Tibrella commented on 2022-05-17 14:35 (UTC)

I wanted to PR and update this package ,but i got this problem: Aptly Failed! It skips the process of entering a password

I just enter the command, then I get this

Loading packages...
Generating metadata files and linking package files...
Finalizing metadata files...
Signing file 'Release' with gpg, please enter your passphrase when prompted:
gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
ERROR: unable to publish: unable to detached sign file: exit status 2

I really didn't press double enter!

bob-xygene commented on 2022-03-25 01:26 (UTC)

If you don't need professional features of the AMD proprietary driver then just install vulkan-radeon package (its the RADV open source vulkan driver for the open source amdgpu driver included in the kernel).

Wa11aa commented on 2022-03-16 05:18 (UTC) (edited on 2022-03-16 05:21 (UTC) by Wa11aa)

I don't have the AMDGPU PRO proprietary driver i have mesa can i use the vulkan driver without problems?

bob-xygene commented on 2022-03-16 01:44 (UTC) (edited on 2022-03-16 02:17 (UTC) by bob-xygene)

I don't know what other update fixed it but today i reinstalled this amdgpu-pro V21.50.2 Vulkan, AMF & libgl and its working. At least my test encode does not crash.

If i go further and try to mix vulkan hardware decoding + vulkan filter with amf encoding it crashes :

[scale_vulkan @ 0x557258b9ec40] shaderc compile status 'success' (0 errors, 0 warnings)
[scale_vulkan @ 0x557258b9ec40] Shader scale_compute compiled! Size: 1872 bytes
[h264_amf @ 0x5572569fde80] AMF initialisation succeeded via Vulkan.
0122-02-16 03:09:16 9C663900 [EncodeQueueVulkan]    Info: EncodeQueueServiceVulkanImpl::Initialize() new encode queue extension is not supported
0122-02-16 03:09:16 9C663900 [EncodeQueueService] Warning: Failed to create encode queue serivce.
0122-02-16 03:09:16 9C663900 [AMFEncoderCoreBaseImpl] Warning: Failed to initialize EncodeQueueFactory.
0122-02-16 03:09:16 9C663900 [AMFEncoderCoreBaseImpl] Warning: Failed to create encode queue serivce.
0122-02-16 03:09:16 9C663900 [AMFEncoderCoreH264] Warning: Encode Core dll not found, fall back to UVE path
0122-02-16 03:09:16 9C663900 [AMFEncoderCoreH264] Warning: CreateServices failed.
0122-02-16 03:09:16 9C663900 [AMFEncoderCoreH264]    Info: *****Fallback to UVE path!
0122-02-16 03:09:16 9C663900 [AMFEncoderCoreH264]   Debug: AMFEncoderCoreH264Impl::Terminate()

So for now, only very basic AMF encoding woks, as long as frames comes from some software path or vaapi hardware accel (opencl filters combinaison works too, sad there are no opencl scale filters in ffmpeg).

Ashark commented on 2022-03-10 01:40 (UTC)

I am getting [h264_amf @ 0x55e1ae1016c0] DLL libamfrt64.so.1 failed to open instead of yours [h264_amf @ 0x55fe454cfec0] AMF initialisation succeeded via Vulkan.. I tested that with RX580. Did they drop support for it in amf?

bob-xygene commented on 2022-03-08 23:38 (UTC) (edited on 2022-03-09 17:14 (UTC) by bob-xygene)

~/VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json; ffmpeg -hide_banner -loglevel verbose -probesize 256M -rtbufsize 128M -vsync passthrough -f lavfi -i testsrc=duration=10:size=1280x720:rate=60 -c:v h264_amf -log_to_dbg false -vf format=nv12 -f null /dev/null

With V21.30 i obtain :

***********************************************************************************
[Parsed_testsrc_0 @ 0x55fe454ca880] size:1280x720 rate:60/1 duration:10.000000 sar:1/1
Input #0, lavfi, from 'testsrc=duration=10:size=1280x720:rate=60':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: rawvideo, 1 reference frame (RGB[24] / 0x18424752), rgb24, 1280x720 [SAR 1:1 DAR 16:9], 60 tbr, 60 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_amf))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0x55fe454d0c80] w:1280 h:720 pixfmt:rgb24 tb:1/60 fr:60/1 sar:1/1
[auto_scale_0 @ 0x55fe454d67c0] w:iw h:ih flags:'' interl:0
[Parsed_format_0 @ 0x55fe454d2940] auto-inserting filter 'auto_scale_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_format_0'
[auto_scale_0 @ 0x55fe454d67c0] w:1280 h:720 fmt:rgb24 sar:1/1 -> w:1280 h:720 fmt:nv12 sar:1/1 flags:0x0
[h264_amf @ 0x55fe454cfec0] AMF initialisation succeeded via Vulkan.
Output #0, null, to '/dev/null':
  Metadata:
    encoder         : Lavf59.16.100
  Stream #0:0: Video: h264, 1 reference frame, nv12(tv, progressive), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 2000 kb/s, 60 fps, 60 tbn
    Metadata:
      encoder         : Lavc59.18.100 h264_amf
No more output streams to write to, finishing.:09.18 bitrate=N/A speed=9.18x    
frame=  600 fps=552 q=-0.0 Lsize=N/A time=00:00:10.00 bitrate=N/A speed= 9.2x    
video:1820kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (testsrc=duration=10:size=1280x720:rate=60):
  Input stream #0:0 (video): 600 packets read (1658880000 bytes); 600 frames decoded; 
  Total: 600 packets (1658880000 bytes) demuxed
Output file #0 (/dev/null):
  Output stream #0:0 (video): 600 frames encoded; 600 packets muxed (1863394 bytes); 
  Total: 600 packets (1863394 bytes) muxed

(Removed vulkan-amdgpu-pro and amf-amdgpu-pro V21.30 and reinstalled the same package in V21.50.2) With V21.50.2 i obtain :


[Parsed_testsrc_0 @ 0x55e807bdc880] size:1280x720 rate:60/1 duration:10.000000 sar:1/1
Input #0, lavfi, from 'testsrc=duration=10:size=1280x720:rate=60':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: rawvideo, 1 reference frame (RGB[24] / 0x18424752), rgb24, 1280x720 [SAR 1:1 DAR 16:9], 60 tbr, 60 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_amf))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0x55e807be2c80] w:1280 h:720 pixfmt:rgb24 tb:1/60 fr:60/1 sar:1/1
[auto_scale_0 @ 0x55e807be87c0] w:iw h:ih flags:'' interl:0
[Parsed_format_0 @ 0x55e807be4940] auto-inserting filter 'auto_scale_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_format_0'
[auto_scale_0 @ 0x55e807be87c0] w:1280 h:720 fmt:rgb24 sar:1/1 -> w:1280 h:720 fmt:nv12 sar:1/1 flags:0x0
[h264_amf @ 0x55e807be1ec0] AMF initialisation succeeded via Vulkan.
[h264_amf @ 0x55e807be2280] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 1
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

If you want AMF debugging to stderr you can pass : -log_to_dbg true (just after the -c:v h264_amf)

Ashark commented on 2022-03-08 22:28 (UTC)

Can you write the specific command with which you test? Can you try it in ubuntu and say if it works? Maybe there is a problem with libamdenc64.so.1.0 library, included with this version. Maybe with dependencies. Are you sure that opencl is required for that? Also note that opencl-amd currently uses 21.50, while this pkgbase is for 21.50.2.

bob-xygene commented on 2022-03-08 19:15 (UTC) (edited on 2022-03-09 17:11 (UTC) by bob-xygene)

ffmpeg h264_amf was working with previous amdgpu-pro-installer and opencl-amd since 21.50.2_1384495-1 h264_amf won't load.

I saw a new dependency for rocm-opencl-runtime, so i removed opencl-amd and installed all dependency : hsakmt-roct rocm-cmake rocm-llvm rocm-device-libs comgr hsa-amd-aqlprofile-bin hsa-rocr rocm-opencl-runtime

Still AMF is dead :

<some ffmpeg h264_amf compression that works with software encoding and worked with amf before update>
[auto_scale_0 @ 0x5623a0546f80] w:1280 h:720 fmt:rgb24 sar:1/1 -> w:1280 h:720 fmt:nv12 sar:1/1 flags:0x0
[h264_amf @ 0x5623a053d380] AMF initialisation succeeded via Vulkan.
0122-02-08 19:57:56 A5712900 [AMFEncoderCoreH264]   Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(186):Assertion failed:Failed to create service!
0122-02-08 19:57:56 A5712900 [AMFEncoderCoreH264]   Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(318):AMF_ERROR 1 : AMF_FAIL: Failed to create encode service!
0122-02-08 19:57:56 A5712900 [AMFEncoderCoreH264] Warning: CreateServices failed.
[h264_amf @ 0x5623a053d740] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 1
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

~/uname -a
Linux punch 5.16.12-zen1-1-zen #1 ZEN SMP PREEMPT Wed, 02 Mar 2022 12:22:53 +0000 x86_64 GNU/Linux

~/clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.2 AMD-APP.dbg (3406.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx1010:xnack-
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 
  Driver Version                                  3406.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         AMD Radeon RX 5700 XT
  Device PCI-e ID (AMD)                           0x731f
  Device Topology (AMD)                           PCI-E, 0000:2f:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               20
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                32
  SIMD instruction width (AMD)                    1
  Max clock frequency                             2100MHz
  Graphics IP (AMD)                               10.1
  Device Partition                                (core)
    Max number of sub-devices                     20
    Supported partition types                     None
    Supported affinity domains                    (n/a)
....

~/lspci -k
...
2f:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1)
    Subsystem: Gigabyte Technology Co., Ltd Radeon RX 5700 XT Gaming OC
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu

~/echo $VK_ICD_FILENAMES
/usr/share/vulkan/icd.d/amd_pro_icd64.json

~/vulkaninfo 
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Driver /usr/lib/amdvlkpro64.so says it supports interface version 6 but still exports core entrypoints (Policy #LDP_DRIVER_6)
==========
VULKANINFO
==========
Vulkan Instance Version: 1.2.203
..
GPU id : 0 (AMD Radeon RX 5700 XT):
...
    Surface type = VK_KHR_wayland_surface
    Formats: count = 2
        SurfaceFormat[0]:
            format = FORMAT_B8G8R8A8_UNORM
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
        SurfaceFormat[1]:
            format = FORMAT_B8G8R8A8_SRGB
            colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
    Present Modes: count = 3
        PRESENT_MODE_IMMEDIATE_KHR
        PRESENT_MODE_MAILBOX_KHR
        PRESENT_MODE_FIFO_KHR
..

~/wayland-info 
interface: 'wl_compositor',                              version:  4, name:  1
interface: 'zwp_tablet_manager_v2',                      version:  1, name:  2
interface: 'zwp_keyboard_shortcuts_inhibit_manager_v1',  version:  1, name:  3
interface: 'xdg_wm_base',                                version:  3, name:  5
interface: 'zwlr_layer_shell_v1',                        version:  3, name:  6
interface: 'zxdg_decoration_manager_v1',                 version:  1, name:  7
interface: 'wp_viewporter',                              version:  1, name:  8
interface: 'wl_shm',                                     version:  1, name:  9
    formats: 'XB30'(0x30334258) 'AB30'(0x30334241) 'XR30'(0x30335258) 'AR30'(0x30335241) XRGB8888 ARGB8888
..
interface: 'kde_output_device_v2',                       version:  2, name: 42
interface: 'wl_output',                                  version:  3, name: 43
    x: 0, y: 0, scale: 1,
    physical_width: 710 mm, physical_height: 400 mm,
    make: 'BNQ', model: 'BenQ BL3200/GCE00501SL0',
    subpixel_orientation: unknown, output_transform: normal,
    mode:
        width: 2560 px, height: 1440 px, refresh: 59.951 Hz,
        flags: current
....

Any clue why that "encode service" won't run ? (under X11 it crashes the same)

strace says the error pops in the new library "libamdenc64.so"

Checking out V21.30 (instead of V21.50.2) and installing repairs AMF encoding.