-
Notifications
You must be signed in to change notification settings - Fork 18
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
Compiling MONC #20
Comments
Leif, Steef I'll set out the Archer GNU compilation instructions in a file, this can be added to eventually, e.g. instructions for compiling with Cray, instructions for Leeds branch, etc. The makefiles appear very generic and don't have any Archer-specific elements as far as I can see. The modules that you load will be machine-dependent, of course. Cheers |
Thanks Ralph and Leif: there seems to be an explicit reference to compiling with CASIM in the makefile, which makes me think it should be possible to do this. Has anybody tried this already? From what I remember with MPIC, the cray libraries are typically just a bit faster than the GNU ones. |
Steef, yes see above - you compile casim then point to the casim base directory from within the monc makefile. Yes same with WRF - Cray is faster. |
Great, thanks both. Ok I think that means that
Does that mean that you both feel like we could stop using FCM and use the Makefile instead? Or do you think we should try maintaining both? Currently the automated tests here on github use fcm, but I would prefer to use the makefile instead to be honest as I find makefiles simpler. |
Hi all I have made a short readme (should be atached?) - to be added to over time - that describes the steps on Archer. I would personally prefer makefiles too, as you say, simpler! Plus, I have never used fcm. It doesn't appear to be installed on Archer (either by default or as a module) |
People who use the UM on Archer have access the "shared software": export UMDIR=/work/n02/n02/hum older versions do this also /work/n02/n02/hum/software/bin/fcm FCM 2017.10.0 (/fs2/y07/y07/umshared/software/fcm-2017.10.0) |
I looked back at some MONC work I did and saw that I had run MONC on Archer in April: My build is here: module load cray-netcdf-hdf5parallel
module load fftw
fcm make -F ./fcm-make - f ./fcm-make/monc-cray-cray.cfg Sorry if you needed that earlier. |
Thanks @MarkUoLeeds. So in summary: we know how to compile on ARCHER now, but the run doesn't create usable output? Is that reasonable interpretation? |
Quick one - Cray team on Archer are still updating the necessary libraries needed to compile/run MONC with Cray compiler (this is classed as an "in-depth query"). Something must have changed since April. (Note: it will actually compile with Cray , but fails at run-time). |
Meeting with Mark and Chris, 27/11/20 Had a very useful general chat about MONC and Archer. Mark doesn't have access to n02 yet but expects fcm to be available soon on n02 since the UM requires fcm. Chris noted problems with makefile dependencies on Leeds branch of Monc. Went through MONC compilation and execution (on screen): appears to compile; but crashes with errors - error messages don't shed much light and only 1 similar reference found via a google search. Errors at run-time are: WARNING: libu: memcpy AMD cpuid detection failed plus many of the following: Tried the following in the meeting:
Went through GNU compilation - throws up GNU error already encountered (related to Archer2 GNU being later than V4). This issue has been dealt with and Chris has placed a workaround (see model_core/src/components/registry.F90 etc), in |
@stevenleeds and @ralphburton I was thinking we should work out these issues around compiling MONC. I feel like the instructions for how to compile should come with the source code itself (not be available on a wiki or file download behind a login somewhere). I was surprised to learn that MONC can be compiled with the makefile in the source tree root as well as with
fcm
, the MONC documentation document from Todd doesn't mention the makefile.My questions I'd like to work out are:
Is the makefile approach to compiling MONC only for use on ARCHER?
Is it possible to couple MONC to CASIM with the makefile approach? We need CASIM for EUREC4A modelling (right?) so if it's not possible with the makefile then this needs resolving somehow
Do want to continue with both the makefile and fcm means of compiling MONC?
Are you happy with me adding a file somewhere describing the compilation process? I would like to write down both which prerequisite packages are required (i.e. which things to
module load
on ARCHER/ARC4) and what commands to actually run to do the compilation.The text was updated successfully, but these errors were encountered: