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

Function TEST

test/jit_test_api.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18} // namespace af
19
20TEST(JIT, UnitMaxHeight) {
21 const int oldMaxJitLen = af::getMaxJitLen();
22 af::setMaxJitLen(1);
23 af::array a = af::constant(1, 10);
24 af::array b = af::constant(2, 10);
25 af::array c = a * b;
26 af::array d = b * c;
27 c.eval();
28 d.eval();
29 af::setMaxJitLen(oldMaxJitLen);
30}
31
32TEST(JIT, ZeroMaxHeight) {
33 EXPECT_THROW({ af::setMaxJitLen(0); }, af::exception);

Callers

nothing calls this directly

Calls 4

getMaxJitLenFunction · 0.85
setMaxJitLenFunction · 0.85
constantFunction · 0.85
evalMethod · 0.45

Tested by

no test coverage detected