JeffersonLab / qphix

QCD for Intel Xeon Phi and Xeon processors
http://jeffersonlab.github.io/qphix/
Other
13 stars 11 forks source link

Standardized names for the common template parameters #41

Open martin-ueding opened 7 years ago

martin-ueding commented 7 years ago

The four common template parameters, (1) floating point type, (2) vector length, (3), SoA length, and (4) gauge compression, are named differently for different classes and functions. Examples are:

template <typename FT, int V, int soalen, bool compress>
template <typename FT, int V, int S, bool compress>
template <typename FT, int veclen, int soalen, bool compress>
template <typename FT, int veclen, int soalen, bool compress12>
template <typename T, int V, int S, const bool compressP>

The names in the kernel specializations probably need to be different because there they are set by the preprocessor. In all other code, those names could be unified to make it easier to do further refactorings.