From bb92fae53e0151d1d07decf269d1ef76d8cc3416 Mon Sep 17 00:00:00 2001 From: James Price Date: Fri, 9 Nov 2018 11:03:20 +0000 Subject: [PATCH] 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 --- test_conformance/clcpp/images/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_conformance/clcpp/images/main.cpp b/test_conformance/clcpp/images/main.cpp index 5cf221c8..846ff416 100644 --- a/test_conformance/clcpp/images/main.cpp +++ b/test_conformance/clcpp/images/main.cpp @@ -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[]) {