Add build variant torch211-cxx11-cu130-x86_64-linux for kernels compatibility
Browse files- .gitattributes +1 -0
- build/torch211-cxx11-cu130-x86_64-linux/__init__.py +18 -0
- build/torch211-cxx11-cu130-x86_64-linux/__pycache__/__init__.cpython-311.pyc +0 -0
- build/torch211-cxx11-cu130-x86_64-linux/_kronecker_cuda.so +3 -0
- build/torch211-cxx11-cu130-x86_64-linux/kronecker/__init__.py +15 -0
- build/torch211-cxx11-cu130-x86_64-linux/metadata.json +13 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
build/torch211-cxx11-cu130-x86_64-linux/_kronecker_cuda.so filter=lfs diff=lfs merge=lfs -text
|
build/torch211-cxx11-cu130-x86_64-linux/__init__.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib.util
|
| 2 |
+
import sys
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
|
| 5 |
+
def _load_extension():
|
| 6 |
+
so_path = Path(__file__).parent / "_kronecker_cuda.so"
|
| 7 |
+
spec = importlib.util.spec_from_file_location("_kronecker_cuda", so_path)
|
| 8 |
+
if spec is None:
|
| 9 |
+
raise ImportError(f"Cannot find {so_path}")
|
| 10 |
+
mod = importlib.util.module_from_spec(spec)
|
| 11 |
+
sys.modules["_kronecker_cuda"] = mod
|
| 12 |
+
spec.loader.exec_module(mod)
|
| 13 |
+
return mod
|
| 14 |
+
|
| 15 |
+
_ext = _load_extension()
|
| 16 |
+
|
| 17 |
+
# Re-export all public symbols from the extension
|
| 18 |
+
from _kronecker_cuda import *
|
build/torch211-cxx11-cu130-x86_64-linux/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (1.13 kB). View file
|
|
|
build/torch211-cxx11-cu130-x86_64-linux/_kronecker_cuda.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c3baca2427be738d8c5d576d26fb3f72b92d149ac7cef2445f94fd3c6e11ee9
|
| 3 |
+
size 251352
|
build/torch211-cxx11-cu130-x86_64-linux/kronecker/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib.util, ctypes, sys
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
|
| 4 |
+
def _import_from_path(file_path):
|
| 5 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 6 |
+
module_name = path_hash
|
| 7 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 8 |
+
if spec is None:
|
| 9 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 10 |
+
module = importlib.util.module_from_spec(spec)
|
| 11 |
+
sys.modules[module_name] = module
|
| 12 |
+
spec.loader.exec_module(module)
|
| 13 |
+
return module
|
| 14 |
+
|
| 15 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch211-cxx11-cu130-x86_64-linux/metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"8.0",
|
| 8 |
+
"9.0",
|
| 9 |
+
"10.0",
|
| 10 |
+
"12.0"
|
| 11 |
+
]
|
| 12 |
+
}
|
| 13 |
+
}
|