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

Function noHalfTests

test/arrayfire_test.cpp:486–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486bool noHalfTests(af::dtype ty) {
487 bool isTypeHalf = (ty == f16);
488 int dev = af::getDevice();
489 bool isHalfSupported = af::isHalfAvailable(dev);
490
491 return ((isTypeHalf && !isHalfSupported) ? true : false);
492}
493
494af_half abs(af_half in) {
495 half_float::half in_;

Callers 10

BINARY_TESTS_NEARFunction · 0.85
TESTFunction · 0.85
meanvar_test_genFunction · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
TEST_PFunction · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
TEST_PFunction · 0.85

Calls 2

getDeviceFunction · 0.85
isHalfAvailableFunction · 0.85

Tested by

no test coverage detected