@disc-kuraudo The aocl-aocc
package is an example.
Without that conf file and without set LD_LIBRARY_PATH, ldd /opt/aocl-aocc/lib_LP64/libflame.so.4.0
will report some missing libs. With this one-line conf file, this lib can find those libs.
Git Clone URL: | https://aur.archlinux.org/aocc.git (read-only, click to copy) |
---|---|
Package Base: | aocc |
Description: | AMD Optimizing C/C++ Compiler |
Upstream URL: | https://developer.amd.com/amd-aocc/ |
Licenses: | custom |
Submitter: | disc-kuraudo |
Maintainer: | disc-kuraudo |
Last Packager: | disc-kuraudo |
Votes: | 2 |
Popularity: | 0.000000 |
First Submitted: | 2019-07-13 15:00 (UTC) |
Last Updated: | 2023-08-07 18:21 (UTC) |
@disc-kuraudo The aocl-aocc
package is an example.
Without that conf file and without set LD_LIBRARY_PATH, ldd /opt/aocl-aocc/lib_LP64/libflame.so.4.0
will report some missing libs. With this one-line conf file, this lib can find those libs.
Have an example for libs that are not found?
Compiling example applications with OpenMP, amdlibm, etc. and issuing ldd after unloading the module show me the libs in /opt/aocc/lib
I suggest add a file aocc.conf
with one line /opt/aocc/lib
to /etc/ld.so.conf.d/
, which allows aocc
compiled applications to find libs without set LD_LIBRARY_PATH
variable.
Manual download of tarballs required from upstream
Yes, aocl is still stuck at 2.2, used to be the other way round where aocl was more up to date.
I removed the line. Users' choice which amdlibm to link to.
amdlibm in aocc 2.3.0 seems to be newer than amdlibm in aocl 2.2. not sure if the deletion makes sense any more
I never use that AOCC-prerequisites-check.sh
script tbh.
I just made sure the compilers work and they do.
$ ldd /opt/aocc/bin/clang | grep libtinfo
libtinfo.so.5 => /usr/lib/libtinfo.so.5 (0x00007f9a5d398000)
@gavr123456789 you've gotta add the line given when you install env-modules
to your ~/.bashrc
or ~/.zshrc
or whatever you're using.
AOCC-prerequisites-check.sh
still throws an error saying that libtinfo.so.5 isn't installed even with ncurses5-compat-libs
installed, and I checked, libtinfo.so.5
is indeed in /lib
LIBRARY_PATH=/opt/aocl-aocc/amd-blis/lib:/opt/aocl-aocc/amd-fftw/lib:/opt/aocl-aocc/amd-libflame/lib:/opt/aocl-aocc/amd-libm/lib:/opt/aocl-aocc/amd-rng/lib:/opt/aocl-aocc/amd-scalapack/lib:/opt/aocl-aocc/amd-securerng/lib:/opt/aocc/lib:/opt/aocc/lib32:/lib:/lib32 ./AOCC-prerequisites-check.sh
Failing Checks: 1)Library libtinfo.so.5 is missing Install this library for AOCC compiler to work
Passing Checks: 1) AOCC clang compiler bin:/opt/aocc/bin 2) AOCC clang++ compiler bin:/opt/aocc/bin 3) AOCC flang compiler bin:/opt/aocc/bin 4) Glibc version:2.31 5) libstdc++: libstdc++.so.6 (libc6,x86-64) => /usr/lib/libstdc++.so.6 libstdc++.so.5 (libc6,x86-64) => /usr/lib/libstdc++.so.5 libstdc++.so (libc6,x86-64) => /usr/lib/libstdc++.so 6) AMD LibM:/opt/aocl-aocc/amd-libm/lib 7) libz.so: libz.so.1 (libc6,x86-64) => /usr/lib/libz.so.1
ls /lib/libtinfo*
/lib/libtinfo.so /lib/libtinfo.so.5 /lib/libtinfo.so.6
Environment variable MODULESHOME from env-modules is unset. Restart your shell or source the env-modules scripts for your shell.
Pinned Comments
disc-kuraudo commented on 2022-11-11 09:26 (UTC)