Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.5.0

Issue ID

BUR-1022

Regression

No

[Burst] CPU feature checks are ignored

Package: Burst

-

How to reproduce:
1. Open the attached project ("featureCheck.zip")
2. Open Jobs > Burst > Open Inspector
3. Inspect "Guards_Not_Considered_Across_Functions.Job"
4. Set CPU feature to AVX2
5. Notice no compilation errors
6. Set CPU feature to X86_SSE2

Expected results: No compilation errors, because there is an if clause with "Avx.IsAvxSupported" used in the Job
Actual results: Compilation errors for other selected CPU features

Reproducible with: Burst 1.4.3, 1.5.0-pre.3 (2020.2.2f1-dots.4, 2021.1.0b5, 2021.2.0a3)

  1. Resolution Note:

    This is by design - we are not going to do calltree expansions on the intrinsic guards, as it is incredibly expensive and means we'd have to potentially visit each function N times for each combination of intrinsics used.

    The user will have to re-guard in the sub function.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.