Skip to content

Commit 38ba753

Browse files
committed
add some helpful comments about the omp accumulator arrays
1 parent 21a9fd0 commit 38ba753

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ MODULES = read_input gamma hybrid_update measure_gauge_action start \
6767
little_D block Dov_psi operator poly_monomial measurements pion_norm Dov_proj \
6868
xchange_field_tslice temporalgauge spinor_fft X_psi P_M_eta \
6969
xchange_jacobi jacobi init_jacobi_field \
70-
fatal_error invert_clover_eo gettime @SPI_FILES@ init_omp_kahan_accumulators
70+
fatal_error invert_clover_eo gettime @SPI_FILES@ init_omp_accumulators
7171

7272
## the GPU modules (all .cu files in $GPUDIR)
7373
GPUSOURCES := $(wildcard $(srcdir)/$(GPUDIR)/*.cu)

init_omp_accumulators.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
* You should have received a copy of the GNU General Public License
1717
* along with tmLQCD. If not, see <http://www.gnu.org/licenses/>.
1818
***********************************************************************/
19+
20+
/* The two arrays
21+
*
22+
* g_omp_acc_re
23+
* g_omp_acc_cp
24+
*
25+
* have as many elements as there are threads (set by ompnumthreads input parameter,
26+
* stored in omp_num_threads configuration variable). They are initialiazed
27+
* upon program launch and serve to hold thread-local values over the boundaries
28+
* of parallel sections, such as for Kahan summations. _re is of type
29+
* "double" while _cp is of type "_Complex double". They are declared in global.h */
30+
1931
#ifndef _INIT_OMP_ACCUMULATORS_H
2032
#define _INIT_OMP_ACCUMULATORS_H
2133

0 commit comments

Comments
 (0)