Functions | |
| int | Par_begin (int argc, char *argv[]) |
| Initialises the MPI configuration. | |
| int | Par_sread (const int iread, const float beta, const float fmu, const float akappa, const Complex_f ajq, const float c_sw, Complex *u11, Complex *u12, Complex *u11t, Complex *u12t) |
| Reads and assigns the gauges from file. | |
| int | Par_swrite (const int itraj, const int icheck, const float beta, const float fmu, const float akappa, const Complex_f ajq, const float c_sw, Complex *u11, Complex *u12) |
| Copies u11 and u12 into arrays without halos which then get written to output. | |
| int | Par_isum (int *ival) |
| Performs a reduction on an integer ival to get a sum which is then distributed to all ranks. | |
| int | Par_dsum (double *dval) |
| Performs a reduction on a double dval to get a sum which is then distributed to all ranks. | |
| int | Par_fsum (float *dval) |
| Performs a reduction on a float dval to get a sum which is then distributed to all ranks. | |
| int | Par_csum (Complex_f *cval) |
| Performs a reduction on a complex float cval to get a sum which is then distributed to all ranks. | |
| int | Par_zsum (Complex *zval) |
| Performs a reduction on a complex double zval to get a sum which is then distributed to all ranks. | |
| int | Par_icopy (int *ival) |
| Broadcasts an integer to the other processes. | |
| int | Par_dcopy (double *dval) |
| Broadcasts a double to the other processes. | |
| int | Par_fcopy (float *fval) |
| Broadcasts a float to the other processes. | |
| int | Par_ccopy (Complex *cval) |
| Broadcasts a complex float to the other processes. | |
| int | Par_zcopy (Complex *zval) |
| Broadcasts a complex double to the other processes. | |
| int | ZHalo_swap_all (Complex *z, int ncpt) |
| Calls the functions to send data to both the up and down halos. | |
| int | ZHalo_swap_dir (Complex *z, int ncpt, int idir, int layer) |
| Swaps the halos along the axis given by idir in the direction given by layer. | |
| int | CHalo_swap_all (Complex_f *c, int ncpt) |
| Calls the functions to send data to both the up and down halos. | |
| int | CHalo_swap_dir (Complex_f *c, int ncpt, int idir, int layer) |
| Swaps the halos along the axis given by idir in the direction given by layer. | |
| int | DHalo_swap_all (double *d, int ncpt) |
| Calls the functions to send data to both the up and down halos. | |
| int | DHalo_swap_dir (double *d, int ncpt, int idir, int layer) |
| Swaps the halos along the axis given by idir in the direction given by layer. | |
| int | SHalo_swap_all (float *d, int ncpt) |
| Calls the functions to send data to both the up and down halos. | |
| int | SHalo_swap_dir (float *d, int ncpt, int idir, int layer) |
| Swaps the halos along the axis given by idir in the direction given by layer. | |
| int | Trial_Exchange (Complex *ut[2], Complex_f *ut_f[2]) |
| Exchanges the trial fields. | |
| int CHalo_swap_all | ( | Complex_f * | c, |
| int | ncpt ) |
Calls the functions to send data to both the up and down halos.
| [in,out] | c | The data being sent |
| [in] | ncpt | Number of components being sent |
c updated References CHalo_swap_all(), and Complex_f.
| int CHalo_swap_dir | ( | Complex_f * | c, |
| int | ncpt, | ||
| int | idir, | ||
| int | layer ) |
Swaps the halos along the axis given by idir in the direction given by layer.
| [in,out] | c | The data being moved about. It should be an array of dimension [kvol+halo][something else] |
| [in] | ncpt | Number of components being sent |
| [in] | idir | The axis being moved along in C Indexing |
| [in] | layer | Either DOWN (0) or UP (1) |
c updated in direction idir and layer layer References CHalo_swap_dir(), and Complex_f.
| int DHalo_swap_all | ( | double * | d, |
| int | ncpt ) |
Calls the functions to send data to both the up and down halos.
| [in,out] | d | The data being sent |
| [in] | ncpt | Number of components being sent |
d updated References DHalo_swap_all().
| int DHalo_swap_dir | ( | double * | d, |
| int | ncpt, | ||
| int | idir, | ||
| int | layer ) |
Swaps the halos along the axis given by idir in the direction given by layer.
| [in,out] | d | The data being moved about. It should be an array of dimension [kvol+halo][something else] |
| [in] | ncpt | Number of components being sent |
| [in] | idir | The axis being moved along in C Indexing |
| [in] | layer | Either DOWN (0) or UP (1) |
d updated in direction idir and layer layer References DHalo_swap_dir().
| int Par_begin | ( | int | argc, |
| char * | argv[] ) |
Initialises the MPI configuration.
| [in] | argc | Number of arguments given to the programme |
| [in] | argv | Array of arguments |
Definition at line 24 of file par_mpi.c.
References AVX, ksizet, ksizex, ksizey, ksizez, ndim, NO_MPI_INIT, NO_MPI_RANK, NO_MPI_SIZE, nproc, npt, npx, npy, npz, nt, nx, ny, nz, Par_begin(), pcoord, pd, pstart, pstop, pu, rank, size, and SIZEPROC.
| int Par_ccopy | ( | Complex * | cval | ) |
Broadcasts a complex float to the other processes.
| [in,out] | cval | Complex float being broadcast |
cval overwritten References Complex, and Par_ccopy().
| int Par_csum | ( | Complex_f * | cval | ) |
Performs a reduction on a complex float cval to get a sum which is then distributed to all ranks.
| [in,out] | cval | The pointer to the element being summed, and the container for said sum. |
cval References Complex_f, and Par_csum().
| int Par_dcopy | ( | double * | dval | ) |
Broadcasts a double to the other processes.
| [in,out] | dval | double being broadcast |
dval overwritten References Par_dcopy().
| int Par_dsum | ( | double * | dval | ) |
Performs a reduction on a double dval to get a sum which is then distributed to all ranks.
| [in,out] | dval | The pointer to the element being summed, and the container for said sum. |
dval References Par_dsum().
| int Par_fcopy | ( | float * | fval | ) |
Broadcasts a float to the other processes.
| [in,out] | fval | float being broadcast |
fval overwritten References Par_fcopy().
| int Par_fsum | ( | float * | dval | ) |
Performs a reduction on a float dval to get a sum which is then distributed to all ranks.
| [in,out] | dval | The pointer to the element being summed, and the container for said sum. |
dval References Par_fsum().
| int Par_icopy | ( | int * | ival | ) |
Broadcasts an integer to the other processes.
| [in,out] | ival | Integer being broadcast |
ival overwritten References Par_icopy().
| int Par_isum | ( | int * | ival | ) |
Performs a reduction on an integer ival to get a sum which is then distributed to all ranks.
| [in,out] | ival | The pointer to the element being summed, and the container for said sum. |
ival References Par_isum().
| int Par_sread | ( | const int | iread, |
| const float | beta, | ||
| const float | fmu, | ||
| const float | akappa, | ||
| const Complex_f | ajq, | ||
| const float | c_sw, | ||
| Complex * | u11, | ||
| Complex * | u12, | ||
| Complex * | u11t, | ||
| Complex * | u12t ) |
Reads and assigns the gauges from file.
| [in] | iread | Configuration to read in |
| [in] | beta | Inverse gauge coupling |
| [in] | fmu | Chemical potential |
| [in] | akappa | Hopping parameter |
| [in] | ajq | Diquark source |
| [in] | c_sw | Clover coefficient |
| [out] | u11,u12 | Gauge fields |
| [out] | u11t,u12t | Trial fields |
Definition at line 114 of file par_mpi.c.
References AVX, CANTRECV, CANTSEND, Complex, Complex_f, Coord2gindex(), creal, DIFNPROC, FILELEN, gvol, kvol, kvolHalo, masterproc, ndim, nproc, nt, NUMELEM, nx, OPENERROR, Par_sread(), pstart, pstop, rank, seed, and size.
| int Par_swrite | ( | const int | itraj, |
| const int | icheck, | ||
| const float | beta, | ||
| const float | fmu, | ||
| const float | akappa, | ||
| const Complex_f | ajq, | ||
| const float | c_sw, | ||
| Complex * | u11, | ||
| Complex * | u12 ) |
Copies u11 and u12 into arrays without halos which then get written to output.
Modified from an original version of swrite in FORTRAN
| [in] | itraj | Trajectory to write |
| [in] | icheck | Not currently used but haven't gotten around to removing it |
| [in] | beta | Inverse gauge coupling |
| [in] | fmu | Chemical potential |
| [in] | akappa | Hopping parameter |
| [in] | ajq | Diquark source |
| [in] | c_sw | Clover coefficient |
| [in] | u11,u12 | Gauge fields |
Definition at line 324 of file par_mpi.c.
References AVX, CANTRECV, CANTSEND, Complex, Complex_f, Coord2gindex(), creal, FILELEN, gvol, kvol, masterproc, ndim, nproc, nt, NUMELEM, nx, OPENERROR, Par_swrite(), pstart, pstop, rank, ranlux_instd, seed, and size.
| int Par_zcopy | ( | Complex * | zval | ) |
Broadcasts a complex double to the other processes.
| [in,out] | zval | Complex double being broadcast |
zval overwritten References Complex, and Par_zcopy().
| int Par_zsum | ( | Complex * | zval | ) |
Performs a reduction on a complex double zval to get a sum which is then distributed to all ranks.
| [in,out] | zval | The pointer to the element being summed, and the container for said sum. |
zval References Complex, and Par_zsum().
| int SHalo_swap_all | ( | float * | d, |
| int | ncpt ) |
Calls the functions to send data to both the up and down halos.
| [in,out] | d | The data being sent |
| [in] | ncpt | Number of components being sent |
d updated References SHalo_swap_all().
| int SHalo_swap_dir | ( | float * | d, |
| int | ncpt, | ||
| int | idir, | ||
| int | layer ) |
Swaps the halos along the axis given by idir in the direction given by layer.
| [in,out] | d | The data being moved about. It should be an array of dimension [kvol+halo][something else] |
| [in] | ncpt | Number of components being sent |
| [in] | idir | The axis being moved along in C Indexing |
| [in] | layer | Either DOWN (0) or UP (1) |
d updated in direction idir and layer layer References Complex, Complex_f, SHalo_swap_dir(), and Trial_Exchange().
Exchanges the trial fields.
I noticed that this halo exchange was happening even though the trial fields hadn't been updated. To get around this I'm making a function that does the halo exchange and only calling it after the trial fields get updated.
| [in,out] | ut | Double precision trial fields |
| [out] | ut_f | Single precision trial fields |
ut updated. ut_f overwritten with single precision values of ut Definition at line 1043 of file par_mpi.c.
References AVX, Complex, Complex_f, ComplexConvert(), cudaDeviceSynchronise, kvol, kvolHalo, ndim, streams, Trial_Exchange(), and ZHalo_swap_all().
| int ZHalo_swap_all | ( | Complex * | z, |
| int | ncpt ) |
Calls the functions to send data to both the up and down halos.
| [in,out] | z | The data being sent |
| [in] | ncpt | Number of components being sent |
z updated References Complex, and ZHalo_swap_all().
| int ZHalo_swap_dir | ( | Complex * | z, |
| int | ncpt, | ||
| int | idir, | ||
| int | layer ) |
Swaps the halos along the axis given by idir in the direction given by layer.
| [in,out] | z | The data being moved about. It should be an array of dimension [kvol+halo][something else] |
| [in] | ncpt | Number of components being sent |
| [in] | idir | The axis being moved along in C Indexing |
| [in] | layer | Either DOWN (0) or UP (1) |
z updated in direction idir and layer layer References Complex, and ZHalo_swap_dir().