Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples
FFTXlib.md
Makefile
README.md
fft_error.f90
fft_fwinv.f90
fft_ggen.f90
fft_helper_subroutines.f90
fft_interfaces.f90
fft_interpolate.f90
fft_parallel.f90
fft_param.f90
fft_scalar.ARM_LIB.f90
fft_scalar.DFTI.f90
fft_scalar.ESSL.f90
fft_scalar.FFTW.f90
fft_scalar.FFTW3.f90
fft_scalar.SX6.f90
fft_scalar.f90
fft_smallbox.f90
fft_smallbox_type.f90
fft_stick.c
fft_support.f90
fft_types.f90
fftw.c
fftw.h
fftw_interfaces.f90
gen_test_params.py
konst.h
make.depend
scatter_mod.f90
stick_base.f90
test.f90
test0.f90
tg_gather.f90

README.md

FFTXlib

Implements real space grid parallelization of FFT and task groups.

Testing and Benchmarking

This library also provides a testing and timing code to asses the performance of your FFT, estimate the scalability and the optimal parameters for your simulation.

To compile the test program, once you have properly configure QE within a parallel environment, go inside the directory FFTXlib and type:

make TEST

Then you can run your FFT tests using command like:

mpirun -np 4 ./fft_test.x -ecutwfc 80 -alat 20  -nbnd 128 -ntg 4

Command line arguments:

-ecutwfc  Plane wave energy cut off
-alat     Lattice parameter (for hard coded lattice structure)
-nbnd     Number of bands (fft cycles)
-ntg      Number of task groups
-av1  x y z    First lattice vector, in atomic units. N.B.: when using -av1, -alat is ignored!
-av2  x y z    Second lattice vector, in atomic units. N.B.: when using -av2, -alat is ignored!
-av3  x y z    Third lattice vector, in atomic units. N.B.: when using -av3, -alat is ignored!
-kmax kx ky kz    Reciprocal lattice vector inside the BZ with maximum norm. Used to calculate max(|G+K|). (2pi/a)^2 units.

A python script to extract the parameters from an output file of pw.x is also available. Example usage:

$ python gen_test_params.py a_pw_output
To analize performances run with:
mpirun -np X ./fft_test.x -ntg Y -ecutwfc 36.7500 -ecutrho 147.0000 -av1 36.6048 0.0 0.0 -av2 -18.3024 31.70067192 0.0 -av3 0.0 0.0 18.3024 -nbnd 400 -gamma .true.

Replace X and Y with appropriate values for your simualtion.