Package Base Details: rocm-opencl-runtime

Git Clone URL: https://aur.archlinux.org/rocm-opencl-runtime.git (read-only, click to copy)
Keywords: amd opencl rocm
Submitter: ulyssesrr
Maintainer: rsa (neeshy, naetherm, acxz)
Last Packager: acxz
Votes: 25
Popularity: 1.41
First Submitted: 2019-03-17 05:06
Last Updated: 2020-03-31 18:22

Pinned Comments

acxz commented on 2020-03-09 06:42

Development is on Github: https://github.com/rocm-arch/rocm-arch Please open issues and PRs there instead of commenting.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Maverick commented on 2019-03-17 21:32

Build fails. rocr-runtime 2.2.0-1 and roct-thunk-interface 2.2.0-1 are installed. Are we missing a dependancy?

/usr/bin/ld: warning: libhsakmt.so.2, needed by /opt/rocm/lib/libhsa-runtime64.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtGetClockCounters@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtGetNodeIoLinkProperties@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtRegisterSharedHandleToNodes@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtGetNodeProperties@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtSetMemoryPolicy@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtRegisterMemoryToNodes@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtDeregisterMemory@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtSetTrapHandler@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtWaitOnEvent@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtRegisterGraphicsHandleToNodes@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtCreateEvent@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtDestroyQueue@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtCreateQueue@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtCloseKFD@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtGetVersion@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtReleaseSystemProperties@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtSetQueueCUMask@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtMapMemoryToGPU@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtQueryPointerInfo@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtUpdateQueue@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtUnmapMemoryToGPU@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtSetEvent@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtAllocMemory@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtShareMemory@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtAcquireSystemProperties@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtWaitOnMultipleEvents@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtDestroyEvent@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtRegisterSharedHandle@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtGetNodeCacheProperties@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtSetMemoryUserData@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtMapMemoryToGPUNodes@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtFreeMemory@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtGetNodeMemoryProperties@HSAKMT_1'
/usr/bin/ld: /opt/rocm/lib/libhsa-runtime64.so: undefined reference to `hsaKmtOpenKFD@HSAKMT_1'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Nightbane112 commented on 2019-03-17 15:35

@ulysserr I finally got it to compile by removing a dot in the PKGBUILD

From this :

patch --forward --strip=1 --input="${srcdir}/../fix_rocm_opencl_build_order.patch"

To this :

patch --forward --strip=1 --input="${srcdir}/./fix_rocm_opencl_build_order.patch"

ulyssesrr commented on 2019-03-17 14:53

@Nightbane112 Actually building with yay v9.1.0 works for me. But I fixed the PKGBUILD anyway as fix_rocm_opencl_build_order.patch was missing from the source array. Try now, it should work.

Nightbane112 commented on 2019-03-17 06:52

Hi, I just tried installing this package but ran into an error. I'm using yay for this.

==> Starting prepare()...
patch: **** Can't open patch file /tmp/makepkg/rocm-opencl-runtime/src/../fix_rocm_opencl_build_order.patch : No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...
Error making: rocm-opencl-runtime

ulyssesrr commented on 2019-03-17 05:34

This package has moved to rocm-opencl-runtime. Which is updated to version 2.2.0 already. https://aur.archlinux.org/packages/rocm-opencl-runtime/

The new package should download and build faster, the build errors that some users were experiencing are also fixed. Thanks.

usrmusicman commented on 2019-03-14 10:03

Latest build from master of 2.2.0 I'm getting this error [ 96%] Building CXX object runtime/CMakeFiles/oclruntime.dir/device/devkernel.cpp.o [ 96%] Building CXX object runtime/CMakeFiles/oclruntime.dir/device/devwavelimiter.cpp.o In file included from /home/alex/.cache/yay/rocm-opencl-git/src/opencl/runtime/platform/command.hpp:26, from /home/alex/.cache/yay/rocm-opencl-git/src/opencl/runtime/device/devwavelimiter.cpp:4: /home/alex/.cache/yay/rocm-opencl-git/src/opencl/runtime/platform/perfctr.hpp:27:60: warning: ignoring attributes on template argument ‘cl_perfcounter_property’ {aka ‘long unsigned int’} [-Wignored-attributes] typedef std::unordered_map<cl_perfcounter_property, ulong> Properties; ^ In file included from /home/alex/.cache/yay/rocm-opencl-git/src/opencl/runtime/device/devwavelimiter.cpp:4: /home/alex/.cache/yay/rocm-opencl-git/src/opencl/runtime/platform/command.hpp:61:33: warning: ignoring attributes on template argument ‘amd::Event::CallBackFunction’ {aka ‘void ()(_cl_event, int, void)’} [-Wignored-attributes] std::atomic<CallBackFunction> callback_; //!< callback function pointer. ^ [ 96%] Building CXX object runtime/CMakeFiles/oclruntime.dir/device/devprogram.cpp.o In file included from /home/alex/.cache/yay/rocm-opencl-git/src/opencl/runtime/device/devprogram.cpp:16: /home/alex/.cache/yay/rocm-opencl-git/src/opencl/build/runtime/device/rocm/libraries.amdgcn.inc:2:10: fatal error: oclc_correctly_rounded_sqrt_off.amdgcn.inc: No such file or directory #include "oclc_correctly_rounded_sqrt_off.amdgcn.inc" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: [runtime/CMakeFiles/oclruntime.dir/build.make:219: runtime/CMakeFiles/oclruntime.dir/device/devprogram.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:21006: runtime/CMakeFiles/oclruntime.dir/all] Error 2 make: ** [Makefile:152: all] Error 2

I'm using an RX 470.

cgx commented on 2019-03-07 12:14

Build of this package is failing here using pikaur:

==> Making package: rocm-opencl-git 2.1.r0.d3bfd48-1 (Thu 07 Mar 2019 02:12:09 PM EET)

==> WARNING: Skipping dependency checks.

==> Retrieving sources...

==> Extracting sources...

==> Starting pkgver()...

/home/user/.cache/pikaur/build/rocm-opencl-git/PKGBUILD: line 30: cd: /home/user/.cache/pikaur/build/rocm-opencl-git/src/opencl: No such file or directory

ulyssesrr commented on 2019-03-01 02:59

@el_barbado By default my packages build with -j8 as I have this set in /etc/makepkg.conf

From what I understand single core building is failing for you, correct? Will test a single core build later. But that is quite weird. Thanks

el_barbado commented on 2019-02-28 15:24

Just updated. Initially, it failed and I had to add my thread fix in again but everything worked great after that.

ulyssesrr commented on 2019-02-28 02:24

Updated to 2.1.0 based on fermyon's PKGBUILD, also added gtest to makedepends.