Skip to content

Adapt CPU-JIT and Testsuite for MacOS on ARM

Frederik Hennig requested to merge fhennig/macos-and-arm into v2.0-dev

This MR adapts the cpu just-in-time-compiler and the testsuite to work correctly on MacOS on Apple Silicon (arm64). Furthermore, various small improvements to warnings, error handling, and testing are contributed.

CPU JIT

  • Replace -Ofast by -O3 -ffast-math for clang, since -Ofast is now deprecated
  • Extend AppleClangInfo compiler-info object for correct linkage against Python and OpenMP dynlibs
  • Add an option (used during testing) to re-raise non-fatal compiler warnings

Testsuite

  • Fix CPU JIT setups across the test suite to use the correct compiler info
  • Fix tests that didn't work / were executed wrongly on ARM64
  • Add MacOS-ARM64 CI testsuite task
  • Fix CUDA docker tags to select correct compute capabilities

Warnings

  • Fix stacklevel for various deprecation and user warnings
  • Instruct pytest to ignore deprecated modules to not raise warnings unnecessarily
Edited by Frederik Hennig

Merge request reports

Loading