Skip to content

Conversation

@umar456
Copy link
Member

@umar456 umar456 commented Nov 22, 2022

The Intel compiler uses fast math by default in order to perform some optimization. These
optimizations causes some of our tests to fail. This PR handles several of the issues
brought up with the new compiler

Description

  • Add AF_WITH_FAST_MATH to options which enable the use of fast math flags in all compilers. This is off by default
  • Fix several warnings with clang and icx
  • Refactor GitHub actions so that the builds only execute if clang-format and docs pass
  • Add additional compilers to GitHub actions

Changes to Users

  • Users can now enable AF_WITH_FAST_MATH for additional performance at the cost of precision

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • [ ] Functions added to unified API
  • [ ] Functions documented

Copy link
Member

@9prady9 9prady9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did a quick pass, lgtm

@umar456 umar456 force-pushed the github_actions_compiler branch from 2f3b914 to 384e52b Compare November 22, 2022 07:28
@umar456
Copy link
Member Author

umar456 commented Nov 22, 2022

Addressed all feedback.

@umar456 umar456 force-pushed the github_actions_compiler branch from 384e52b to d17c212 Compare November 22, 2022 07:30
@umar456 umar456 merged commit 65e6740 into arrayfire:master Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants