diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2020-03-06 23:23:00 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2020-03-06 23:23:00 +0000 |
commit | 69ff0af8179ddb36c2cc86ab2b42fe17dabc0bf7 (patch) | |
tree | 0a017f82ea231557ce556c66ecd7cee5611c43e5 /lang/intel-compute-runtime/files/patch-ocloc-no-dlsym | |
parent | devel/intel-graphics-compiler: update to 1.0.3445 (diff) |
lang/intel-compute-runtime: update to 20.09.15980
Changes: https://github.com/intel/compute-runtime/compare/20.08.15750...20.09.15980
Reported by: GitHub (watch releases)
Notes
Notes:
svn path=/head/; revision=527902
Diffstat (limited to 'lang/intel-compute-runtime/files/patch-ocloc-no-dlsym')
-rw-r--r-- | lang/intel-compute-runtime/files/patch-ocloc-no-dlsym | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lang/intel-compute-runtime/files/patch-ocloc-no-dlsym b/lang/intel-compute-runtime/files/patch-ocloc-no-dlsym new file mode 100644 index 000000000000..fabe89e9bbc1 --- /dev/null +++ b/lang/intel-compute-runtime/files/patch-ocloc-no-dlsym @@ -0,0 +1,34 @@ +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); + } + }; |