Skip to content

Commit f1bff01

Browse files
committed
Add PnetCDF and MPI installation paths to LD_LIBRARY_PATH is required
1 parent a4b674a commit f1bff01

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/pnetcdf_c_master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ jobs:
146146
- name: Test PnetCDF-Python
147147
run: |
148148
export PATH=${MPICH_DIR}/bin:${PATH}
149+
export LD_LIBRARY_PATH="${PNETCDF_DIR}/lib:${MPICH_DIR}/lib:${LD_LIBRARY_PATH}"
149150
make ptests TESTMPIRUN="${MPICH_DIR}/bin/mpiexec"
150151
151152
- name: Re-install PnetCDF-Python from source distribution
@@ -159,6 +160,7 @@ jobs:
159160
- name: Test PnetCDF-Python
160161
run: |
161162
export PATH=${MPICH_DIR}/bin:${PATH}
163+
export LD_LIBRARY_PATH="${PNETCDF_DIR}/lib:${MPICH_DIR}/lib:${LD_LIBRARY_PATH}"
162164
make ptests TESTMPIRUN="${MPICH_DIR}/bin/mpiexec"
163165
# - name: Tarball
164166
# run: |

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ scalable I/O performance.
4141
pip install --no-build-isolation -e .
4242
```
4343
* Testing
44+
+ Additional packages are required: `torch` and `torchvision`
45+
+ Add the PnetCDF and MPI installation paths to the environment variable
46+
`LD_LIBRARY_PATH`, for example by running command:
47+
```
48+
export LD_LIBRARY_PATH="${PNETCDF_DIR}/lib:${MPI_DIR}/lib:${LD_LIBRARY_PATH}"
49+
```
4450
+ Command `"make check"` tests all the programs available in folders
4551
["test/"](./test) and ["examples/"](./examples) by running one MPI process.
4652
+ Command `"make ptests"` tests all the programs by running more than one MPI

0 commit comments

Comments
 (0)