From 5fba554d35319484403c2517e7d9aff4e83e3f37 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 13 Dec 2019 05:34:59 +0000 Subject: lang/compute-runtime: prefix package like other distributions Compute runtime unlike Beignet maybe used by other CPU vendors for a common runtime used by GPGPU. --- .../files/patch-clock_gettime | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lang/intel-compute-runtime/files/patch-clock_gettime (limited to 'lang/intel-compute-runtime/files/patch-clock_gettime') diff --git a/lang/intel-compute-runtime/files/patch-clock_gettime b/lang/intel-compute-runtime/files/patch-clock_gettime new file mode 100644 index 000000000000..7a6609f709b7 --- /dev/null +++ b/lang/intel-compute-runtime/files/patch-clock_gettime @@ -0,0 +1,24 @@ +CLOCK_MONOTONIC_RAW doesn't exist on non-Linux systems. + +runtime/os_interface/linux/os_time_linux.cpp:61:21: error: + use of undeclared identifier 'CLOCK_MONOTONIC_RAW' + if (getTimeFunc(CLOCK_MONOTONIC_RAW, &ts)) { + ^ +runtime/os_interface/linux/os_time_linux.cpp:138:24: error: + use of undeclared identifier 'CLOCK_MONOTONIC_RAW' + if (resolutionFunc(CLOCK_MONOTONIC_RAW, &ts)) { + ^ + +--- runtime/os_interface/linux/os_time_linux.cpp.orig 2019-11-22 15:41:47 UTC ++++ runtime/os_interface/linux/os_time_linux.cpp +@@ -14,6 +14,10 @@ + + #include + ++#ifndef CLOCK_MONOTONIC_RAW ++#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC ++#endif ++ + namespace NEO { + + OSTimeLinux::OSTimeLinux(OSInterface *osInterface) { -- cgit v1.2.3