Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added rules to remove unsupported compiler flags #2369

Open
wants to merge 1 commit into
base: SYCLomatic
Choose a base branch
from

Conversation

TejaX-Alaghari
Copy link
Contributor

Added CMake rules to remove unsupported compiler flags

  • prec_div
  • parallel
  • wd[warnings]

Comment on lines +15 to +17
string(APPEND CMAKE_C_FLAGS " -prec_div")
string(APPEND CMAKE_CXX_FLAGS " -parallel")
string(APPEND CMAKE_CXX_FLAGS " -wd188,186,144,913,556,858,597,177,1292,167,279,592,94,2722,3199")
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. These three options are not NVCC-specific options, which compiler uses those options?
  2. In my opinion, if it is only used in a specific application for a specific compiler, we can implement those migration rules as application-specific rules?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. These options are used by Intel Classical C Compiler (ICC) - ref
  2. I haven't found any other examples of apps using these flags yet

Copy link
Contributor

Choose a reason for hiding this comment

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

Then, I suggest that those migration rules should be implemented as application-specific rules.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's kind of migration knowledge, how about put it into a separate cmake_script_migration_rule_optional.yaml?

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