Skip to content

Commit 48ab2cc

Browse files
committed
[lang] Remove unused vector_ty() function
Signed-off-by: Greg Bonik <gbonik@nvidia.com>
1 parent 860f334 commit 48ab2cc

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

experimental/cuda-lang/src/cuda/lang/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
opaque_shared_cluster_ptr,
116116
opaque_tensor_ptr,
117117
MemorySpace,
118-
vector_ty,
119118
)
120119

121120
__all__ = (
@@ -201,7 +200,6 @@
201200
"MemoryScope",
202201
"MemoryOrder",
203202
"compile_simt",
204-
"vector_ty",
205203
"TensorMapSwizzle",
206204
"TensorMap",
207205
"tensor_map_tiled",

experimental/cuda-lang/src/cuda/lang/_datatype.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
MemorySpace,
1010
TileTy,
1111
is_vector_ty,
12-
make_vector_ty,
1312
)
1413
from cuda.tile._stub import Tile
1514
from cuda.tile._ir.type import SymbolicTile
16-
from cuda.tile._ir.typing_support import is_dtype, register_dtypes, to_dtype
1715
from cuda.tile._datatype import (
1816
DType,
1917
bfloat16,
@@ -55,18 +53,6 @@
5553
)
5654

5755

58-
def vector_ty(dtype: DType, length: int) -> TileTy:
59-
# Return a rank-1 TileTy(dtype, (length,)), creating it on first request and
60-
# registering the instance in cutile's dtype_registry so it can be
61-
# used as a compile-time constant inside kernels. Subsequent calls
62-
# with the same (dtype, length) return the already-registered instance.
63-
vt = make_vector_ty(dtype, length)
64-
if is_dtype(vt):
65-
return to_dtype(vt)
66-
register_dtypes({vt: vt}, usable_as_constructor=True)
67-
return vt
68-
69-
7056
def to_torch_dtype(dtype: DType | TileTy):
7157
import torch
7258

@@ -191,7 +177,6 @@ def satisfies_pointer_constraint(value, constraint: OpaquePointerSpec):
191177
"mbarrier",
192178
"clusterlaunchcontrol_token",
193179
"DType",
194-
"vector_ty",
195180
"to_torch_dtype",
196181
"default_int_type",
197182
"any_opaque_ptr",

0 commit comments

Comments
 (0)