-
Notifications
You must be signed in to change notification settings - Fork 120
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
Error with Fujitsu clang mode on Fugaku #661
Comments
Hi. You say no informative error message. But something appeared right? Did not say what kind of error? |
Hi. Sorry I missed some of the output files.
This is why I thought the initialization was complete but crashed immediately after entering the main loop.
for 1 process |
Hello, I worked on adapting Smilei on Fugaku few years ago. Unfortunately I can't access the system anymore. Is compiling in clang mode really important for you since you already have 2 solutions ? I can suggest to compile with the armclang compiler instead of the Fujitsu compiler that used to give decent performance on A64FX for us. Fugaku compiler was behind but it is possible that they catch up since then. This is a third alternative. Unfortunately I can't do more especially if you don't have more error output. Perhaps you can ask the system support. |
Hi, I was checking performance with different compilers for future large-scale simulations. Did you need anything special to compile when you tested a few years ago? I will proceed with what is available (or ask Fujitsu developers). Thank you for your advice. |
Sorry for my late reply. Please find below the configuration I have used for my tests : Spack Env
II. EnvironmentLogin nodes are Intel processors. You should use cross compilation or compile on a compute node. On compute nodesThe Fugaku super-computer relies on Spack for the most advanced libraries and tools. . /vol0004/apps/oss/spack/share/spack/setup-env.sh You can check available libraries by doing: spack find -xl <lib name> Check regularly the last library versions because Spack is regularly updated. spack find -xl python
spack find -xl hdf5 . /vol0004/apps/oss/spack/share/spack/setup-env.sh
#Python
spack load /7sz6cn4
#Numpy
spack load /q6rre3p
#HDF5
spack load /l53s4lp
export SMILEICXX=mpiFCCpx
export HDF5_ROOT=/vol0004/apps/oss/spack-v0.16.2/opt/spack/linux-rhel8-a64fx/fj-4.6.1/hdf5-1.10.7-hza6f4rwqjon62z4q7a6vavtrkafvz35/ Use CompilationTrad modeThe trad mode uses the Fujitsu flags to compile the code. #!/bin/sh -x
#PJM -N "smilei"
#PJM -L "node=1" # Assign node 1 node
#PJM -L "rscgrp=small" # Specify resource group
#PJM -L "elapse=00:30:00" # Elapsed time limit 1 hour
#PJM -x PJM_LLIO_GFSCACHE=/vol0004
#PJM -s
source ~/env/smilei_env
mpiFCC -show
make -j 48 config="verbose" machine="fugaku_fujitsu_tm" See this page for more information: https://www.fugaku.r-ccs.riken.jp/doc_root/en/user_guides/lang_latest/FujitsuCompiler/C%2B%2B/tradmode.html Clang modeIn clang mode, the Fujitsu compiler uses the same as the flags Clang compiler. #!/bin/sh -x
#PJM -N "smilei"
#PJM -L "node=1" # Assign node 1 node
#PJM -L "rscgrp=small" # Specify resource group
#PJM -L "elapse=00:30:00" # Elapsed time limit 1 hour
#PJM -x PJM_LLIO_GFSCACHE=/vol0004
#PJM -s
source ~/env/smilei_env
mpiFCC -show
make -j 48 config="verbose" machine="fugaku_fujitsu_cm" See this page for more information: https://www.fugaku.r-ccs.riken.jp/doc_root/en/user_guides/lang_latest/FujitsuCompiler/C%2B%2B/clangmode.html IV. ExecutionSingle node execution#!/bin/bash
#PJM -L "node=1" # 4 nodes
#PJM -L "rscgrp=small" # Specify resource group
#PJM -L "elapse=10:00"
#PJM --mpi "max-proc-per-node=4" # Upper limit of number of MPI process created at 1 node
#PJM -x PJM_LLIO_GFSCACHE=/vol0004
#PJM -s
source ~/env/smilei_env
export PLE_MPI_STD_EMPTYFILE=off # Do not create a file if there is no output to stdout/stderr.
export OMP_NUM_THREADS=12
export OMP_SCHEDULE="static"
rm *.out.*
rm *.err.*
cp ~/smilei/develop-mat/smilei .
cp ../template.py input.py
# execute job
mpiexec -n 4 ./smilei input.py # Execute with maximum number of available process |
I am having a problem with running Smilei on Fugaku with the Fujitsu compiler clang mode.
I am using the latest version of Smilei (4.8) and the latest version of the Fujitsu compiler (4.10.0).
The results were the same with some of the older versions of Fujitsu compilers.
The compile job script and the environment I use are the following.
Job script:
smilei_env:
Smilei compiles, however, a simple test problem with uniform plasma crashes immediately after "Time-Loop started:".
Output files indicate that initialization is complete.
I did not find any informative error messages.
I have tried trad mode with
make -j 4 config=no_mpi_tm machine=fugaku_fujitsu_tm
(make -j 48 fails with Make Error 9)
This compiles and runs without any errors.
I also tried the GCC compiler on Fugaku, which also works (even with -j 48).
Would you help me with the clang mode?
The text was updated successfully, but these errors were encountered: