爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1153|回复: 2

wrf并行计算的设置

[复制链接]
发表于 2024-12-5 13:40:01 | 显示全部楼层 |阅读模式
数值模式
使用语言: wrf
我看过提问的智慧: 看过
自己思考时长(天): 2
问题概况: 成功安装了wrf模型,也能够正常的跑;但是在服务器上调用了40个核,发现任务并没有成功调用40个核,还是在用一个核跑。
问题截图: -
系统平台: 超算

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
在用提交任务的时候调用了40个核的计算,但是在wrf.err中显示:
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
starting wrf task            0  of            1
任务是能够正常的跑的,就是不知道为什么这个并行用不了。
输入了nc-config --all,发现我的netcdf配置是这样子的:
This netCDF 4.7.2 has been built with the following features:

  --cc            -> gcc
  --cflags        -> -I/home/qixinggroup/jyx02/Build_WRF/apps/include -I/home/qixinggroup/jyx02/Build_WRF/apps/include
  --libs          -> -L/home/qixinggroup/jyx02/Build_WRF/apps/lib -lnetcdf
  --static        -> -lsz -lhdf5_hl -lhdf5 -lm -lz -lcurl

  --has-c++       -> no
  --cxx           ->

  --has-c++4      -> no
  --cxx4          ->

  --has-fortran   -> yes
  --fc            -> gfortran
  --fflags        -> -I/home/qixinggroup/jyx02/Build_WRF/apps/include
  --flibs         -> -L/home/qixinggroup/jyx02/Build_WRF/apps/lib -lnetcdff -L/home/qixinggroup/jyx02/Build_WRF/apps/lib -lnetcdf -lnetcdf -lm
  --has-f90       ->
  --has-f03       -> yes

  --has-dap       -> yes
  --has-dap2      -> yes
  --has-dap4      -> yes
  --has-nc2       -> yes
  --has-nc4       -> yes
  --has-hdf5      -> yes
  --has-hdf4      -> no
  --has-logging   -> no
  --has-pnetcdf   -> no
  --has-szlib     -> yes
  --has-cdf5      -> yes
  --has-parallel4 -> no
  --has-parallel  -> no

  --prefix        -> /home/qixinggroup/jyx02/Build_WRF/apps
  --includedir    -> /home/qixinggroup/jyx02/Build_WRF/apps/include
  --libdir        -> /home/qixinggroup/jyx02/Build_WRF/apps/lib
  --version       -> netCDF 4.7.2

想问一下是不是--has-parallel  -> no这个说明没有编译好,要想并行就只能重新编译,并加上 --enable-parallel?
在安装wrf的时候选择了dmpar模式

密码修改失败请联系微信:mofangbao
发表于 2024-12-6 10:39:37 | 显示全部楼层
netcdf的parallel是并行写入,跟这个没关系
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2024-12-6 12:15:57 | 显示全部楼层
这个会不会是编译的时候就是串行的
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表