1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-13 04:37:05 +01:00

Make tests running past nvcc. Different NVCC versions proving tricky to keep happy. This is 9.2

This commit is contained in:
Peter Boyle
2019-01-02 12:05:30 +00:00
parent a4d9200293
commit e73b909a48
6 changed files with 25 additions and 21 deletions

View File

@ -87,9 +87,9 @@ int main (int argc, char ** argv)
auto Uprime_v = Uprime.View();
auto U_v = U.View();
auto mom_v = mom.View();
parallel_for(auto i=mom_v.begin();i<mom_v.end();i++){ // exp(pmu dt) * Umu
thread_loop( (auto i=mom_v.begin();i<mom_v.end();i++),{ // exp(pmu dt) * Umu
Uprime_v[i](mu) = U_v[i](mu) + mom_v[i](mu)*U_v[i](mu)*dt ;
}
});
}
ComplexD Sprime = Action.S(Uprime);

View File

@ -109,10 +109,10 @@ int main(int argc, char **argv)
auto Uprime_v = Uprime.View();
auto U_v = U.View();
auto mom_v = mom.View();
parallel_for(int ss = 0; ss < mom.Grid()->oSites(); ss++)
thread_loop( (int ss = 0; ss < mom.Grid()->oSites(); ss++),
{
Uprime_v[ss]._internal[mu] = ProjectOnGroup(Exponentiate(mom_v[ss]._internal[mu], dt, 12) * U_v[ss]._internal[mu]);
}
});
}
std::cout << GridLogMessage << "Initial mom hamiltonian is " << Hmom << std::endl;