0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/runtimes/common
Corentin Kerisit 4c14652fb7
runtimes/rocm: sandbox ROCm dependencies (#276)
ROCm counterpart of #275 

The most important thing with this change is that ROCm dependencies
(along with the PJRT plugin) must be loaded in the main thread.

This is because some ROCm dependencies (amdhip64) use Thread Local
Storage in the destructor of static C++ instances.
Because all dependencies are unloaded at exit of the main program,
destructors are run on whatever thread exited (in general the main
thread), and any access to the TLS will except values from a different
threads....
History 2025-07-16 14:41:07 +02:00
..
BUILD.bazel runtimes/rocm: sandbox ROCm dependencies (#276) 2025-07-16 14:41:07 +02:00
packages.bzl runtimes/rocm: sandbox ROCm dependencies (#276) 2025-07-16 14:41:07 +02:00