Skip to content

Commit cd0b5d4

Browse files
authored
[Wave] Migrate iree.turbine.support -> wave_lang.support (#48)
Signed-off-by: Harsh Menon <[email protected]>
1 parent 559f0aa commit cd0b5d4

37 files changed

+107
-99
lines changed

docs/core/support.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
`iree.turbine.support`
1+
`wave_lang.support`
22
======================
33

4-
.. automodule:: iree.turbine.support
4+
.. automodule:: wave_lang.support
55
:imported-members:
66
:members:
77
:undoc-members:
88

99
conversions
1010
--------------
1111

12-
.. py:module:: iree.turbine.support.conversions
12+
.. py:module:: wave_lang.support.conversions
1313
1414
.. autofunction:: dtype_to_element_type
1515
.. autofunction:: torch_dtype_to_numpy
@@ -18,7 +18,7 @@ conversions
1818
debugging
1919
--------------
2020

21-
.. py:module:: iree.turbine.support.debugging
21+
.. py:module:: wave_lang.support.debugging
2222
2323
.. autoclass:: DebugFlags
2424
:members:
@@ -27,15 +27,15 @@ debugging
2727
logging
2828
--------------
2929

30-
.. py:module:: iree.turbine.support.logging
30+
.. py:module:: wave_lang.support.logging
3131
3232
.. autoclass:: DefaultFormatter
3333
.. autofunction:: get_logger
3434

3535
tools
3636
--------------
3737

38-
.. py:module:: iree.turbine.support.tools
38+
.. py:module:: wave_lang.support.tools
3939
4040
.. autofunction:: iree_tool_format_cli_input_arg
4141
.. autofunction:: iree_tool_prepare_input_args

iree/turbine/kernel/wave/analysis/index_sequence_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
print_trace,
5858
try_apply_pass,
5959
)
60-
from ....support.logging import get_logger
60+
from wave_lang.support.logging import get_logger
6161

6262
from copy import deepcopy, copy
6363
from enum import Enum

iree/turbine/kernel/wave/analysis/partition_strided_operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)
2020
from ..._support.indexing import IndexSequence, IndexSymbol
2121
from ..._support.tracing import CapturedTrace
22-
from ....support.logging import get_logger
22+
from wave_lang.support.logging import get_logger
2323
from ..utils.general_utils import (
2424
all_equal,
2525
)

iree/turbine/kernel/wave/expansion/expansion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
get_users,
5050
get_inputs,
5151
)
52-
from ....support.logging import get_logger
52+
from wave_lang.support.logging import get_logger
5353
from copy import deepcopy
5454
import math
5555

iree/turbine/kernel/wave/hoisting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from .constraints import Constraint
88
from .utils.general_utils import get_induction_variable
9-
from ...support.logging import get_logger
9+
from wave_lang.support.logging import get_logger
1010
from iree.turbine.kernel._support.tracing import CapturedTrace
1111
import torch.fx as fx
1212
from ..ops.wave_ops import *

iree/turbine/kernel/wave/iree_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66

77
import torch
8-
from ...support.conversions import TORCH_DTYPE_TO_IREE_TYPE_ASM
8+
from wave_lang.support.conversions import TORCH_DTYPE_TO_IREE_TYPE_ASM
99
from iree.turbine.runtime.launch import Launchable
1010

1111

iree/turbine/kernel/wave/memory_analysis/solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# See https://llvm.org/LICENSE.txt for license information.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66

7-
from ....support.logging import get_logger
7+
from wave_lang.support.logging import get_logger
88

99
logger = get_logger("wave.memory_analysis.solver")
1010

iree/turbine/kernel/wave/profiling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import torch
1717
import iree.runtime
18-
from ...support.conversions import TORCH_DTYPE_TO_SIGNED_MLIR_TYPE_ASM
18+
from wave_lang.support.conversions import TORCH_DTYPE_TO_SIGNED_MLIR_TYPE_ASM
1919
from .compile_options import WaveCompileOptions
2020

2121
BenchmarkResult = namedtuple(

iree/turbine/kernel/wave/promotion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66

77
from .._support.tracing import CapturedTrace
8-
from ...support.logging import get_logger
8+
from wave_lang.support.logging import get_logger
99
from .._support.indexing import IndexingContext
1010
from ..ops.wave_ops import *
1111
from ..lang.global_symbols import *

iree/turbine/kernel/wave/scheduling/loop_reconstruction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import torch.fx as fx
1919
from collections import deque, defaultdict
2020
from ..visualization import visualize_mapped_graphs, visualize_graph
21-
from ....support.logging import get_logger
21+
from wave_lang.support.logging import get_logger
2222
from .loop_reconstruction_utils import (
2323
ArgumentContext,
2424
create_fill_stage_schedule,

0 commit comments

Comments
 (0)