mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Predicate tests on fp16 being enabled
This commit is contained in:
parent
1d502e4ed6
commit
2846f079e5
@ -725,6 +725,7 @@ int main (int argc, char ** argv)
|
|||||||
std::cout <<" OK ! "<<std::endl;
|
std::cout <<" OK ! "<<std::endl;
|
||||||
|
|
||||||
// Double to Half
|
// Double to Half
|
||||||
|
#ifdef USE_FP16
|
||||||
std::cout << GridLogMessage<< "Double to half" ;
|
std::cout << GridLogMessage<< "Double to half" ;
|
||||||
precisionChange(&H[0],&D[0],Ndp);
|
precisionChange(&H[0],&D[0],Ndp);
|
||||||
precisionChange(&DD[0],&H[0],Ndp);
|
precisionChange(&DD[0],&H[0],Ndp);
|
||||||
@ -753,7 +754,7 @@ int main (int argc, char ** argv)
|
|||||||
assert( tmp < 1.0e-3 );
|
assert( tmp < 1.0e-3 );
|
||||||
}
|
}
|
||||||
std::cout <<" OK ! "<<std::endl;
|
std::cout <<" OK ! "<<std::endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user