kernels-bot commited on
Commit
b69a496
·
verified ·
1 Parent(s): d03497f

Uploaded using `kernel-builder` (batch 1/9).

Browse files
.gitattributes CHANGED
@@ -98,3 +98,4 @@ build/torch212-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so filter=l
98
  build/torch212-cxx11-cu132-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so filter=lfs diff=lfs merge=lfs -text
99
  build/torch213-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so filter=lfs diff=lfs merge=lfs -text
100
  build/torch213-cxx11-cu132-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so filter=lfs diff=lfs merge=lfs -text
 
 
98
  build/torch212-cxx11-cu132-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so filter=lfs diff=lfs merge=lfs -text
99
  build/torch213-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so filter=lfs diff=lfs merge=lfs -text
100
  build/torch213-cxx11-cu132-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so filter=lfs diff=lfs merge=lfs -text
101
+ build/torch212-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_addf474.abi3.so filter=lfs diff=lfs merge=lfs -text
build/torch212-cxx11-cu130-x86_64-linux/__init__.py CHANGED
@@ -10,6 +10,7 @@ os.environ.setdefault("DG_USE_TEMP_CUBLASLT_WORKSPACE", "1")
10
 
11
  # Import the compiled extension
12
  from ._ops import ops as _ops, add_op_namespace_prefix
 
13
  from . import utils
14
 
15
  __version__ = "2.5.0"
@@ -770,9 +771,11 @@ def _find_cuda_home() -> str:
770
  cuda_home = os.path.dirname(os.path.dirname(nvcc))
771
  except Exception:
772
  cuda_home = "/usr/local/cuda"
773
- if not os.path.exists(cuda_home):
774
- cuda_home = None
775
- assert cuda_home is not None, "Could not find CUDA installation"
 
 
776
  return cuda_home
777
 
778
 
 
10
 
11
  # Import the compiled extension
12
  from ._ops import ops as _ops, add_op_namespace_prefix
13
+ from . import testing
14
  from . import utils
15
 
16
  __version__ = "2.5.0"
 
771
  cuda_home = os.path.dirname(os.path.dirname(nvcc))
772
  except Exception:
773
  cuda_home = "/usr/local/cuda"
774
+ # Only the runtime JIT compiler needs a CUDA toolkit. The cuBLASLt GEMMs, the
775
+ # runtime configuration surface and the layout fast paths compile nothing, so
776
+ # a missing toolkit must not fail here -- `init()` only records the path.
777
+ # Return the conventional location and let the JIT compiler report the
778
+ # missing `nvcc` if it is ever reached.
779
  return cuda_home
780
 
781
 
