Skip to content

Commit

Permalink
Fix dot_bf16 using feature conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmakevic-amd committed Jun 20, 2024
1 parent c09263e commit 59ada7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions xla/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@
("%PYTHON", os.getenv("PYTHON", sys.executable)),
])

if lit_config.params.get('PTX', 'GCN'):
config.available_features.add("IS_ROCM")


# Include additional substitutions that may be defined via params
config.substitutions.extend(
("%%{%s}" % key, val)
for key, val in lit_config.params.items()
)

5 changes: 3 additions & 2 deletions xla/service/gpu/tests/dot_bf16.hlo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: hlo-opt %s --platform=gpu --stage=hlo --xla_gpu_target_config_filename=%S/../../../tools/hlo_opt/gpu_specs/v100.txtpb --split-input-file | FileCheck %s --check-prefixes=CHECK-SM70
// RUN: hlo-opt %s --platform=gpu --stage=hlo --xla_gpu_target_config_filename=%S/../../../tools/hlo_opt/gpu_specs/a100_80.txtpb --split-input-file --xla_gpu_autotune_level=0 --xla_gpu_enable_triton_gemm=false | FileCheck %s --check-prefixes=CHECK-SM80
// RUN: %if !IS_ROCM %{ hlo-opt %s --platform=gpu --stage=hlo --xla_gpu_target_config_filename=%S/../../../tools/hlo_opt/gpu_specs/v100.txtpb --split-input-file | FileCheck %s --check-prefixes=CHECK-SM70 %}
// RUN: %if !IS_ROCM %{ hlo-opt %s --platform=gpu --stage=hlo --xla_gpu_target_config_filename=%S/../../../tools/hlo_opt/gpu_specs/a100_80.txtpb --split-input-file --xla_gpu_autotune_level=0 --xla_gpu_enable_triton_gemm=false | FileCheck %s --check-prefixes=CHECK-SM80 %}
// RUN: %if IS_ROCM %{ hlo-opt %s --platform=gpu --stage=hlo --xla_gpu_target_config_filename=%S/../../../tools/hlo_opt/gpu_specs/mi200.txtpb --split-input-file --xla_gpu_autotune_level=0 --xla_gpu_enable_triton_gemm=false | FileCheck %s --check-prefixes=CHECK-SM80 %}


// CHECK-SM70: custom-call(f32
Expand Down

0 comments on commit 59ada7f

Please sign in to comment.