From 93280bae8599157747445599ec154ce49d7e1470 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 14 May 2018 19:40:58 -0400 Subject: [PATCH] Gpu option --- lib/util/Init.cc | 3 +++ 1 file changed, 3 insertions(+) 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;