these are some rough notes for porting code from the serial netcdf api to
the pnetcdf API. Pnetcdf is very similar but there are some changes that
have to be made:
. the nc_* functions are called ncmpi_*
. the nf_* functions are called nfmpi_*
. ncmpi_open takes a communicator and an info structure, in addition to the
parameters in the serial nc_open()
For example:
status = nc_open(path, NC_NOWRITE, &ncid);
becomes
status = ncmpi_open(MPI_COMM_WORLD, path, NC_NOWRITE,
MPI_INFO_NULL, &ncid);
. if you make any independent calls ( those not ending in _all), you must put
yourself into independent data mode with ncmpi_begin_indep_data(ncid) and
ncmpi_end_indep_data(ncid)
. FILL_DOUBLE and FILL_FLOAT are called NC_FILL_DOUBLE and NC_FILL_FLOAT
respectively. We do not define these NetCDF-2.x era constants in pnetcdf.
. #include <mpi.h> . If you want, define a communicator. MPI_COMM_WORLD
should work ok for most things.
. somewhere near main, call MPI_Init(): pnetcdf won't do that for you.
. pnetcdf does not implement nc_advise
. pnetcdf does not support all types that serial netcdf supports. see
src/lib/TODO for more specifics
. If for some reason your code uses 'ptrdiff_t' types, consider using
MPI_Offset types
. likewise, in many places where serial netcdf takes size_t types, we instead
take MPI_Offset types
. Fortran users should use '#include <mpif.h>' and '#include "pnetcdf.inc"',
instead of using the Fortran INCLUDE directive.
. Fortran 90 users can use 'use mpi' and 'use pnetcdf'.
. Fortran dimension sizes should be declared as type
INTEGER(KIND=MPI_OFFSET_KIND)
没有合适的资源?快使用搜索试试~ 我知道了~
parallel-netcdf-1.8.1.tar.gz_-baijiahao_gavez1d_pNetCDF_parallel
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 134 浏览量
2022-09-24
22:27:51
上传
评论
收藏 1.13MB GZ 举报
温馨提示
使用方法: tar zxf parallel-netcdf-1.8.1.tar.gz Build with: cd parallel-netcdf-1.8.1 FC=mpifort CC=mpicc CFLAGS=-fPIC ./configure --prefix=/usr/local/pnetcdf-1.8.1_mpich-3.2 make all check sudo make install
资源推荐
资源详情
资源评论
收起资源包目录
parallel-netcdf-1.8.1.tar.gz_-baijiahao_gavez1d_pNetCDF_parallel (488个子文件)
ncmpigen.1 14KB
ncmpidump.1 9KB
ncoffsets.1 3KB
pnetcdf_version.1 1KB
ncmpidiff.1 1KB
ncmpivalid.1 470B
pnetcdf-api.bbl 348B
buildiface 140KB
header.c 92KB
nonblocking.c 85KB
tst_atts.c 76KB
ncoffsets.c 66KB
ncmpigenyy.c 64KB
nc.c 56KB
genlib.c 52KB
ncmpigentab.c 49KB
mpinetcdf.c 46KB
subfile.c 40KB
util.c 38KB
filetype.c 37KB
var.c 35KB
tst_atts3.c 35KB
ncmpidiff.c 32KB
error.c 32KB
fill.c 31KB
ncmpidump.c 30KB
mcoll_perf.c 27KB
load.c 25KB
ncmpivalid.c 24KB
vardata.c 24KB
aggregation.c 22KB
i_varn_indef.c 22KB
mpincio.c 22KB
nc_test.c 21KB
utf8proc.c 21KB
dim.c 21KB
i_varn_int64.c 20KB
ivarn.c 18KB
tst_small.c 18KB
tst_nofill.c 18KB
t_nc.c 17KB
vard.c 16KB
ncmpidtype.c 15KB
bput_varn_int64.c 15KB
write_block_read_column.c 14KB
csnap.c 14KB
i_varn_int64.c 14KB
last_large_var.c 14KB
header_consistency.c 13KB
test_subfile.c 13KB
bput_varn_uint.c 13KB
test_vard.c 12KB
varn_int.c 12KB
alignment_test.c 12KB
block_cyclic.c 10KB
testutils.c 10KB
record.c 10KB
string.c 10KB
check_type.c 10KB
tst_names.c 10KB
flexible2.c 10KB
nonblocking_write.c 10KB
varn_contig.c 9KB
flexible_bput.c 9KB
nonblocking_write_in_def.c 9KB
flexible_api.c 9KB
large_var.c 9KB
pres_temp_4D_wr.c 9KB
util.c 9KB
mput.c 9KB
ncmpi_vars_null_stride.c 9KB
dim_cdf12.c 9KB
transpose.c 9KB
collective_write.c 8KB
tst_norm.c 8KB
flexible_varm.c 8KB
put_varn_int.c 8KB
test_erange.c 8KB
column_wise.c 8KB
malloc.c 8KB
put_varn_float.c 8KB
ghost_cell.c 7KB
fortlib.c 7KB
fortlib.c 7KB
hints.c 7KB
flexible.c 7KB
interleaved.c 7KB
fill_mode.c 7KB
vard_int.c 7KB
pres_temp_4D_rd.c 7KB
get_vara.c 6KB
collective_error.c 6KB
test_varm.c 6KB
put_vara.c 6KB
req_all.c 6KB
global_attributes.c 6KB
req_all.c 6KB
redef1.c 6KB
test_bput.c 6KB
pnetcdf-read-from-master.c 6KB
共 488 条
- 1
- 2
- 3
- 4
- 5
资源评论
四散
- 粉丝: 58
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功