freebsd-ports/devel/ocl-icd/files/patch-ocl__icd__debug.h
Koop Mast 7bc4660db0 Add ocl-icd - OpenCL Installable Client Driver.
This library provides a way that OpenCL programs can open several
ICD's. The Intel (beignet) and AMD/ATI (Clover for Mesa) OpenCL
implimentations will be build as ICD's. This has as benefit
that programs will not link directly against the OpenCL
implimentation but against ocl-icd. The user needs to manualy
install the OpenCL implimentation they want to use.

PR:		181244
Submitted by:	ohartman@zedat.fu-berlin.de
2015-09-17 17:45:21 +00:00

15 lines
468 B
C

--- ocl_icd_debug.h.orig 2015-08-06 20:54:47 UTC
+++ ocl_icd_debug.h
@@ -61,9 +61,9 @@ extern int debug_ocl_icd_mask;
return ret; \
} while(0)
# define RETURN_STR(val) do { \
- char* ret=(char*)(val); \
- debug(D_TRACE, "return: %s", ret); \
- return ret; \
+ char* _return_str=(char*)(val); \
+ debug(D_TRACE, "return: %s", _return_str); \
+ return _return_str; \
} while(0)
# ifdef DEBUG_OCL_ICD_PROVIDE_DUMP_FIELD
# pragma GCC diagnostic push