Repository navigation
enable single precision build for JCSDA-internal/MPAS-Model - #27
Conversation
+ "FFLAGS_OPT = -O3 -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form -fallow-argument-mismatch -fallow-invalid-boz"
| "CXX_SERIAL = g++" \ | ||
| "FFLAGS_PROMOTION = -fdefault-real-8 -fdefault-double-8" \ | ||
| "FFLAGS_OPT = -O3 -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form" \ | ||
| "FFLAGS_OPT = -O3 -m64 -ffree-line-length-none -fconvert=big-endian -ffree-form -fallow-argument-mismatch -fallow-invalid-boz" \ |
There was a problem hiding this comment.
For what it's worth, the current MPAS v7.3 release doesn't require the -fallow-argument-mismatch -fallow-invalid-boz flags when building with the GNU 9, 10, and 11 compilers. See, e.g., PR MPAS-Dev#736 .
There was a problem hiding this comment.
Thank you Michael! @metdyn, could you apply that same change in this branch, then remove the change to Makefile? Eventually we need to merge MPASv7.3 into our fork(s).
There was a problem hiding this comment.
@mgduda: that is a good fix:
integer, parameter:: bigint = int(O'17777777777')
I will make corresponding changes to this set of code deposit. Thanks for letting us know!
|
An explicit question: General description: so that |
|
@metdyn I'm not sure that I understand your last question. Are you interested in C-Fortran interoperability of Fortran type-bound procedures? Or is the question how to be able to switch between |
I intend to ask
Yes, I am interested in C-Fortran interoperability of Fortran type-bound procedures. |
My error in using the word switch. It is about either turn off |
…777777') doesn't require the -fallow-argument-mismatch -fallow-invalid-boz flags when building with the GNU 9, 10, and 11 compilers. o Remove the flags in Makefile
liujake
left a comment
There was a problem hiding this comment.
Some of PR message looks outdated with recent success of mpas-jedi single precision build. Need to update.
|
@liujake You are right. I am updating the PR message. |
|
Will you check if I am on the authorized user list to merge? (Merging is blocked) |
|
@metdyn, I just added you with write privileges. |
|
@jjguerrette Thanks, but seems that something is still missing -- merging is blocked. |
|
That's strange. People with write access to mpas-jedi can merge, so I assumed it would be the same here. Did you try closing your browser and re-opening? Maybe deleting cookies? |
|
I think I figured out what is different with mpas-jedi. I just added the JCSDA-internal/mpas team as having PR merge ability. |
|
@jjguerrette I have restarted the mac. The same message appears: |
|
I just merged it for you. |
|
That works, thanks! |
|
@metdyn, I think the problem was that I forget to click the "Save Changes" button. I just made the same change and clicked the button. Hopefully it works for you and others next time. |
|
@JJ, good you figured it out. It happens and hope it’s all good now!
… On May 27, 2022, at 1:20 PM, JJ Guerrette ***@***.***> wrote:
@metdyn, I think the problem was that I forget to click the "Save Changes" button. I just made the same change and clicked the button. Hopefully it works for you and others next time.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Description This PR accompanies JCSDA-internal/mpas-jedi#728. It solves single precision build for MPAS-Model: issue #26 To build source env-setup/gnu-openmpi-cheyenne.sh set(MPAS_DOUBLE_PRECISION "OFF" CACHE STRING ....) in mpas-bundle/CMakeLists.txt ecbuild (cmake); make Modified files M CMakeLists.txt M Makefile M cmake/PackageConfig.cmake.in
Description
This PR accompanies JCSDA-internal/mpas-jedi#728.
It solves single precision build for MPAS-Model: issue #26
To build
source env-setup/gnu-openmpi-cheyenne.sh
set(MPAS_DOUBLE_PRECISION "OFF" CACHE STRING ....) in mpas-bundle/CMakeLists.txt
ecbuild (cmake); make
Modified files
M CMakeLists.txt
M Makefile
M cmake/PackageConfig.cmake.in