Skip to content

Commit

Permalink
Remove printf used for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CongMa13 committed Sep 9, 2024
1 parent 69d4bd8 commit c82ba19
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions test/unit/cross_lane_ops_test/device/blend_ops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ namespace rocwmma
CrossLaneOp::select3()>(input0, input1));
DataT output = rocwmma::Blend::Driver<CrossLaneOp>::exec(input0, input1);

// printf("op perm byte (%d, %d, %d, %d), input0 %lx, input1 %lx, expect %lx, output %lx\n", CrossLaneOp::select0(), CrossLaneOp::select1(), CrossLaneOp::select2(), CrossLaneOp::select3(), (uint64_t)input0, (uint64_t)input1, (uint64_t)expect, (uint64_t)output);
return output != expect;
}

Expand All @@ -98,7 +97,6 @@ namespace rocwmma
getBlendZipExpect<CrossLaneOp::groupSize()>(input0, input1, threadIdx.x));
DataT output = rocwmma::Blend::Driver<CrossLaneOp>::exec(input0, input1);

// printf("op zip (%d), input0 %d, input1 %d, expect %d, output %d\n", CrossLaneOp::groupSize(), input0, input1, expect , output );
return output != expect;
}

Expand Down
7 changes: 0 additions & 7 deletions test/unit/cross_lane_ops_test/device/dpp_ops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ namespace rocwmma
= rocwmma::Dpp::Driver<CrossLaneOp, WriteRowMask, WriteBankMask, BoundCtrl>::exec(
input, makeValueFromU32<DataT>(prev));

// printf("op 0, input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand All @@ -162,7 +161,6 @@ namespace rocwmma
= rocwmma::Dpp::Driver<CrossLaneOp, WriteRowMask, WriteBankMask, BoundCtrl>::exec(
input, makeValueFromU32<DataT>(prev));

// printf("op 0, input %lx, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %lx, output %lx\n", (uint64_t)input , WriteRowMask , WriteBankMask , BoundCtrl, (uint64_t)expect , (uint64_t)output );
return output != expect;
}

Expand All @@ -189,7 +187,6 @@ namespace rocwmma
= rocwmma::Dpp::Driver<CrossLaneOp, WriteRowMask, WriteBankMask, BoundCtrl>::exec(
input, makeValueFromU32<DataT>(prev));

// printf("op (%d, %d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::GROUP_SIZE, CrossLaneOp::OP_DIR, CrossLaneOp::OP_DIST, input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand All @@ -216,7 +213,6 @@ namespace rocwmma
= rocwmma::Dpp::Driver<CrossLaneOp, WriteRowMask, WriteBankMask, BoundCtrl>::exec(
input, makeValueFromU32<DataT>(prev));

// printf("op (%d, %d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::GROUP_SIZE, CrossLaneOp::OP_DIR, CrossLaneOp::OP_DIST, input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand Down Expand Up @@ -254,7 +250,6 @@ namespace rocwmma
= rocwmma::Dpp::Driver<CrossLaneOp, WriteRowMask, WriteBankMask, BoundCtrl>::exec(
input, makeValueFromU32<DataT>(prev));

// printf("op (%d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::SELECT_0, CrossLaneOp::SELECT_1, input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand All @@ -278,7 +273,6 @@ namespace rocwmma
= rocwmma::Dpp::Driver<CrossLaneOp, WriteRowMask, WriteBankMask, BoundCtrl>::exec(
input, makeValueFromU32<DataT>(prev));

// printf("op (%d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::SELECT_0, CrossLaneOp::SELECT_1, input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand All @@ -302,7 +296,6 @@ namespace rocwmma
= rocwmma::Dpp::Driver<CrossLaneOp, WriteRowMask, WriteBankMask, BoundCtrl>::exec(
input, makeValueFromU32<DataT>(prev));

