mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-04 19:25:56 +01:00
Gpu option
This commit is contained in:
parent
c5f93abcd7
commit
93280bae85
@ -432,6 +432,9 @@ void Grid_init(int *argc,char ***argv)
|
|||||||
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptHandUnroll;
|
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptHandUnroll;
|
||||||
StaggeredKernelsStatic::Opt=StaggeredKernelsStatic::OptHandUnroll;
|
StaggeredKernelsStatic::Opt=StaggeredKernelsStatic::OptHandUnroll;
|
||||||
}
|
}
|
||||||
|
if( GridCmdOptionExists(*argv,*argv+*argc,"--dslash-gpu") ){
|
||||||
|
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptGpu;
|
||||||
|
}
|
||||||
if( GridCmdOptionExists(*argv,*argv+*argc,"--dslash-asm") ){
|
if( GridCmdOptionExists(*argv,*argv+*argc,"--dslash-asm") ){
|
||||||
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptInlineAsm;
|
WilsonKernelsStatic::Opt=WilsonKernelsStatic::OptInlineAsm;
|
||||||
StaggeredKernelsStatic::Opt=StaggeredKernelsStatic::OptInlineAsm;
|
StaggeredKernelsStatic::Opt=StaggeredKernelsStatic::OptInlineAsm;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user