aboutsummaryrefslogtreecommitdiff
blob: 44b27cac31c44265993cad57807ab7977866d02c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/torch/__init__.py b/torch/__init__.py
index 03f6eca622..297fb169a4 100644
--- a/torch/__init__.py
+++ b/torch/__init__.py
@@ -412,7 +412,7 @@ def manager_path():
 
 
 # Shared memory manager needs to know the exact location of manager executable
-_C._initExtension(manager_path())
+_C._initExtension(b"@GENTOO_PORTAGE_EPREFIX@/usr/bin/torch_shm_manager")
 del manager_path
 
 # Appease the type checker: it can't deal with direct setting of globals().