Declare gDeviceType in clcpp image test

Fixes build on macOS. This is a hangover from some Apple specific code
that is in the image helper functions.xs
This commit is contained in:
James Price
2018-11-09 11:03:20 +00:00
committed by Kévin Petit
parent 95f3af02b7
commit bb92fae53e

View File

@@ -19,6 +19,10 @@
#include "test_sample.hpp"
#include "test_write.hpp"
// FIXME: To use certain functions in test_common/harness/imageHelpers.h
// (for example, generate_random_image_data()), the tests are required to declare
// the following variable (hangover from code specific to Apple's implementation):
cl_device_type gDeviceType = CL_DEVICE_TYPE_DEFAULT;
int main(int argc, const char *argv[])
{