Skip to content

Compiler flag adjustments for Intel Compiler - #3334

Merged
umar456 merged 4 commits into
arrayfire:masterfrom
umar456:github_actions_compiler
Nov 22, 2022
Merged

umar456 merged 4 commits into
arrayfire:masterfrom
umar456:github_actions_compiler

Conversation

@umar456

@umar456 umar456 commented Nov 22, 2022

Copy link
Copy Markdown
Member

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

@9prady9 9prady9 left a comment

Copy link
Copy Markdown
Member

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

Comment thread src/backend/common/TemplateArg.hpp
Comment thread test/testHelpers.hpp Outdated
@umar456
umar456 force-pushed the github_actions_compiler branch from 2f3b914 to 384e52b Compare November 22, 2022 07:28
@umar456

umar456 commented Nov 22, 2022

Copy link
Copy Markdown
Member Author

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