Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10321

[C++] Building AVX512 code when we should not

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: C++

      Description

      On https://github.com/autobrew/homebrew-core/pull/31, where we are packaging Arrow for an old macOS SDK version, we found what I believe are 2 different problems:

      1. The check for AVX512 support was returning true when in fact the compiler did not support it
      2. Even when we manually set the runtime SIMD level to less-than-AVX512, it was still trying to compile one of the AVX512 files, which failed. I added a patch that made that file conditional, but there's probably a proper cmake way to tell it not to compile that file at all

      cc Yibo Cai Antoine Pitrou

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                frank.du Frank Du
                Reporter:
                npr Neal Richardson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m