| 125 | } |
| 126 | |
| 127 | TEST(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 | |
| 135 | TEST(OCLCheck, DevicePlatform) { |
| 136 | afcl::platform platform = afcl::getPlatform(); |
nothing calls this directly
no test coverage detected