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

Replacing explicit OpenACC with build variable. #9

Open
wants to merge 1 commit into
base: atmosphere/gpu
Choose a base branch
from

Conversation

cponder
Copy link

@cponder cponder commented Oct 17, 2017

(This goes with the analogous change to src/framework/Makefile. I thought the pull-requests were supposed to bundle these changes....)
I think it's a mistake to embed explicit flags like "-ta=tesla:cc60" in the deep Makefile's. It takes some work to figure out what needs to be changed, so it's too easy to lose track of the individual changes, and get the configuration files into an inconsistent state.
I recommend adding this $(OPENACC) variable to the Makefile instead. I'll be setting it in my top-level build-script so I can manage it as part of my "thin layer".
In the top-level Makefile, you may want to duplicate the "pgi" target as "pgi-openacc" and add this line

OPENACC = -acc -Minfo=accel -ta=tesla:cc60,cuda8.0

I recommend cc60 & cuda8.0 for now because we're working mainly with Pascal's and the cuda9.0 is too new to rely on. On the other hand I won't be using the Makefile setting, I'll be controlling the $(OPENACC) variable from my top-level build script.

I think it's a mistake to embed explicit flags like "-ta=tesla:cc60" in the deep Makefile's. It takes some work to figure out what needs to be changed, so it's too easy to lose track of the individual changes, and get the configuration files into an inconsistent state.
I recommend adding this $(OPENACC) variable to the Makefile instead. I'll be setting it in my top-level build-script so I can manage it as part of my "thin layer".
In the top-level Makefile, you may want to duplicate the "pgi" target as "pgi-openacc" and add this line

OPENACC = -acc -Minfo=accel -ta=tesla:cc60,cuda8.0

I recommend cc60 & cuda8.0 for now because we're working mainly with Pascal's and the cuda9.0 is too new to rely on. On the other hand I won't be using the Makefile setting, I'll be controlling the $(OPENACC) variable from my top-level build script.
@cponder cponder closed this Oct 17, 2017
@cponder cponder reopened this Oct 17, 2017
mgduda pushed a commit that referenced this pull request Jul 26, 2019
This merging PR #9 to the code
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.

1 participant