I am trying to use PyFR with SCOTCH on my University Compute Cluster. Since I do not have sudo rights, I am not able to use the sudo apt install
command. Hence, I have to install SCOTCH from their GitHub repo code.
I followed the instructions in the INSTALL.txt file on the SCOTCH repo, and tried using installation using CMake.
I created a Virtual Environment for my pyfr installation:
module load python/3.9.6
python3 -m venv pyfr
source pyfr/bin/activate
module load openmpi
module load paraview
module load gcc/10
module load cuda
cd pyfr
I typed the following commands after cloning the SCOTCH repo:
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/ -DCMAKE_BUILD_TYPE=Release ..
make -j 128
env CTEST_OUTPUT_ON_FAILURE=1 ctest
make install
I installed pyfr using pip:
pip install pyfr
The documentation says to specify the SCOTCH path using PYFR_SCOTCH_LIBRARY_PATH=/path/to/libscotch.so
, but there is no .so file in my SCOTCH/lib folder.
In the euler_vortex_2d folder from PyFR examples, I run the following commands (as mentioned on the PyFR website:
pyfr import euler_vortex_2d.msh euler_vortex_2d.pyfrm
pyfr partition 2 euler_vortex_2d.pyfrm .
The partition command does not create any files (and I am not sure if it should create any more files). Regardless, I execute the command:
mpiexec -n 2 pyfr run -b cuda -p euler_vortex_2d.pyfrm euler_vortex_2d.ini
I get an error as shown below:
When I run PyFR without partition, it runs correctly and produced .pyfrs files:
pyfr import euler_vortex_2d.msh euler_vortex_2d.pyfrm
pyfr run -b cuda -p euler_vortex_2d.pyfrm euler_vortex_2d.ini
Note that in the case without partitioning, even if I run mpiexec -n 1 pyfr run -b cuda -p euler_vortex_2d.pyfrm euler_vortex_2d.ini
, I get a similar error as in the above image.
I am not sure if this is the case because of an error with OpenMPI or PyFR.