Fix: Export rsmi_init shim with default visibility to be seen by PyTorch

Esse commit está contido em:
Donato Capitella
2026-02-01 12:12:28 +00:00
commit 532214edfb
+1
Ver Arquivo
@@ -4,6 +4,7 @@ extern "C" {
// Dummy implementation of rsmi_init to satisfy linker dependencies
// when the real ROCm SMI library is broken or causes Bus Errors (gfx1151).
// Returns 0 (RSMI_STATUS_SUCCESS).
__attribute__((visibility("default")))
int rsmi_init(uint64_t flags) {
return 0;
}