Package Details: rocm-opencl-runtime 4.2.0-1

Git Clone URL: https://aur.archlinux.org/rocm-opencl-runtime.git (read-only, click to copy)
Package Base: rocm-opencl-runtime
Description: Radeon Open Compute - OpenCL runtime
Upstream URL: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime
Keywords: amd opencl rocm
Licenses: MIT
Conflicts: opencl-amdgpu-pro-pal
Provides: opencl-driver
Submitter: ulyssesrr
Maintainer: tpkessler
Last Packager: tpkessler
Votes: 32
Popularity: 0.67
First Submitted: 2019-03-17 05:06
Last Updated: 2021-05-13 07:46

Required by (28)

Sources (1)

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 7 Next › Last »

ulyssesrr commented on 2019-04-22 17:04

@codibit I've looked the other run-times packages, and it seems most of them do provide "opencl-driver", so I think it won't hurt to add it here. I will be updating the package to 2.3.0 later today and will make it provide opencl-driver.

codibit commented on 2019-04-22 10:14

Maybe this package is providing opencl-driver? There are some packages that require an opencl-driver (davinci-resolve, for instance) and maybe adding the provides key in this package might make installations simpler (if correct, of course :) ).

If instead of depending on opencl-driver I should add another dependency, I would appreciate if someone could tell me which one is correct.

Maverick commented on 2019-03-21 00:54

@ulyssesrr Thank you. For some reason it did link properly on recompile now - no idea what changed.

libOpenCL.so symlink seems to link to build directory rather then install path:

maverick@MavsArch /opt/rocm/opencl/lib % ll
total 69440
drwxr-xr-x 3 root root     4096 Mär 21 01:12 clang
drwxr-xr-x 3 root root     4096 Mär 21 01:12 cmake
-rw-r--r-- 1 root root     2476 Mär 19 01:08 hip.amdgcn.bc
lrwxrwxrwx 1 root root       14 Mär 19 01:08 libLTO.so -> libLTO.so.9svn
-rwxr-xr-x 1 root root 26250872 Mär 19 01:08 libLTO.so.9svn
lrwxrwxrwx 1 root root       83 Mär 19 01:08 libOpenCL.so -> /home/maverick/builds/rocm-opencl-runtime/src//opt/rocm/opencl/lib/libOpenCL.so.1.2
...

ulyssesrr commented on 2019-03-20 15:16

@PedroHLC Could you try building with https://aur.archlinux.org/packages/python2-z3-solver/ and report back? Naming is different but it's the same package, quite outdated through.

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"