-
Notifications
You must be signed in to change notification settings - Fork 102
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
Feature/hisq fgi #1368
Open
cpviolator
wants to merge
5
commits into
develop
Choose a base branch
from
feature/hisq_fgi
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/hisq fgi #1368
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
eaf6616
first try at FGI interface in QUDA for MILC; code compiles, but gives…
walkloud 71410b7
FGI runs with incorrect results and no gauge deletion. Need to get co…
cpviolator 3c0bf55
Lots of comments and gauge copying... needs a lot of clean up but wor…
cpviolator 83d64d1
Remove comments and print statements, clean memory stack on exit
cpviolator 7a2d5dc
Merge remote-tracking branch 'origin/develop' into feature/hisq_fgi
cpviolator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,8 @@ extern "C" { | |
int return_result_gauge; /**< Return the result gauge field */ | ||
int return_result_mom; /**< Return the result momentum field */ | ||
|
||
int use_fgi; /**< add FGI terms */ | ||
|
||
size_t gauge_offset; /**< Offset into MILC site struct to the gauge field (only if gauge_order=MILC_SITE_GAUGE_ORDER) */ | ||
size_t mom_offset; /**< Offset into MILC site struct to the momentum field (only if gauge_order=MILC_SITE_GAUGE_ORDER) */ | ||
size_t site_size; /**< Size of MILC site struct (only if gauge_order=MILC_SITE_GAUGE_ORDER) */ | ||
|
@@ -1373,6 +1375,18 @@ extern "C" { | |
*/ | ||
void momResidentQuda(void *mom, QudaGaugeParam *param); | ||
|
||
/** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some punctuation in this comment might be nice :P |
||
* For the FGI HMC step | ||
* make a copy of the gauge field | ||
* restore the gauge field | ||
* Zero out the momResident field (after making a copy) | ||
* and restore the momResident field | ||
*/ | ||
void copyGaugeQuda(); | ||
void restoreGaugeQuda(); | ||
void momResidentZeroQuda(); | ||
void momResidentRestoreQuda(); | ||
|
||
/** | ||
* Compute the gauge force and update the momentum field | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,6 +124,7 @@ void printQudaGaugeParam(QudaGaugeParam *param) { | |
P(use_resident_mom, 0); | ||
P(make_resident_gauge, 0); | ||
P(make_resident_mom, 0); | ||
P(use_fgi, 1);// FGI: This needs to be 0, and set to 1 with MILC/QUDA interface | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be set back to |
||
P(return_result_gauge, 1); | ||
P(return_result_mom, 1); | ||
P(gauge_offset, 0); | ||
|
@@ -135,6 +136,7 @@ void printQudaGaugeParam(QudaGaugeParam *param) { | |
P(use_resident_mom, INVALID_INT); | ||
P(make_resident_gauge, INVALID_INT); | ||
P(make_resident_mom, INVALID_INT); | ||
P(use_fgi, INVALID_INT);// FGI: This needs to be 0, and set to 1 with MILC/QUDA interface | ||
P(return_result_gauge, INVALID_INT); | ||
P(return_result_mom, INVALID_INT); | ||
P(gauge_offset, (size_t)INVALID_INT); | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this should be a
bool
instead? (Note that I'm going to killQudaBoolean
at some point, and replace it withbool
- this is fine sincebool
is supported on C99 which we require anyway for the QUDA C interface.)