From 7e7d85f72696c10ff95dd1208b64cf5ed1afa93b Mon Sep 17 00:00:00 2001 From: Gil Pitney Date: Thu, 14 May 2015 22:49:32 +0000 Subject: printf.c: Added cl_khr_int64 feature to printf builtin This (should) allow building on 64 bit systems, and is benign on 32 bit systems per Khronos 'test_printf' tests. Signed-off-by: Gil Pitney --- src/builtins/pocl_types.h | 2 -- src/builtins/printf.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/builtins/pocl_types.h b/src/builtins/pocl_types.h index 3f280cf..ce6ad9e 100644 --- a/src/builtins/pocl_types.h +++ b/src/builtins/pocl_types.h @@ -2,11 +2,9 @@ //#include "pocl_features.h" -#if 0 // GP: ??? #if defined cl_khr_fp64 && !defined cl_khr_int64 # error "cl_khr_fp64 requires cl_khr_int64" #endif -#endif /* Disable undefined datatypes */ diff --git a/src/builtins/printf.c b/src/builtins/printf.c index 196373c..c42341e 100644 --- a/src/builtins/printf.c +++ b/src/builtins/printf.c @@ -27,6 +27,7 @@ // GP: Add the OpenCL types for "C": #define cl_khr_fp64 +#define cl_khr_int64 #include "_kernel_c.h" #include -- cgit v1.2.3