-
Notifications
You must be signed in to change notification settings - Fork 47
Install QuickPIC
You can either use git to clone the QuickPIC repository or directly download the source code from the QuickPIC page on Github.
Before installing QuickPIC, you need to install the following softwares where you want to run QuickPIC:
GCC and Gfortran are suggested if you want to run QuickPIC on your local computer.
The openMPI is suggested if you want to run QuickPIC on your local computer.
You can find the HDF5 library here. You have to enable the parallel option and fortran option when you install HDF5.
JSON-Fortran is an open source code on Github. The version 6.3.0 is recommended. The newer versions of JSON-Fortran have not been tested.
You can compile QuickPIC from the source using "make". The file "make.GF_OPENMPI" contains environmental variables for GNU compiler with openMPI. You also need to set the path for HDF5 and JSON-Fortran libraries in "make.GF_OPENMPI". To compile QuickPIC, execute:
make
The executable file name is qpic.e
.
First, you should set the environmental variable OMP_NUM_THREADS to the number of threads that you want to have for each MPI node. The following command is for setting OMP_NUM_THREADS to 1 in bash shell:
export OMP_NUM_THREADS=1
The command to run QuickPIC with both MPI and OpenMP varies from one system to another. One possible command when using OpenMPI is:
mpirun -np nproc ./qpic.e
, where nproc
is the number of processors to be used.