1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Make a test file compatible with all architectures

This commit is contained in:
Guido Cossu 2017-08-06 10:49:45 +01:00
parent 4fe182e5a7
commit dbe4d7850c

View File

@ -108,11 +108,16 @@ int main(int argc, char **argv) {
// Use this if you want to tweak the default decomposition // Use this if you want to tweak the default decomposition
std::vector<int> simd_lanes({2,2,1,1}); // commented out as very architecture speficic
//std::vector<int> simd_lanes({2,2,1,1});
// Grid from the command line arguments --grid and --mpi // Grid from the command line arguments --grid and --mpi
// drop the simd_lanes argument to fall back to the default decomposition for the SIMD lanes // drop the simd_lanes argument to fall back to the default decomposition for the SIMD lanes
TheHMC.Resources.AddFourDimGrid("gauge", simd_lanes);
//TheHMC.Resources.AddFourDimGrid("gauge", simd_lanes); // tweak the SIMD lanes
TheHMC.Resources.AddFourDimGrid("gauge"); // use default simd lanes decomposition
// Possibile to create the module by hand // Possibile to create the module by hand
// hardcoding parameters or using a Reader // hardcoding parameters or using a Reader