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

Gpu option

This commit is contained in:
Peter Boyle 2018-05-14 19:40:58 -04:00
parent c5f93abcd7
commit 93280bae85

View File

@ -432,6 +432,9 @@ void Grid_init(int *argc,char ***argv)
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptHandUnroll;
StaggeredKernelsStatic::Opt=StaggeredKernelsStatic::OptHandUnroll;
}
if( GridCmdOptionExists(*argv,*argv+*argc,"--dslash-gpu") ){
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptGpu;
}
if( GridCmdOptionExists(*argv,*argv+*argc,"--dslash-asm") ){
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptInlineAsm;
StaggeredKernelsStatic::Opt=StaggeredKernelsStatic::OptInlineAsm;