[go: nahoru, domu]

Skip to content

Commit

Permalink
PR #12434: [GPU] Fix OSS compilation problems in a previously disable…
Browse files Browse the repository at this point in the history
…d test.

Imported from GitHub PR openxla/xla#12434

Copybara import of the project:

--
723c9bb29adfcc33c015b74f90ce8024c2f79255 by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] Fix OSS compilation problems in a previously disabled test.

Merging this change closes #12434

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#12434 from openxla:fix_triton_test 723c9bb29adfcc33c015b74f90ce8024c2f79255
PiperOrigin-RevId: 633509548
  • Loading branch information
sergachev authored and tensorflower-gardener committed May 14, 2024
1 parent 360088f commit 699f6c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions third_party/xla/xla/service/gpu/ir_emitter_triton_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ ENTRY e {
})";

TritonGemmConfig config(16, 16, 32, 1, 1, 1);
EXPECT_OK(
TF_EXPECT_OK(
CreateTritonIrAndFileCheck(kHloText, config, EmitMatMul, "triton_dot", R"(
CHECK: tt.func @triton_fn(%[[LHS:.*]]: !tt.ptr<f32> {tt.divisibility = 16 : i32}, %[[RHS:.*]]: !tt.ptr<f32> {tt.divisibility = 16 : i32}, %[[OUT:.*]]: !tt.ptr<f32> {tt.divisibility = 16 : i32}) {
CHECK-DAG: %[[ZERO_KN:.*]] = arith.constant dense<0.000000e+00> : tensor<32x16xf32>
Expand Down Expand Up @@ -1083,8 +1083,8 @@ ENTRY main {
ParseAndReturnVerifiedModule(kHloText));

TritonGemmConfig config(16, 64, 32, 1, 1, 1);
ASSERT_OK(CreateTritonIrAndFileCheck(kHloText, config, EmitSoftMax,
"triton_softmax_computation", R"(
TF_ASSERT_OK(CreateTritonIrAndFileCheck(kHloText, config, EmitSoftMax,
"triton_softmax_computation", R"(
// CHECK: #[[MAP:.*]] = affine_map<()[s0] -> (s0 * 16)>
// CHECK-LABEL: tt.func @triton_fn(
// CHECK-SAME: %[[P0:[^:]*]]: !tt.ptr<f32> {tt.divisibility = 16 : i32},
Expand Down Expand Up @@ -4527,7 +4527,7 @@ ENTRY e {
}
)";
TritonGemmConfig config(32, 32, 32, 1, 1, 1);
ASSERT_OK(
TF_ASSERT_OK(
CreateTritonIrAndFileCheck(kHloText, config, EmitMatMul, "triton_dot", R"(
CHECK: %[[INFINITY:.*]] = arith.constant dense<0x7F800000> : tensor<32x32xf32>
CHECK: %[[C_MASK:.*]] = arith.constant dense<-65536> : tensor<32x32xi32>
Expand Down Expand Up @@ -4858,7 +4858,7 @@ ENTRY e {
}
)";
TritonGemmConfig config(32, 32, 32, 1, 1, 1);
ASSERT_OK(
TF_ASSERT_OK(
CreateTritonIrAndFileCheck(kHloText, config, EmitMatMul, "triton_dot", R"(
CHECK: %[[INFINITY:.*]] = arith.constant dense<0x7F800000> : tensor<32x32xf32>
CHECK: %[[C_MASK:.*]] = arith.constant dense<-65536> : tensor<32x32xi32>
Expand Down

0 comments on commit 699f6c6

Please sign in to comment.