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
Last Packager: rsa
Votes: 25
Popularity: 1.62
First Submitted: 2019-03-17 05:06
Last Updated: 2020-02-04 07:57

Latest Comments

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

PedroHLC commented on 2019-03-20 15:03

python2-z3 was removed from community following https://www.archlinux.org/todo/die-python2-die

Any known alternative?

ulyssesrr commented on 2019-03-18 02:12

@VerruckteFuchs and @Nightbane112 Thanks for reporting the wrong path in patch file, I have fixed it in 2.2.0-3. (While incorrect it worked with some AUR helpers and thus eluded my testing)

@Maverick

/opt/rocm/lib/libhsa-runtime64.so is part of package rocr-runtime.

/opt/rocm/lib64/libhsakmt.so(.2) should be part of package roct-thunk-interface.

It seems your rocr-runtime package is not linking properly to your roct-thunk-interface package.

Check the output of ldd /opt/rocm/lib/libhsa-runtime64.so and report there. My outputs: http://ix.io/1DPn

Maverick commented on 2019-03-17 22:01

@VerruckteFuchs

interesting - my PKGBUILD didn't complain. Can you tell me what version ob libhsakmt is unter /opt/rocm/lib64 after roct-thung-interface installation? For me it is libhsakmt.so.1.0.0 while the build asks for .so.2 and fails.

maverick@MavsArch ~% pacman -Ql roct-thunk-interface
roct-thunk-interface /etc/
roct-thunk-interface /etc/ld.so.conf.d/
roct-thunk-interface /etc/ld.so.conf.d/roct-thunk-interface.conf
roct-thunk-interface /opt/
roct-thunk-interface /opt/rocm/
roct-thunk-interface /opt/rocm/include/
roct-thunk-interface /opt/rocm/include/hsakmt.h
roct-thunk-interface /opt/rocm/include/hsakmttypes.h
roct-thunk-interface /opt/rocm/include/linux/
roct-thunk-interface /opt/rocm/include/linux/kfd_ioctl.h
roct-thunk-interface /opt/rocm/lib64/
roct-thunk-interface /opt/rocm/lib64/libhsakmt.so
roct-thunk-interface /opt/rocm/lib64/libhsakmt.so.1
roct-thunk-interface /opt/rocm/lib64/libhsakmt.so.1.0.0
roct-thunk-interface /opt/rocm/libhsakmt/
roct-thunk-interface /opt/rocm/libhsakmt/LICENSE.md
roct-thunk-interface /opt/rocm/libhsakmt/libhsakmt.pc

VerruckteFuchs commented on 2019-03-17 21:55

I got an error when trying to install:

patch: **** Can't open patch file /tmp/makepkg/rocm-opencl-runtime/src/../fix_rocm_opencl_build_order.patch : No such file or directory

There is an issue on line 75 of the PKGBUILD:

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

The patch file is not up one directory, so the line should be:

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

After changing line 75 to use the patch file from the directory it is actually in, the package starts building just fine.

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.