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

Bugfix for issue #153 #154

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

Bugfix for issue #153 #154

wants to merge 1 commit into from

Conversation

mjklemm
Copy link
Collaborator

@mjklemm mjklemm commented Sep 19, 2019

While working on the new offload code for TCE CCSD(T), I have
removed some of the global variables that aparentely are being
used for MRCC. This commit reverts these changes and brings
the code back to a compilable state.

While working on the new offload code for TCE CCSD(T), I have
removed some of the global variables that aparentely are being
used for MRCC.  This commit reverts these changes and brings
the code back to a compilable state.
@edoapra
Copy link
Collaborator

edoapra commented Sep 19, 2019

@mjklemm This still does not make a successfull link when USE_OFFLOAD=1 & MRCC_METHODS=1

tce_mrcc_ccsdpt_subg.F:(.text+0x43c): undefined reference to `offl_alloc_'
tce_mrcc_ccsdpt_subg.F:(.text+0x928): undefined reference to `offl_zerofill_'
tce_mrcc_ccsdpt_subg.F:(.text+0x159f): undefined reference to `offl_free_'

@mjklemm
Copy link
Collaborator Author

mjklemm commented Sep 20, 2019

What's your preference here? Rip out the code or make it functional again?

@chiensh
Copy link

chiensh commented Sep 20, 2019 via email

@edoapra
Copy link
Collaborator

edoapra commented Sep 20, 2019

What's your preference here? Rip out the code or make it functional again?

@mjklemm We should use the same approach taken for ccsd_t
the mrcc offload was pretty much a clone of the ccsd_t offload

@mjklemm
Copy link
Collaborator Author

mjklemm commented Sep 20, 2019

@mjklemm We should use the same approach taken for ccsd_t
the mrcc offload was pretty much a clone of the ccsd_t offload

OK, I can do that, but that will take a few days to work through the code. Would have a test case for me (pls send via email) that I can use to make sure that I'm not breaking anything? I would need something quick (less than 1-2 minutes).

@edoapra
Copy link
Collaborator

edoapra commented Sep 20, 2019

@chiensh
Dominic,
The fix I just pushd should address this problem ec60ebb

It still won’t link when USE_OFFLOAD=0, unless comment out line 195 in tce_mrcc_ccsdpt_subg.F, which calls offs_zerofill regardless the value of USE_OFFLOAD 190 #if 0 191 call offl_zerofill(dbl_mb(k_singles),triplesx_mxlgth) 192 #endif 193 194 call dcopy(triplesx_mxlgth, 0.0d0, 0, dbl_mb(k_doubles), 1) 195 call offl_zerofill(dbl_mb(k_doubles),triplesx_mxlgth) 196 c -----------

@edoapra
Copy link
Collaborator

edoapra commented Sep 20, 2019

This test takes less than a minute on a single process run on a Xeon W-2102
mrcc.nw.txt
mrcc.out.txt

OK, I can do that, but that will take a few days to work through the code. Would have a test case for me (pls send via email) that I can use to make sure that I'm not breaking anything? I would need something quick (less than 1-2 minutes).

@edoapra edoapra force-pushed the master branch 2 times, most recently from 790a699 to 4524b64 Compare April 13, 2022 23:42
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