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

Function testFunction

test/info.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template<typename T>
30void testFunction() {
31 info();
32
33 af_array outArray = 0;
34 dim4 dims(32, 32, 1, 1);
35 ASSERT_SUCCESS(af_randu(&outArray, dims.ndims(), dims.get(),
36 (af_dtype)dtype_traits<T>::af_type));
37 // cleanup
38 if (outArray != 0) { ASSERT_SUCCESS(af_release_array(outArray)); }
39}
40
41void infoTest() {
42 int nDevices = 0;

Callers

nothing calls this directly

Calls 5

infoFunction · 0.85
af_randuFunction · 0.50
af_release_arrayFunction · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected