Generalized Operator Modelling of the Ocean (GOMO) is a three-dimensional ocean model based on OpenArray which is a simple operator library for the decoupling of ocean modelling and parallel computing (Xiaomeng Huang et al, 2019). GOMO is a numerical solution model using finite differential algorithm to solve PDE equations. With MindSpore and GPU, we can achieve great improvements in solving those PDE equations compared with CPU. This is an example of training GOMO Model with MindSpore on GPU.
The overall model architecture of GOMO is show below:link. The fundamental equations and algorithms of GOMO can also be found in this article
Dataset used: Seamount
Dataset size: 65x49x21
Data format:nc
Download the dataset
download the GOMO(https://github.com/hxmhuang/GOMO) from Github and you can find the seamount dataset file in the
GOMO/bin/data
directory.
After installing MindSpore via the official website, you can start training as follows:
# run distributed training example
bash run_distribute_train.sh [im] [jm] [kb] [step] [DATASET_PATH]
└── ocean_model
├── README.md # descriptions about ocean model GOMO
├── scripts
│ ├── run_distribute_train.sh # launch distributed training for GPU
├──src
│ ├── GOMO.py # GOMO model
│ ├── Grid.py # grid initial
│ ├── stencil.py # averaging and differential stencil oprator
│ ├── op_operator.py # averaging and differential kernel operator
│ ├── read_var.py # read variables from nc file
├── train.py # train script
bash run_distribute_train.sh [im] [jm] [kb] [step] [DATASET_PATH]
Training result will be stored in the current path, whose folder name begins with "train".
Parameters | GPU |
---|---|
Resource | GPU(Tesla V100 SXM2),Memory 16G |
uploaded Date | |
MindSpore Version | |
Dataset | Seamount |
Training Parameters | step=10, im=65, km=49, kb=21 |
Outputs | numpy file |
Speed | 17 ms/step |
Total time | 3 mins |
Scripts | Link |
Please check the official homepage.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。