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

这个提交包含在:
Donato Capitella
2026-02-01 12:12:28 +00:00
父节点 aec38e7dde
当前提交 532214edfb
+1
查看文件
@@ -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;
}