How to build netcdf with hpc sdk?

Dear NVIDIA developers:

Now I have a CUDA Fortran program with parallel I/O using netcdf.
So is there an instruction showing how to build the netcdf with HPC SDK compiler?

Thanks much!

Chen

Hi Chen,

We do ship prebuilt versions of pnetcdf/netcdf with the HPC SDK (found under $INSTALL_DIR/ Linux_x86_64/2020/netcdf/)) that you can use.

Otherwise, you should be able to follow the instructions at: https://github.com/Parallel-NetCDF/PnetCDF/blob/master/INSTALL

Just ensure that the MPI implementation that you’re using is configured for use with the NV HPC Compilers.

-Mat

This is great!

Thanks so much, Mat!

Chen

Hi Mat,

Why there is no netcdf under the path of hps sdk as you said on my computer?

Did I miss anything when I install the hpc sdk?

Thanks much!

Chen

My apologies Chen. I thought we shipped those with the release, but I was incorrect.

Hopefully building the pNetCDF library from source wont be too much trouble.

Thank you, Mat!

[



Chen Yang

](https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=2&name=Chen+Yang&uid=yangchen.cug%40163.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fwzpmmc%2F1b1bd91b89b903d179679e77840bbcf1.jpg&company=Princeton+University&position=Associate+Research+Scholar)

Signature is customized by Netease Mail Master