-
Notifications
You must be signed in to change notification settings - Fork 255
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
MPI_Type_contiguous Encounters Invalid Count #2227
Comments
MPI_Type_contiguous count number can not be negative. There is no direct call of MPI_Type_contiguous inside model code base. @spanNOAA can you run exactly same canned case on other machine like orion/hercules? so we can see if we can isolate a root cause or mpi package installation issue or not? |
@junwang-noaa @DusanJovic-NOAA @spanNOAA I don't know if compiling with -traceback might be a good option to trace in this case. |
Just wanted to post here that I also got this error as did @ChristianBoyer-NOAA from the physics team trying to run a C768 test case from the g-w (develop branch as of today). |
Do they also see this error on Hera? Could it be related to an update of the OS? Has anyone made a successful C768 run on Hera recently? |
We do compile the code with -traceback flag by default. |
@DusanJovic-NOAA - @ChristianBoyer-NOAA has not been able to successfully run C768 since the rocky8 transition. I just ran a case and got the same error and then saw this issue that reported the same problem. I have asked a few people and I don't know if anyone has successfully run C768 on hera since the rocky8 transition. |
I can run the global static nest configuration with both my modified global-workflow and the HAFS workflow. I haven't tried a globe without a nest. EDIT: Those are both atmosphere-only forecast-only cases. |
Just wanted to post here that I got the same issue when I ran the C768 in Rocky 8 Hera. This is the job submit directory: /scratch2/BMC/gsd-fv3-dev/NCEPDEV/global/Kate.Zhang/fv3gfs/expdir/TC768 @JessicaMeixner-NOAA @DusanJovic-NOAA @spanNOAA @junwang-noaa |
Here are the relevant lines of @zhanglikate's log file. EDIT: Here is just the error message:
Expand to see modules, versions, prologue, epilogue, etc.
|
@XiaqiongZhou-NOAA Please see issue here. My understanding is that you got the same error on wcoss2 and Orion. Would you please try the 3/11 model version (5b62e1a) on wcoss2 to see if you still got this error? Thanks From Kate: Abort(1007294466) on node 2304 (rank 2304 in comm 0): Fatal error in PMPI_Type_contiguous: Invalid count, error stack: The log files are here: |
My successful runs use an older version of the scripts, but they do use the latest code. |
@SamuelTrahanNOAA are you running the C768 global in your global static nest configuration case? |
Judy has a GSL version working before, which was based on the EMC Jan2024 version: https://github.com/NOAA-GSL/global-workflow/tree/gsl_ufs_rt . However, it can not run after the OS transition to Rocky 8.
|
I've attempted the canned case on Orion, and unfortunately, the same issue persists. Specifically, it still occurs on processor 2304. However, I have no problem with running C384. |
I've run the C96, C192, and C384 with the latest version of my workflow. I have not merged the latest develop scripts. I'm still using older scripts, but I am using newer ufs-weather-model code. My code has two bug fixes, but they are unlikely to be related to this problem (#2201) |
Has anyone opened a hera help desk ticket on this issue by any chance? |
GSL real time experiments ran the C768 case until 4/3 when the OS completely updated to Rocky8: /scratch1/BMC/gsd-fv3/rtruns/UFS-CAMsuite. Here is the vesion that works for C768 in our realtime: |
@kayeekayee Thanks for the information. So model version on Jan 29, 2024 works fine. I am wondering anyone runs C768 model with a more recent version. Since the same error showed up on wcoss2 and orion, I am thinking if it's the code updates that cause the problem. |
I'm able to run with this version of the code: My test is a C768 resolution globe rotated and stretched, with a nest added inside one global tile. (The script calls it CASE=W768.) It won't run without the fixes in that PR due to some bugs in the nesting framework which break GFS physics. EDIT: I can give people instructions on how to run the nested global configuration if you want to try my working test case. It uses the global-workflow, but an older version, and forecast-only. |
Thanks, @SamuelTrahanNOAA. How many tasks are you using for the C768 global domain? @spanNOAA @JessicaMeixner-NOAA @zhanglikate @XiaqiongZhou-NOAA Would you like to try Sam's version to build the executable and see if you can run the C768 test case? |
I'm using 2 threads. This is the task geometry:
I don't know why the write groups need 27 compute nodes each, but they run out of memory if I give them less, even without the post. The reason for this vast 210 node task geometry is that it finishes a five day forecast in under eight hours. |
@ChristianBoyer-NOAA would you have time to try this? I will not have time to try this until next week, but will try it then. |
Sure. I can give a try. Please let me know how to test it in the global
workflow environment. Thanks.
Kate
…On Mon, Apr 8, 2024 at 6:27 PM Jun Wang ***@***.***> wrote:
Thanks, @SamuelTrahanNOAA <https://github.com/SamuelTrahanNOAA>. How many
tasks are you using for the C768 global domain?
@spanNOAA <https://github.com/spanNOAA> @JessicaMeixner-NOAA
<https://github.com/JessicaMeixner-NOAA> @zhanglikate
<https://github.com/zhanglikate> @XiaqiongZhou-NOAA
<https://github.com/XiaqiongZhou-NOAA> Would you like to try Sam's
version to build the executable and see if you can run the C768 test case?
—
Reply to this email directly, view it on GitHub
<#2227 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APJPDRDSYR22A57RJGTPKTDY4MYWJAVCNFSM6AAAAABFYBVFGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTHEZDSNBVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I doubt my PR will fix the problem, but you can try it if you wish. It should be a drop-in replacement for the sorc/ufs_model.fd directory in the global-workflow. |
@SamuelTrahanNOAA Can you send your code path to me? Thanks. |
I wonder if it is related to the physics suite? Sam is running the global_nest_v1 suite, I'm not sure which physics suite GSL is running in their experiments referenced above at C768, but it would be interesting to know if it is specifically the GFS physics suite? |
No.
Also: The crash is coming from the write component, not the compute ranks. |
Ok, thanks for clarifying! |
It is better for you to compile it yourself. This might work: cd global-workflow/sorc/ufs_model.fd
git stash
git remote add sam https://github.com/SamuelTrahanNOAA/ufs-weather-model
git fetch sam
git checkout -b nesting-fixes sam/nesting-fixes
git submodule sync
git submodule update --init --recursive --force
cd ..
./build_ufs.sh |
The failure was a negative length. Is it possible something is using signed 32-bit integers for lengths and a communication length went over 2**31? |
If using -1 is appropriate for all resolutions, we can make that change in global workflow pretty quickly. Right now we are using a multiple of the resolution:
|
Can this also be applied to other low resolutions, e.g. C384 or C96? Thanks. |
If scripts know the ideal chunking then specifying that chunking would be the best option. Using |
@SamuelTrahanNOAA Thanks for figuring out a solution. Since this was working before, I am wondering what has been changed. |
Try this at the top of local restile=${CASE:1}
if [[ "${restile}" -gt 384 ]] ; then
restile=384
fi EDIT: I haven't tried that myself. The point is to try a smaller chunk size so it is likely to fit under the unknown constraint. |
I made a change in fv3atm which will allow us to use both compression and relatively large chunk sizes. The change limits the value of kchunk3d to the minimum value of user specified kchunk3d value in model_configure (most of the time it's 1) and actual number of vertical levels for a given field. Can you please rerun your tests with the code from 'fix_kchunk3d' branch in my ufs-wm and fv3atm forks: https://github.com/DusanJovic-NOAA/ufs-weather-model/tree/fix_kchunk3d |
I'm running this now. I had to merge my nesting fixes, but it has already passed the failure point. My job takes about 7.8 hours, so I'll report back later. |
@DusanJovic-NOAA - I merged your branch into PR #2201 because I cannot continue my work without your changes. (That PR has other bug fixes.) I've updated my PR to indicate your fix is present as well. I hope this is okay. If you want to do a separate PR, please let me know when you have it so I can reference it in #2202. I'm rerunning regression tests in the combined PR now. |
Thank you for merging it into your PR, we do not need separate PR. Hopefully #2201 will be merged soon. |
@DusanJovic-NOAA @SamuelTrahanNOAA Thanks for fixing the issue! |
Can someone please test this pull request to confirm it fixes the problem? I'd like someone else to confirm that branch works ASAP. Once they do, I'll ask @jkbk2004 and his friends to move the PR to the top of the queue. Dusan's fix is in there, plus some fixes to other bugs. It is up to date with the head of develop. |
I can help with C768. Please let me know the commit number to confirm that I am testing the correct version.
… On Apr 11, 2024, at 8:24 AM, Samuel Trahan (NOAA contractor) ***@***.***> wrote:
Can someone please test this pull request to confirm it fixes the problem?
#2201 <#2201>
I'd like someone else to confirm that branch works ASAP. Once they do, I'll ask @jkbk2004 <https://github.com/jkbk2004> and his friends to move the PR to the top of the queue.
Dusan's fix is in there, plus some fixes to other bugs. It is up to date with the head of develop.
—
Reply to this email directly, view it on GitHub <#2227 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APJPDRFFL4RCGXE5SZYHKCDY42MLHAVCNFSM6AAAAABFYBVFGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZHAYTMNJZG4>.
You are receiving this because you were mentioned.
|
The PR to fix this has been moved to the top of the queue. @DusanJovic-NOAA @zhanglikate @kayeekayee @spanNOAA @ChristianBoyer-NOAA - Please test this branch ASAP to confirm it fixes your problem. You can clone the branch like so:
It will be merged soon, and we want to make sure it works. Hashes are:
|
I finished my testing for more than 84 hrs using the April 2 version global workflow, which is working well. Thanks for all your helps. @SamuelTrahanNOAA @DusanJovic-NOAA @junwang-noaa @WalterKolczynski-NOAA |
Anyone who can confirm the PR 2201 version works, please do a review and approve here: |
I can not click the reviewer part, may need someone to add me. Thanks.
Kate
… On Apr 11, 2024, at 9:30 AM, Samuel Trahan (NOAA contractor) ***@***.***> wrote:
Anyone who can confirm the PR 2201 version works, please do a review and approve here:
#2201 <#2201>
—
Reply to this email directly, view it on GitHub <#2227 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APJPDRAL77SAFHIFSEIEQ4TY42UANAVCNFSM6AAAAABFYBVFGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZHE3DMOJTGE>.
You are receiving this because you were mentioned.
|
You don't need to click the reviewer part. If you go to this page: https://github.com/ufs-community/ufs-weather-model/pull/2201/files You should see a green "Review Changes" button in the upper left. |
I did. Thanks very much.
… On Apr 11, 2024, at 9:36 AM, Samuel Trahan (NOAA contractor) ***@***.***> wrote:
You don't need to click the reviewer part.
If you go to this page:
https://github.com/ufs-community/ufs-weather-model/pull/2201/files <https://github.com/ufs-community/ufs-weather-model/pull/2201/files>
You should see a green "Review Changes" button in the upper left.
—
Reply to this email directly, view it on GitHub <#2227 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APJPDRC4JSBRNUIJTA3Z663Y42UZHAVCNFSM6AAAAABFYBVFGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZHE4DCMRUGQ>.
You are receiving this because you were mentioned.
|
@SamuelTrahanNOAA - I am unable to to clone the branch. It gives me a permissions/access error that I have pasted below. I'm not sure why it won't allow me to clone it. The changes were working when I changed the files myself in my workflow yesterday and this morning. Once I can clone it, I will also run a test case immediately. Cloning into 'ufs-weather-model'... Please make sure you have the correct access rights and the repository exists. |
Sorry, I typed "ssh://git@" as a force of habit. You can use "https://" instead.
|
Description
An MPI-related fatal error occurred during the execution of the code, leading to job cancellation.
To Reproduce:
Compilers: intel/2022.1.2, impi/2022.1.2, stack-intel/2021.5.0, stack-intel-oneapi-mpi/2021.5.1
Platform: Hera (Rocky 8)
Additional context
The problem specifically arises on the 2304th core.
Output
ufs_model_crash.log
The text was updated successfully, but these errors were encountered: