diff --git a/lib/util/Init.cc b/lib/util/Init.cc index 39c35899..79f9c737 100644 --- a/lib/util/Init.cc +++ b/lib/util/Init.cc @@ -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;