Fix bugs encountered while building with VS 2017 64bit (#39)
authorSilverCamel <43945395+SilverCamel@users.noreply.github.com>
Tue, 12 Feb 2019 15:12:08 +0000 (20:42 +0530)
committerKedar Patil <kepatil@nvidia.com>
Tue, 12 Feb 2019 15:12:08 +0000 (20:42 +0530)
test/driver_stub/cl.c
test/loader_test/test_create_calls.c

index 28f626a14362eb2857d376f44512545452fb5763..802192348bcb2a7a8954fbe700ffd3fa86fa566d 100644 (file)
@@ -514,7 +514,8 @@ clCreateImage2D(cl_context              context ,
                       image_width,
                       image_height,
                       image_row_pitch,
-                      host_ptr);
+                      host_ptr,
+                     errcode_ret);
 
     test_icd_stub_log("Value returned: %p\n", obj);
     return obj;
index 6160fb48560e9108a1eada6140a25ebd5fc6eab6..dfce9c248d9f34d181e01f61a0558ba8d882ef84 100644 (file)
@@ -1,4 +1,5 @@
 #include <string.h>
+#include <stdlib.h>
 
 #define CL_USE_DEPRECATED_OPENCL_1_0_APIS
 #define CL_USE_DEPRECATED_OPENCL_1_1_APIS