// printf("op (%d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::SELECT_0, CrossLaneOp::SELECT_1, input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}
} // namespace rocwmma
Expand Down
5 changes: 0 additions & 5 deletions test/unit/cross_lane_ops_test/device/permute_ops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ namespace rocwmma
getPermuteBlockBCastExpect<CrossLaneOp::ELEMENT_IDX, CrossLaneOp::GROUP_SIZE>(id));
DataT output = rocwmma::Permute::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d), input %d, expect %d, output %d\n", CrossLaneOp::GROUP_SIZE, CrossLaneOp::ELEMENT_IDX, input , expect , output );
return output != expect;
}

Expand All @@ -104,7 +103,6 @@ namespace rocwmma
CrossLaneOp::opDist()>(id));
DataT output = rocwmma::Permute::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d, %d), input %d, expect %d, output %d\n", CrossLaneOp::GROUP_SIZE, CrossLaneOp::opDir(), CrossLaneOp::opDist(), input , expect , output );
return output != expect;
}

Expand All @@ -121,7 +119,6 @@ namespace rocwmma
CrossLaneOp::opDist()>(id));
DataT output = rocwmma::Permute::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d, %d), input %d, expect %d, output %d\n", CrossLaneOp::GROUP_SIZE, CrossLaneOp::opDir(), CrossLaneOp::opDist(), input , expect , output );
return output != expect;
}

Expand All @@ -138,7 +135,6 @@ namespace rocwmma
CrossLaneOp::shift()>(id));
DataT output = rocwmma::Permute::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d, %d), input %lx, expect %lx, output %lx\n", CrossLaneOp::GROUP_SIZE, CrossLaneOp::vw(), CrossLaneOp::shift(), (long long)input , (long long)expect , (long long)output );
return output != expect;
}

Expand All @@ -161,7 +157,6 @@ namespace rocwmma
CrossLaneOp::shift()>(id, srcValues));
DataT output = rocwmma::Permute::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d, %d), input %llu, expect %llu, output %llu\n", CrossLaneOp::GROUP_SIZE, CrossLaneOp::vw(), CrossLaneOp::shift(), (long long)input , (long long)expect , (long long)output );
return output != expect;
}

Expand Down
5 changes: 0 additions & 5 deletions test/unit/cross_lane_ops_test/device/swizzle_ops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ namespace rocwmma
getSwizzleBCastExpect<CrossLaneOp::elementIdx(), CrossLaneOp::groupSize()>(id));
DataT output = rocwmma::Swizzle::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::select0(), CrossLaneOp::select1(), input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand All @@ -111,7 +110,6 @@ namespace rocwmma
= makeValueFromU32<DataT>(getSwizzleReverseExpect<CrossLaneOp::groupSize()>(id));
DataT output = rocwmma::Swizzle::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::select0(), CrossLaneOp::select1(), input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand All @@ -128,7 +126,6 @@ namespace rocwmma
CrossLaneOp::opDist()>(id));
DataT output = rocwmma::Swizzle::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::select0(), CrossLaneOp::select1(), input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand All @@ -155,7 +152,6 @@ namespace rocwmma
}
DataT output = rocwmma::Swizzle::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d), input %lx, expect %lx, output %lx\n", CrossLaneOp::select0(), CrossLaneOp::select1(), (uint64_t)input , (uint64_t)expect , (uint64_t)output );
return output != expect;
}

Expand All @@ -170,7 +166,6 @@ namespace rocwmma
DataT expect = makeValueFromU32<DataT>(getSwizzleSwapExpect<CrossLaneOp::groupSize()>(id));
DataT output = rocwmma::Swizzle::Driver<CrossLaneOp>::exec(input);

// printf("op (%d, %d), input %d, WriteRowMask %x, WriteBankMask %x, BoundCtrl %d, expect %d, output %d\n", CrossLaneOp::select0(), CrossLaneOp::select1(), input , WriteRowMask , WriteBankMask , BoundCtrl, expect , output );
return output != expect;
}

Expand Down

0 comments on commit c82ba19

Please sign in to comment.