Skip to content

Commit 6188974

Browse files
authored
[Wave] Migrate iree.turbine.kernel -> wave_lang.kernel (#50)
Also remove iree.turbine from setup.py and consolidate ir_imports. Signed-off-by: Harsh Menon <[email protected]>
1 parent b1aa1d9 commit 6188974

File tree

219 files changed

+1758
-1797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+1758
-1797
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: end-of-file-fixer
1010
- id: check-yaml
1111
- id: check-added-large-files
12-
# Fix trivial whitespace, line endings, YAML, large files
12+
# Format code with Black
1313
- repo: https://github.com/psf/black
1414
rev: 25.1.0
1515
hooks:
@@ -19,3 +19,5 @@ repos:
1919
rev: v0.12.3
2020
hooks:
2121
- id: ruff
22+
args: [--select=F401,I001, --fix]
23+
name: ruff-unused-imports-and-sorting

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
import sys
1414

1515
try:
16-
import iree.turbine # noqa
16+
import wave_lang # noqa
1717
except ImportError:
1818
sys.path.insert(0, os.path.abspath("../"))
19-
import iree.turbine # noqa
19+
import wave_lang # noqa
2020

2121
# -- Project information -----------------------------------------------------
2222
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

docs/kernel/wave.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
TKW (`turbine.kernel.wave`)
22
===========================
33

4-
.. py:module:: iree.turbine.kernel.wave.wave
4+
.. py:module:: wave_lang.kernel.wave.wave
55
66
.. autoclass:: LaunchableWave
77
:members:

docs/kernel/wave_codegen.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Wave Codegen
22
============
33

4-
.. automodule:: iree.turbine.kernel.wave.codegen
4+
.. automodule:: wave_lang.kernel.wave.codegen
55
:members:
66
:undoc-members:

docs/kernel/wave_ops.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Wave Ops
22
===================
33

4-
.. automodule:: iree.turbine.kernel.ops.wave_ops
4+
.. automodule:: wave_lang.kernel.ops.wave_ops
55
:members:
66
:undoc-members:

docs/wave/gemm_tutorial.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ First, we need to import the necessary modules and define our symbolic dimension
2121

2222
.. code-block:: python
2323
24-
from iree.turbine.kernel._support.indexing import sym
25-
from iree.turbine.kernel._support.dtype import f16, f32
26-
from iree.turbine.kernel.lang.wave_types import *
27-
from iree.turbine.kernel.lang.global_symbols import *
28-
from iree.turbine.kernel.wave.utils.run_utils import set_default_run_config
29-
import iree.turbine.kernel as tkl
30-
import iree.turbine.kernel.wave as tkw
31-
from iree.turbine.kernel.wave.compile import WaveCompileOptions, wave_compile
24+
from wave_lang.kernel._support.indexing import sym
25+
from wave_lang.kernel._support.dtype import f16, f32
26+
from wave_lang.kernel.lang.wave_types import *
27+
from wave_lang.kernel.lang.global_symbols import *
28+
from wave_lang.kernel.wave.utils.run_utils import set_default_run_config
29+
import wave_lang.kernel as tkl
30+
import wave_lang.kernel.wave as tkw
31+
from wave_lang.kernel.wave.compile import WaveCompileOptions, wave_compile
3232
import torch
3333
3434
# Define symbolic dimensions for our matrices

docs/wave/optimize_schedule.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Here's a complete example of how to use `tune_attention`:
3535

3636
.. code-block:: python
3737
38-
from iree.turbine.kernel.wave.tuner.tune_attention import (
38+
from wave_lang.kernel.wave.tuner.tune_attention import (
3939
tune_attention, AttentionConfig
4040
)
41-
from iree.turbine.kernel.wave.constraints import MMAType
42-
from iree.turbine.kernel.wave.scheduling import SchedulingType
41+
from wave_lang.kernel.wave.constraints import MMAType
42+
from wave_lang.kernel.wave.scheduling import SchedulingType
4343
4444
# Configure the attention kernel
4545
config = AttentionConfig(

examples/jupyter/wave_gemm_example.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
"source": [
3636
"import torch\n",
3737
"\n",
38-
"import iree.turbine.kernel.wave as tkw\n",
39-
"from iree.turbine.kernel._support.dtype import f16, f32\n",
40-
"from iree.turbine.kernel._support.indexing import sym\n",
41-
"from iree.turbine.kernel.lang.global_symbols import *\n",
42-
"from iree.turbine.kernel.lang.wave_types import *\n",
43-
"from iree.turbine.kernel.wave.compile import WaveCompileOptions, wave_compile\n",
44-
"from iree.turbine.kernel.wave.utils.run_utils import set_default_run_config\n",
38+
"import wave_lang.kernel.wave as tkw\n",
39+
"from wave_lang.kernel._support.dtype import f16, f32\n",
40+
"from wave_lang.kernel._support.indexing import sym\n",
41+
"from wave_lang.kernel.lang.global_symbols import *\n",
42+
"from wave_lang.kernel.lang.wave_types import *\n",
43+
"from wave_lang.kernel.wave.compile import WaveCompileOptions, wave_compile\n",
44+
"from wave_lang.kernel.wave.utils.run_utils import set_default_run_config\n",
4545
"\n",
4646
"# Define symbolic dimensions for our matrices\n",
4747
"M = sym.M # Rows of A and C\n",

iree/turbine/__init__.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

iree/turbine/kernel/compiler/ir.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)