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.61
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 »

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.

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().