Skip to content

Selectively disable fused-multiply add (FMA) instructions on GPU? #2120

Answered by WeiqunZhang
BenWibking asked this question in Q&A
Discussion options

You must be logged in to vote

In GNU Make, the rule for compiling .cpp files is here https://github.com/AMReX-Codes/amrex/blob/development/Tools/GNUMake/Make.rules#L197. It's a generic rule. You can add your own rule in your own make file to override it for a specific file. For example,

$(objEXETempDir)/riemann.o: riemann.cpp
    $(CXX) ...... 

@ax3l can probably tell you the proper way of doing this in cmake.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@BenWibking
Comment options

BenWibking Jun 23, 2021
Collaborator Author

@BenWibking
Comment options

BenWibking Jun 23, 2021
Collaborator Author

@ax3l
Comment options

Answer selected by BenWibking
Comment options

You must be logged in to vote
5 replies
@BenWibking
Comment options

BenWibking Jun 23, 2021
Collaborator Author

@BenWibking
Comment options

BenWibking Jun 23, 2021
Collaborator Author

@BenWibking
Comment options

BenWibking Jun 23, 2021
Collaborator Author

@maxpkatz
Comment options

@BenWibking
Comment options

BenWibking Jun 24, 2021
Collaborator Author

Comment options

You must be logged in to vote
1 reply
@BenWibking
Comment options

BenWibking Jun 23, 2021
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants