Skip to content

Commit 2080325

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

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/openmpi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
- name: Test PnetCDF-Python
9292
run: |
9393
export PATH=${OPENMPI_DIR}/bin:${PATH}
94+
export LD_LIBRARY_PATH="${PNETCDF_DIR}/lib:${OPENMPI_DIR}/lib:${LD_LIBRARY_PATH}"
9495
make ptests TESTMPIRUN="${OPENMPI_DIR}/bin/mpiexec --oversubscribe"
9596
9697
- name: Re-install PnetCDF-Python from source distribution
@@ -104,6 +105,7 @@ jobs:
104105
- name: Test PnetCDF-Python
105106
run: |
106107
export PATH=${OPENMPI_DIR}/bin:${PATH}
108+
export LD_LIBRARY_PATH="${PNETCDF_DIR}/lib:${OPENMPI_DIR}/lib:${LD_LIBRARY_PATH}"
107109
make ptests TESTMPIRUN="${OPENMPI_DIR}/bin/mpiexec --oversubscribe"
108110
109111
# - name: Tarball

.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: |

.github/workflows/pnetcdf_c_official.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
- name: Test PnetCDF-Python
9292
run: |
9393
export PATH=${MPICH_DIR}/bin:${PATH}
94+
export LD_LIBRARY_PATH="${PNETCDF_DIR}/lib:${MPICH_DIR}/lib:${LD_LIBRARY_PATH}"
9495
make ptests TESTMPIRUN="${MPICH_DIR}/bin/mpiexec"
9596
9697
- name: Re-install PnetCDF-Python from source distribution
@@ -104,6 +105,7 @@ jobs:
104105
- name: Test PnetCDF-Python
105106
run: |
106107
export PATH=${MPICH_DIR}/bin:${PATH}
108+
export LD_LIBRARY_PATH="${PNETCDF_DIR}/lib:${MPICH_DIR}/lib:${LD_LIBRARY_PATH}"
107109
make ptests TESTMPIRUN="${MPICH_DIR}/bin/mpiexec"
108110
109111
# - name: Tarball

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)