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.42
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

thx1138 commented on 2019-02-20 06:03

Hmm -

makepkg -si

...

-- Installing: /var/build/rocm-opencl-git/pkg/rocm-opencl-git/lib/hip.amdgcn.bc

-- Installing: /var/build/rocm-opencl-git/pkg/rocm-opencl-git/lib/x86_64/libamdocl64.so

-- Set runtime path of "/var/build/rocm-opencl-git/pkg/rocm-opencl-git//lib/x86_64/libamdocl64.so" to ""

-- Installing: /var/build/rocm-opencl-git/pkg/rocm-opencl-git/bin/clinfo

-- Set runtime path of "/var/build/rocm-opencl-git/pkg/rocm-opencl-git//bin/clinfo" to ""

ln: failed to create symbolic link '/var/build/rocm-opencl-git/pkg/rocm-opencl-git/opt/rocm/opencl/lib/libOpenCL.so': No such file or directory

==> ERROR: A failure occurred in package().

Aborting...

Suggestions?

el_barbado commented on 2019-02-14 01:45

I was having some trouble with build failing at 97% on "Building CXX object runtime/CMakeFiles/oclruntime.dir/device/devprogram.cpp" By multi-threading the build the error was fixed.

I edited fermyon's PKGBUILD and now works for 2.1.x and 2.0.x (at least on my system).

https://gist.github.com/el-barbado/126aae6de40d079782746af637e94231

If you don't want to download, just replace line in fermyon's build section with following code:

MEM_AVAIL=`cat /proc/meminfo | grep MemTotal | awk {'print $2'}`
AVAIL_THREADS=`nproc`
MAX_THREADS=`echo $(( ${MEM_AVAIL} / $(( 1024 * 1024 * 4 )) ))`
if [ ${MAX_THREADS} -lt ${AVAIL_THREADS} ]; then
    NUM_BUILD_THREADS=${MAX_THREADS}
else
    NUM_BUILD_THREADS=${AVAIL_THREADS}
fi
if [ ${NUM_BUILD_THREADS} -lt 1 ]; then
    NUM_BUILD_THREADS=1
fi
make -j ${NUM_BUILD_THREADS}

I also added gtest as a dependency

puithove commented on 2019-01-06 18:24

Built with fermyon's PKGBUILD for 2.x - works fine, but needs to add a dependency for gtest or it fails with: /usr/bin/ld: cannot find -lgtest /usr/bin/ld: cannot find -lgtest_main

VerruckteFuchs commented on 2018-12-28 15:55

Build fails without gtest at around 98% or so. Adding it as a dependency would be a good idea.

fermyon commented on 2018-12-23 14:53

Patched for 2.0.0: https://gist.github.com/antifermion/bfc1a218af478a38da1a75118dd4ace9

trougnouf commented on 2018-12-20 21:07

So close.

[ 98%] Linking OCL static library ocml.lib.bc
Generating ocml.amdgcn.bc
[ 98%] Built target ocml_lib
In file included from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Basic/VirtualFileSystem.h:19,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Basic/FileManager.h:19,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Basic/Module.h:19,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Frontend/PCHContainerOperations.h:13,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h:13,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/tools/c-index-test/core_main.cpp:10:
/tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/include/llvm/ADT/SmallVector.h: In instantiation of ‘void llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = std::pair<void*, long unsigned int>]’:
/tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/include/llvm/Support/Allocator.h:252:33:   required from ‘void* llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>::Allocate(size_t, size_t) [with AllocatorT = llvm::MallocAllocator; long unsigned int SlabSize = 4096; long unsigned int SizeThreshold = 4096; size_t = long unsigned int]’
/tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/AST/ASTContext.h:651:42:   required from here
/tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/include/llvm/ADT/SmallVector.h:312:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘struct std::pair<void*, long unsigned int>’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
     memcpy(this->end(), &Elt, sizeof(T));
     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8.2.1/bits/stl_algobase.h:64,
                 from /usr/include/c++/8.2.1/bits/char_traits.h:39,
                 from /usr/include/c++/8.2.1/string:40,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Basic/FileSystemOptions.h:18,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Basic/FileManager.h:18,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Basic/Module.h:19,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/Frontend/PCHContainerOperations.h:13,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h:13,
                 from /tmp/yaourt-tmp-trougnouf/aur-rocm-opencl-git/src/opencl/compiler/llvm/tools/clang/tools/c-index-test/core_main.cpp:10:
/usr/include/c++/8.2.1/bits/stl_pair.h:208:12: note: ‘struct std::pair<void*, long unsigned int>’ declared here
     struct pair
            ^~~~
[ 98%] Linking CXX executable ../../../../bin/c-index-test
[ 98%] Built target c-index-test
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().

clap22 commented on 2018-12-04 03:08

https://github.com/RadeonOpenCompute/ROCm/issues/537#issuecomment-423311687 - Sample installation to keep in mind, still, we should never do that kind of messing with files owned by other packages so I'm accepting suggestions on how to solve this.

clap22 commented on 2018-12-04 02:08

@leidola also need maintenance here

this one will be the troublesome one to fix, I had to do some ugly directory kungfu to make it work locally because AMD released 1.9.x sources with messed dir structure. I'll need a bit more time to make it work nicely with makepkg.

jacobgkau commented on 2018-10-30 22:58

I had to install "gtest" from Community to successfully build, maybe investigate that as a make dependency? (I got "/usr/bin/ld: cannot find -lgtest" without it.)

leidola commented on 2018-06-07 02:08

Please note, that you need a compatible kernel and/or the corresponding amdgpu-dkms package. There is i.e. http://repo.radeon.com/rocm/apt/debian/pool/main/r/rock-dkms, however, that only works up to linux-4.13 :/