Skip to content

Commit

Permalink
[Tests] Check int8+int32 testcases in test_estimate_peak_flops_cpu (#…
Browse files Browse the repository at this point in the history
…16019)

Pytest param fixture for dtypes was not used resulting in these two test cases not beeing checked.
  • Loading branch information
PhilippvK authored Oct 31, 2023
1 parent c4c0a49 commit 5b561a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/unittest/test_roofline.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_estimate_peak_flops_cpu(dtype):
target = tvm.target.Target("llvm -mattr=+fma,+avx2")
dev = remote.device(str(target))
# This test uses vectorized instructions so we need a target that supports them
flops = tvm.utils.roofline.x86.estimate_peak_fma_vector_flops(target, dev, remote, "float32")
flops = tvm.utils.roofline.x86.estimate_peak_fma_vector_flops(target, dev, remote, dtype)
# Assume we can achieve 1 GFLOP/s per thread, which is 1 FLOP per cycle on a 1GHz cpu.
assert (
flops > 10**9 and flops < 10**14
Expand Down

0 comments on commit 5b561a6

Please sign in to comment.