summaryrefslogtreecommitdiff
path: root/sci-libs/pytorch/files/pytorch-2.4.0-torch_shm_manager.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/pytorch/files/pytorch-2.4.0-torch_shm_manager.patch')
-rw-r--r--sci-libs/pytorch/files/pytorch-2.4.0-torch_shm_manager.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/sci-libs/pytorch/files/pytorch-2.4.0-torch_shm_manager.patch b/sci-libs/pytorch/files/pytorch-2.4.0-torch_shm_manager.patch
new file mode 100644
index 000000000000..b1303d141dce
--- /dev/null
+++ b/sci-libs/pytorch/files/pytorch-2.4.0-torch_shm_manager.patch
@@ -0,0 +1,11 @@
+--- a/torch/__init__.py
++++ b/torch/__init__.py
+@@ -1691,7 +1691,7 @@ py_float = float
+ py_int = int
+
+ # Shared memory manager needs to know the exact location of manager executable
+-_C._initExtension(_manager_path())
++_C._initExtension(b"/usr/bin/torch_shm_manager")
+ del _manager_path
+
+ # Appease the type checker: it can't deal with direct setting of globals().