Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Production of parallel processing of surface data

weixinyu

weixinyu
Member
Dear all
Because it may be that I don't have enough memory on my computer, causing me to use this command. /mkmapdata.sh -r $GRIDNAME -f $GRIDFILE -t regional When I make a map of the surface data, it breaks at the last data, and I looked up related posts on the internet, and it said that parallel compilation can solve this problem.
So I tried parallel compilation, but I don't understand how parallel compilation should work, so I just modified the input command with
mpirun -np 10 . /mkmapdata.sh -r $GRIDNAME -f $GRIDFILE -t regional
I also modified the mkmapdata.sh file to include active=“NO”
It shows this problem, is it because I still don't have enough RAM? Am I using 50g of RAM and then 10 in parallel, or do I need to manipulate the rest that
Can you tell me exactly what I should do if I need to parallelize the processing when making surface data, thank you very much, looking forward to a reply!
9b4e2ae5b166969d8adf4f2632a82bb.png1717406727840.png
 

slevis

Moderator
Staff member
If you have the option of running a newer version (e.g. ctsm5.2.0), then you can use the new mksurfdata_esmf tool that is designed to run parallel.

Otherwise, I will let others chime in with suggestions.
 

weixinyu

weixinyu
Member
If you have the option of running a newer version (e.g. ctsm5.2.0), then you can use the new mksurfdata_esmf tool that is designed to run parallel.

Otherwise, I will let others chime in with suggestions.
Dear slevis
I'm afraid I'm stuck with this version of ctsm, can I trouble you for some viable suggestions for using this version?
 

jedwards

CSEG and Liaisons
Staff member
Try running mkmapdata.sh with the -verbose flag and post more of the output log. Check your ulimits are adequate, talk to your system support staff if you have one.
 

weixinyu

weixinyu
Member
尝试使用 -verbose 标志运行 mkmapdata.sh 并发布更多输出日志。检查您的 ulimits 是否足够,如果有,请咨询您的系统支持人员。
非常感谢您的回复,我现在已经解决了这个问题。
我设法制作了表面数据,但是当我检查日志文件时,它在某些数组的顶部显示了所有 0,我犯了错误吗?还是它就是这样。
 

Attachments

  • surfdata_syh_78pfts_CMIP6_simyr1850_c240617.txt
    67.3 KB · Views: 2

jedwards

CSEG and Liaisons
Staff member
Google translate says: Thank you very much for your reply, I have solved the problem now.I managed to make the surface data, but when I checked the log file it showed all 0s at the top of some arrays, did I make a mistake? Or is it just like that.

@slevis it's back in your court.
 

slevis

Moderator
Staff member
Thank you @jedwards
@weixinyu you are the best person to judge whether the results in the log file make sense to you. You may want to also visualize the contents of the fsurdat file. This may help you identify problems that you suspect with the file.
 
Top