summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/intel-compute-runtime/files')
-rw-r--r--lang/intel-compute-runtime/files/patch-backtrace11
-rw-r--r--lang/intel-compute-runtime/files/patch-clock_gettime10
-rw-r--r--lang/intel-compute-runtime/files/patch-getPath38
-rw-r--r--lang/intel-compute-runtime/files/patch-no-blitter11
-rw-r--r--lang/intel-compute-runtime/files/patch-ocloc-no-dlsym34
5 files changed, 18 insertions, 86 deletions
diff --git a/lang/intel-compute-runtime/files/patch-backtrace b/lang/intel-compute-runtime/files/patch-backtrace
index 0820f615f4d8..10a7a98e0207 100644
--- a/lang/intel-compute-runtime/files/patch-backtrace
+++ b/lang/intel-compute-runtime/files/patch-backtrace
@@ -23,15 +23,14 @@ ld: error: undefined symbol: backtrace_symbols
callstack = backtrace_symbols(addresses, backtraceSize);
for (int i = 0; i < backtraceSize; ++i) {
---- shared/offline_compiler/source/CMakeLists.txt.orig 2020-02-28 16:16:42 UTC
+--- shared/offline_compiler/source/CMakeLists.txt.orig 2020-05-15 20:36:40 UTC
+++ shared/offline_compiler/source/CMakeLists.txt
-@@ -161,6 +161,10 @@ endif()
+@@ -140,6 +140,9 @@ endif()
+
if(UNIX)
- target_link_libraries(ocloc_lib dl pthread)
- target_link_libraries(ocloc dl pthread)
+ target_link_libraries(${OCLOC_NAME}_lib dl pthread)
+ if(CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|NetBSD|OpenBSD")
-+ target_link_libraries(ocloc_lib execinfo)
-+ target_link_libraries(ocloc execinfo)
++ target_link_libraries(${OCLOC_NAME}_lib execinfo)
+ endif()
endif()
diff --git a/lang/intel-compute-runtime/files/patch-clock_gettime b/lang/intel-compute-runtime/files/patch-clock_gettime
index 34ada0f4b451..e1cf4dc32ff5 100644
--- a/lang/intel-compute-runtime/files/patch-clock_gettime
+++ b/lang/intel-compute-runtime/files/patch-clock_gettime
@@ -9,14 +9,18 @@ runtime/os_interface/linux/os_time_linux.cpp:138:24: error:
if (resolutionFunc(CLOCK_MONOTONIC_RAW, &ts)) {
^
---- shared/source/os_interface/linux/os_time_linux.cpp.orig 2020-02-28 16:16:42 UTC
+--- shared/source/os_interface/linux/os_time_linux.cpp.orig 2020-05-15 20:36:40 UTC
+++ shared/source/os_interface/linux/os_time_linux.cpp
-@@ -14,6 +14,10 @@
+@@ -14,6 +14,14 @@
#include <time.h>
+#ifndef CLOCK_MONOTONIC_RAW
-+#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
++# ifdef CLOCK_MONOTONIC_FAST
++# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST
++# else
++# define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
++# endif
+#endif
+
namespace NEO {
diff --git a/lang/intel-compute-runtime/files/patch-getPath b/lang/intel-compute-runtime/files/patch-getPath
deleted file mode 100644
index 3b648a653c65..000000000000
--- a/lang/intel-compute-runtime/files/patch-getPath
+++ /dev/null
@@ -1,38 +0,0 @@
-Implement getPath on BSDs
-
---- shared/offline_compiler/source/utilities/linux/get_path.cpp.orig 2020-02-28 16:16:42 UTC
-+++ shared/offline_compiler/source/utilities/linux/get_path.cpp
-@@ -10,11 +10,33 @@
- #include <sys/types.h>
- #include <unistd.h>
-
-+#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
-+#include <sys/sysctl.h>
-+#endif
-+
- std::string getPath() {
-+#if defined(KERN_PROC_PATHNAME)
-+ char exepath[PATH_MAX + 1] = {0};
-+ size_t len = sizeof(exepath);
-+ int mib[] = {
-+ CTL_KERN,
-+#if defined(__NetBSD__)
-+ KERN_PROC_ARGS,
-+ -1,
-+ KERN_PROC_PATHNAME,
-+#else
-+ KERN_PROC,
-+ KERN_PROC_PATHNAME,
-+ -1,
-+#endif
-+ };
-+ if (sysctl(mib, sizeof(mib)/sizeof(mib[0]), exepath, &len, NULL, 0) != -1) {
-+#else // Linux
- char exepath[128] = {0};
- std::stringstream ss;
- ss << "/proc/" << getpid() << "/exe";
- if (readlink(ss.str().c_str(), exepath, 128) != -1) {
-+#endif
- std::string path = std::string(exepath);
- path = path.substr(0, path.find_last_of('/') + 1);
- return path;
diff --git a/lang/intel-compute-runtime/files/patch-no-blitter b/lang/intel-compute-runtime/files/patch-no-blitter
index ca34842f0132..bd4ac0f63a7e 100644
--- a/lang/intel-compute-runtime/files/patch-no-blitter
+++ b/lang/intel-compute-runtime/files/patch-no-blitter
@@ -23,14 +23,15 @@ frame #4: 0x000000000020df59 ze_peak`L0Context::init_xe(this=0x00007fffffffde70)
185 }
186 if (verbose)
---- level_zero/core/source/device/device_imp.h.orig 2020-04-17 18:43:38 UTC
+--- level_zero/core/source/device/device_imp.h.orig 2020-05-15 20:36:40 UTC
+++ level_zero/core/source/device/device_imp.h
-@@ -99,9 +99,7 @@ struct DeviceImp : public Device {
- auto hwInfo = neoDevice->getHardwareInfo();
- if (hwInfo.capabilityTable.blitterOperationsSupported) {
- *useBliter = NEO::DebugManager.flags.EnableCopyOnlyCommandListsAndCommandQueues.get();
+@@ -102,10 +102,7 @@ struct DeviceImp : public Device {
+ } else {
+ *useBliter = NEO::DebugManager.flags.EnableCopyOnlyCommandListsAndCommandQueues.get();
+ }
- return ZE_RESULT_SUCCESS;
}
+-
- return ZE_RESULT_ERROR_INVALID_ENUMERATION;
}
return ZE_RESULT_SUCCESS;
diff --git a/lang/intel-compute-runtime/files/patch-ocloc-no-dlsym b/lang/intel-compute-runtime/files/patch-ocloc-no-dlsym
deleted file mode 100644
index fabe89e9bbc1..000000000000
--- a/lang/intel-compute-runtime/files/patch-ocloc-no-dlsym
+++ /dev/null
@@ -1,34 +0,0 @@
-Regressed by https://github.com/intel/compute-runtime/commit/beab60f62634
-
-FAILED: bin/built_ins/x64/gen12lp/copy_buffer_rect_Gen12LPlp.spv bin/built_ins/x64/gen12lp/copy_buffer_rect_Gen12LPlp.bin bin/built_ins/x64/gen12lp/copy_buffer_rect_Gen12LPlp.cpp bin/built_ins/x64/gen12lp/copy_buffer_rect_Gen12LPlp.gen
-cd shared/source/built_ins/kernels && LD_LIBRARY_PATH=bin bin/ocloc -q -file copy_buffer_rect.builtin_kernel -device tgllp -64 -out_dir bin/built_ins/x64/gen12lp -cpp_file -options -cl-kernel-arg-info
-Error! Couldn't find OclocInvoke function.
-Error! Ocloc Library couldn't be loaded.
-
---- shared/offline_compiler/source/ocloc_wrapper.cpp.orig 2020-02-28 16:16:42 UTC
-+++ shared/offline_compiler/source/ocloc_wrapper.cpp
-@@ -5,6 +5,7 @@
- *
- */
-
-+#include "ocloc_api.h"
- #include "ocloc_wrapper.h"
-
- #include "shared/source/os_interface/os_library.h"
-@@ -43,14 +44,8 @@ struct OclocWrapper::Impl {
- OclocLibrary ocloc;
- std::string oclocLibName = "";
- ocloc.library.reset(NEO::OsLibrary::load(oclocLibName));
-- if (nullptr == (ocloc.invoke = reinterpret_cast<pOclocInvoke>(ocloc.library->getProcAddress("oclocInvoke")))) {
-- std::cout << "Error! Couldn't find OclocInvoke function.\n";
-- return;
-- }
-- if (nullptr == (ocloc.freeOutput = reinterpret_cast<pOclocFreeOutput>(ocloc.library->getProcAddress("oclocFreeOutput")))) {
-- std::cout << "Error! Couldn't find OclocFreeOutput function.\n";
-- return;
-- }
-+ ocloc.invoke = oclocInvoke;
-+ ocloc.freeOutput = oclocFreeOutput;
- this->oclocLib = std::move(ocloc);
- }
- };