diff options
Diffstat (limited to 'mlir/test/Examples/NVGPU')
| -rw-r--r-- | mlir/test/Examples/NVGPU/Ch1.py | 2 | ||||
| -rw-r--r-- | mlir/test/Examples/NVGPU/Ch2.py | 2 | ||||
| -rw-r--r-- | mlir/test/Examples/NVGPU/Ch3.py | 2 | ||||
| -rw-r--r-- | mlir/test/Examples/NVGPU/Ch4.py | 2 | ||||
| -rw-r--r-- | mlir/test/Examples/NVGPU/Ch5.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/mlir/test/Examples/NVGPU/Ch1.py b/mlir/test/Examples/NVGPU/Ch1.py index da65aa2ef6a1..cfb48d56f8d4 100644 --- a/mlir/test/Examples/NVGPU/Ch1.py +++ b/mlir/test/Examples/NVGPU/Ch1.py @@ -23,7 +23,7 @@ import numpy as np @NVDSL.mlir_func def saxpy(x, y, alpha): # 1. Use MLIR GPU dialect to allocate and copy memory - token_ty = ir.Type.parse("!gpu.async.token") + token_ty = gpu.AsyncTokenType.get() t1 = gpu.wait(token_ty, []) x_dev, t2 = gpu.alloc(x.type, token_ty, [t1], [], []) y_dev, t3 = gpu.alloc(y.type, token_ty, [t2], [], []) diff --git a/mlir/test/Examples/NVGPU/Ch2.py b/mlir/test/Examples/NVGPU/Ch2.py index 78c14cb2c7ad..729913c6d5c4 100644 --- a/mlir/test/Examples/NVGPU/Ch2.py +++ b/mlir/test/Examples/NVGPU/Ch2.py @@ -27,7 +27,7 @@ import numpy as np @NVDSL.mlir_func def saxpy(x, y, alpha): - token_ty = ir.Type.parse("!gpu.async.token") + token_ty = gpu.AsyncTokenType.get() t1 = gpu.wait(token_ty, []) x_dev, t2 = gpu.alloc(x.type, token_ty, [t1], [], []) y_dev, t3 = gpu.alloc(y.type, token_ty, [t2], [], []) diff --git a/mlir/test/Examples/NVGPU/Ch3.py b/mlir/test/Examples/NVGPU/Ch3.py index a417014de8b4..eb96b11c6341 100644 --- a/mlir/test/Examples/NVGPU/Ch3.py +++ b/mlir/test/Examples/NVGPU/Ch3.py @@ -59,7 +59,7 @@ def tma_load( @NVDSL.mlir_func def gemm_128_128_64(a, b, d): - token_ty = ir.Type.parse("!gpu.async.token") + token_ty = gpu.AsyncTokenType.get() t1 = gpu.wait(token_ty, []) a_dev, t2 = gpu.alloc(a.type, token_ty, [t1], [], []) b_dev, t3 = gpu.alloc(b.type, token_ty, [t2], [], []) diff --git a/mlir/test/Examples/NVGPU/Ch4.py b/mlir/test/Examples/NVGPU/Ch4.py index 8f38d8a90add..0e3460ff8d63 100644 --- a/mlir/test/Examples/NVGPU/Ch4.py +++ b/mlir/test/Examples/NVGPU/Ch4.py @@ -258,7 +258,7 @@ def epilogue(D: WGMMAMatrix, d_dev): # d -> memref<MxNxf32> @NVDSL.mlir_func def gemm_multistage(a, b, d, num_stages): - token_ty = ir.Type.parse("!gpu.async.token") + token_ty = gpu.AsyncTokenType.get() t1 = gpu.wait(token_ty, []) a_dev, t2 = gpu.alloc(a.type, token_ty, [t1], [], []) b_dev, t3 = gpu.alloc(b.type, token_ty, [t2], [], []) diff --git a/mlir/test/Examples/NVGPU/Ch5.py b/mlir/test/Examples/NVGPU/Ch5.py index 92e9314e1b81..f98cfd758a75 100644 --- a/mlir/test/Examples/NVGPU/Ch5.py +++ b/mlir/test/Examples/NVGPU/Ch5.py @@ -252,7 +252,7 @@ def epilogue(D: WGMMAMatrix, d_dev): @NVDSL.mlir_func def gemm_warp_specialized(a, b, d, num_stages): - token_ty = ir.Type.parse("!gpu.async.token") + token_ty = gpu.AsyncTokenType.get() t1 = gpu.wait(token_ty, []) a_dev, t2 = gpu.alloc(a.type, token_ty, [t1], [], []) b_dev, t3 = gpu.alloc(b.type, token_ty, [t2], [], []) |
