[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986789: marked as done (libhsa-runtime-dev: does not install cmake files, can not be found via cmake's find_package())



Your message dated Sun, 23 Oct 2022 12:53:41 +0200
with message-id <Y1UdNY74wGEczZ4i@fusion>
and subject line rocm bugs triage
has caused the Debian Bug report #986789,
regarding libhsa-runtime-dev: does not install cmake files, can not be found via cmake's find_package()
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
986789: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986789
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libhsa-runtime-dev
Version: 3.3.0-1~exp1
Severity: important
X-Debbugs-Cc: Sylvestre Ledru <sylvestre@debian.org>, Johannes Doerfert <johannes@jdoerfert.de>, Jon Chesterfield <jonathanchesterfield@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear maintainer,

the package libhsa-runtime-dev does not provide any CMake boilerplate,
and is thus it is unable to be found by CMake's native find_package().

This breaks LLVM OpenMP libomptarget AMDGPU offloading pluging build,
https://github.com/llvm/llvm-project/blob/bdd1ad5e5c57ae0f0bf899517c540ad8a679f01a/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt#L16-L21

It would be really good for that to work out-of-the-box on Debian.
It is possible that is because the libhsa version in Debian is too old,
3.3.0 instead of 3.7.0+.

Roman.

- -- System Information:
Debian Release: 11.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-5-amd64 (SMP w/32 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEjkF6151RK40WXe2HCDw+u0oWieAFAmB0DOsACgkQCDw+u0oW
ieAmmw/7BaG01WLrcMyKaxBINKgvGLtdnym+UIJ+vZheeNbWCwisg956JDYsTxne
NkcGDAWYiMpePcBiR3DXYQHRoWU3UeUfJvJhBY05V+O5cVS8kDmddMVOo7MScXer
0jZpVL99Vigdciaqir/K7FQmZJwSFAs6dTFesd2vqak6xgmzErUsnrvafPngUvs1
pwSCKw/BTMJINys/lrmyVdgakS8oxUJVAIhXItgyAo32UhRPac339xTUecbf3kNi
KkTx6c116udH0y6RyMvyeUzrR/nxkrZ8j8//JeKw3n2Lbgg/OEiZnw5Uh0yPQF9X
Vx+mBXPi2JiVRN7ovPuLMKeu9vtZZne7ihw6jzKI9v1WSGmw0t9h+USzKKzyoEnB
fc+HAl1e4bDPiuqDNDz4WCgFFCtyq/WhV6k75zU5/9TRhCjIzfNNmoxs+VOPY2R6
1BjU0WwiezafdjJ5pIq5t3DHLm0zM/GSdzlRJC/M6PVUuToec+jymD5gmL2iXGI5
P967rpllSrKeQ9zyqFISFxIEOjLfsXsyt2bgG21jIam7NVPc7QpwXJ9zFtps1Fm/
u2iyf3FfzXR3P+gwY+tXDUnllk3xsOm0f04CmajE7CgCdbdXY1bAGR2ajoS6Zrk/
4OeRq3mSrrEUBCPR7sRR/4aPZ7bxfaAIdeT1DR3Y42QboEAsczI=
=X3D9
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
Version: 5.2.3-1

Greetings,

I'm not sure extactly when that happened, but it is now possible
to build the libomptarget with amdgpu offloading using the cmake
boilerplate provided in /usr/lib/*/cmake/hsa-runtime64.  When
configuring the build of the latest llvm-project source code,
the libomptarget seems to have been caught just right:

$ cmake -S openmp -B omp-build \
	-DCMAKE_BUILD_TYPE=Debug \
	-DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=TRUE
[…]
-- LIBOMPTARGET: Building offloading runtime library libomptarget.
-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Building AMDGPU plugin linked against libhsa
-- LIBOMPTARGET: Building CUDA offloading plugin.
-- LIBOMPTARGET: Building CUDA plugin for dlopened libcuda
-- LIBOMPTARGET: Disabling tests using CUDA plugin as cuda may not be available
-- LIBOMPTARGET: Not building PPC64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building PPC64le offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building nec-aurora plugin: libveo or libveosinfo not found.
-- LIBOMPTARGET: Building x86_64 offloading plugin.
-- LIBOMPTARGET: Building DeviceRTL. Using clang: /usr/lib/llvm-15/bin/clang, llvm-link: /usr/lib/llvm-15/bin/llvm-link and opt: /usr/lib/llvm-15/bin/opt
-- LIBOMPTARGET: Building the llvm-omp-device-info tool
[…]

Have a nice day,  :)
-- 
Étienne Mollier <emollier@emlwks999.eu>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/4, please excuse my verbosity.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply to: