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

Function TEST

test/ocl_ext_context.cpp:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127TEST(OCLCheck, DeviceType) {
128 afcl::deviceType devType = afcl::getDeviceType();
129 cl_device_type type = -100;
130 clGetDeviceInfo(afcl::getDeviceId(), CL_DEVICE_TYPE, sizeof(cl_device_type),
131 &type, NULL);
132 ASSERT_EQ(type, (cl_device_type)devType);
133}
134
135TEST(OCLCheck, DevicePlatform) {
136 afcl::platform platform = afcl::getPlatform();

Callers

nothing calls this directly

Calls 11

allocV2Function · 0.85
freeV2Function · 0.85
getDeviceTypeFunction · 0.50
getDeviceIdFunction · 0.50
getPlatformFunction · 0.50
af_alloc_deviceFunction · 0.50
afcl_get_queueFunction · 0.50
af_free_deviceFunction · 0.50
af_alloc_device_v2Function · 0.50
af_free_device_v2Function · 0.50
afcl_get_contextFunction · 0.50

Tested by

no test coverage detected