MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / noDoubleTests

Function noDoubleTests

test/arrayfire_test.cpp:478–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476#undef INSTANTIATE
477
478bool noDoubleTests(af::dtype ty) {
479 bool isTypeDouble = (ty == f64) || (ty == c64);
480 int dev = af::getDevice();
481 bool isDoubleSupported = af::isDoubleAvailable(dev);
482
483 return ((isTypeDouble && !isDoubleSupported) ? true : false);
484}
485
486bool noHalfTests(af::dtype ty) {
487 bool isTypeHalf = (ty == f16);

Callers 13

BINARY_TESTS_NEARFunction · 0.85
meanvar_test_genFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
threading.cppFile · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
TEST_PFunction · 0.85
SetUpMethod · 0.85
TEST_PFunction · 0.85
SetUpMethod · 0.85
TEST_PFunction · 0.85

Calls 2

getDeviceFunction · 0.85
isDoubleAvailableFunction · 0.85

Tested by

no test coverage detected