Skip to content

Commit 9eb3317

Browse files
committed
Revert to %PYTHON in RUN lines
1 parent 4ab75c9 commit 9eb3317

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

examples/ingress/convert-kernel-bench-to-mlir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s 1,1 1,2 2,1
1+
# RUN: %PYTHON %s 1,1 1,2 2,1
22
# REQUIRES: torch
33
# REQUIRES: kernel_bench
44

examples/ingress/torch/mlp_from_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s
1+
# RUN: %PYTHON %s
22

33
"""
44
Example demonstrating how to load a PyTorch model to MLIR using Lighthouse

examples/ingress/torch/mlp_from_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s
1+
# RUN: %PYTHON %s
22

33
"""
44
Example demonstrating how to load an already initialized PyTorch model

examples/llama/test_llama3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s
1+
# RUN: %PYTHON %s
22
# REQUIRES: torch
33

44
import functools

examples/mlir/compile_and_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s
1+
# RUN: %PYTHON %s
22
# REQUIRES: torch
33

44
import torch

examples/schedule/transform_a_payload_according_to_a_schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s | FileCheck %s
1+
# RUN: %PYTHON %s | FileCheck %s
22

33
# Simply demonstrates applying a schedule to a payload.
44
# To do so generates a basic payload and a basic schedule, purely as an example.

examples/workload/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s | FileCheck %s
1+
# RUN: %PYTHON %s | FileCheck %s
22
# CHECK: func.func @payload
33
# CHECK: PASSED
44
# CHECK: Throughput:

examples/workload/example_mlir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s | FileCheck %s
1+
# RUN: %PYTHON %s | FileCheck %s
22
# CHECK: func.func @payload
33
# CHECK: PASSED
44
# CHECK: Throughput:

examples/xegpu_matmul/matmul.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: python %s --dump-kernel=xegpu-wg | FileCheck %s
1+
# RUN: %PYTHON %s --dump-kernel=xegpu-wg | FileCheck %s
22
# CHECK: module attributes {gpu.container_module} {
33

44
"""

lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
config.test_exec_root = project_root + "/lit.out"
1616

1717
config.substitutions.append(("%CACHE", project_root + "/cache"))
18-
if python_path := os.environ.get("PYTHON"):
19-
config.substitutions.append(("python", python_path))
18+
python = os.environ.get("PYTHON", "python")
19+
config.substitutions.append(("%PYTHON", python))
2020
if filecheck_path := os.environ.get("FILECHECK"):
2121
config.substitutions.append(("FileCheck", filecheck_path))
2222

0 commit comments

Comments
 (0)