build/torch212-cxx11-cu130-x86_64-linux/{_deep_gemm_cuda_8a730d9.abi3.so → _deep_gemm_cuda_addf474.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:caab8eb5f67cd88df8d8bfba22c1ccfbff4eaf1395c6d2db7a1b55981992323c
3
  size 1464296
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69f642e9d7709cbc69a560608bcf900df801abbec42f9673647e2fedf2d693fd
3
  size 1464296
build/torch212-cxx11-cu130-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _deep_gemm_cuda_8a730d9
3
- ops = torch.ops._deep_gemm_cuda_8a730d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_deep_gemm_cuda_8a730d9::{op_name}"
 
1
  import torch
2
+ from . import _deep_gemm_cuda_addf474
3
+ ops = torch.ops._deep_gemm_cuda_addf474
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_deep_gemm_cuda_addf474::{op_name}"
build/torch212-cxx11-cu130-x86_64-linux/deep_gemm/__init__.py DELETED
@@ -1,26 +0,0 @@
1
- import ctypes
2
- import importlib.util
3
- import sys
4
- from pathlib import Path
5
- from types import ModuleType
6
-
7
-
8
- def _import_from_path(file_path: Path) -> ModuleType:
9
- # We cannot use the module name as-is, after adding it to `sys.modules`,
10
- # it would also be used for other imports. So, we make a module name that
11
- # depends on the path for it to be unique using the hex-encoded hash of
12
- # the path.
13
- path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
14
- module_name = path_hash
15
- spec = importlib.util.spec_from_file_location(module_name, file_path)
16
- if spec is None:
17
- raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
18
- module = importlib.util.module_from_spec(spec)
19
- if module is None:
20
- raise ImportError(f"Cannot load module {module_name} from spec")
21
- sys.modules[module_name] = module
22
- spec.loader.exec_module(module) # type: ignore
23
- return module
24
-
25
-
26
- globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
build/torch212-cxx11-cu132-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5fe1f6975c4e37597e086587d9980700dbafaaf265a22b8ac522b91990163e1e
3
- size 1474320
 
 
 
 
build/torch212-cxx11-cu132-x86_64-linux/deep_gemm/__init__.py DELETED
@@ -1,26 +0,0 @@
1
- import ctypes
2
- import importlib.util
3
- import sys
4
- from pathlib import Path
5
- from types import ModuleType
6
-
7
-
8
- def _import_from_path(file_path: Path) -> ModuleType:
9
- # We cannot use the module name as-is, after adding it to `sys.modules`,
10
- # it would also be used for other imports. So, we make a module name that
11
- # depends on the path for it to be unique using the hex-encoded hash of
12
- # the path.
13
- path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
14
- module_name = path_hash
15
- spec = importlib.util.spec_from_file_location(module_name, file_path)
16
- if spec is None:
17
- raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
18
- module = importlib.util.module_from_spec(spec)
19
- if module is None:
20
- raise ImportError(f"Cannot load module {module_name} from spec")
21
- sys.modules[module_name] = module
22
- spec.loader.exec_module(module) # type: ignore
23
- return module
24
-
25
-
26
- globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
build/torch213-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6a04ac32dd6f87f2a8b82d8fc461f2e044e66b27aba6f37e7dc229e1a9bf47a7
3
- size 1464048
 
 
 
 
build/torch213-cxx11-cu130-x86_64-linux/deep_gemm/__init__.py DELETED
@@ -1,26 +0,0 @@
1
- import ctypes
2
- import importlib.util
3
- import sys
4
- from pathlib import Path
5
- from types import ModuleType
6
-
7
-
8
- def _import_from_path(file_path: Path) -> ModuleType:
9
- # We cannot use the module name as-is, after adding it to `sys.modules`,
10
- # it would also be used for other imports. So, we make a module name that
11
- # depends on the path for it to be unique using the hex-encoded hash of
12
- # the path.
13
- path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
14
- module_name = path_hash
15
- spec = importlib.util.spec_from_file_location(module_name, file_path)
16
- if spec is None:
17
- raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
18
- module = importlib.util.module_from_spec(spec)
19
- if module is None:
20
- raise ImportError(f"Cannot load module {module_name} from spec")
21
- sys.modules[module_name] = module
22
- spec.loader.exec_module(module) # type: ignore
23
- return module
24
-
25
-
26
- globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
build/torch213-cxx11-cu132-x86_64-linux/_deep_gemm_cuda_8a730d9.abi3.so DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:50134f6ff50451c459d857de243969084c8805c79621efb9873abe6631b9a2fc
3
- size 1474080
 
 
 
 
build/torch213-cxx11-cu132-x86_64-linux/deep_gemm/__init__.py DELETED
@@ -1,26 +0,0 @@
1
- import ctypes
2
- import importlib.util
3
- import sys
4
- from pathlib import Path
5
- from types import ModuleType
6
-
7
-
8
- def _import_from_path(file_path: Path) -> ModuleType:
9
- # We cannot use the module name as-is, after adding it to `sys.modules`,
10
- # it would also be used for other imports. So, we make a module name that
11
- # depends on the path for it to be unique using the hex-encoded hash of
12
- # the path.
13
- path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
14
- module_name = path_hash
15
- spec = importlib.util.spec_from_file_location(module_name, file_path)
16
- if spec is None:
17
- raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
18
- module = importlib.util.module_from_spec(spec)
19
- if module is None:
20
- raise ImportError(f"Cannot load module {module_name} from spec")
21
- sys.modules[module_name] = module
22
- spec.loader.exec_module(module) # type: ignore
23
- return module
24
-
25
-
26
- globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))