summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-10-23 17:48:50 +0000
committerJan Beich <jbeich@FreeBSD.org>2020-10-23 17:48:50 +0000
commit8574b5fbafbc0c1bcc7c4e36180295a954b603db (patch)
tree7fab9f6c0d7c9360b515a9aa2c5ebb144849210b /lang/intel-compute-runtime
parentdevel/level-zero: update to 1.0.16 (diff)
lang/intel-compute-runtime: update to 20.42.18209
Changes: https://github.com/intel/compute-runtime/compare/20.41.18123...20.42.18209 Reported by: GitHub (watch releases)
Notes
Notes: svn path=/head/; revision=553121
Diffstat (limited to 'lang/intel-compute-runtime')
-rw-r--r--lang/intel-compute-runtime/Makefile2
-rw-r--r--lang/intel-compute-runtime/distinfo6
-rw-r--r--lang/intel-compute-runtime/files/patch-broadcast54
3 files changed, 4 insertions, 58 deletions
diff --git a/lang/intel-compute-runtime/Makefile b/lang/intel-compute-runtime/Makefile
index f38901922a83..d79b288816fe 100644
--- a/lang/intel-compute-runtime/Makefile
+++ b/lang/intel-compute-runtime/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= compute-runtime
-DISTVERSION= 20.41.18123
+DISTVERSION= 20.42.18209
CATEGORIES= lang
PKGNAMEPREFIX= intel-
diff --git a/lang/intel-compute-runtime/distinfo b/lang/intel-compute-runtime/distinfo
index dc993bde5a43..3f802722cc10 100644
--- a/lang/intel-compute-runtime/distinfo
+++ b/lang/intel-compute-runtime/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1602101751
-SHA256 (intel-compute-runtime-20.41.18123_GH0.tar.gz) = 17e929e25f9124751a2d3efe086c3cd7a46875da59c3f34e941d5bfef3f9710d
-SIZE (intel-compute-runtime-20.41.18123_GH0.tar.gz) = 3545291
+TIMESTAMP = 1602881282
+SHA256 (intel-compute-runtime-20.42.18209_GH0.tar.gz) = aa7f71e327f8969ecf419565f315d1a13b8ce473d392de177ec99cd7924db493
+SIZE (intel-compute-runtime-20.42.18209_GH0.tar.gz) = 3563416
diff --git a/lang/intel-compute-runtime/files/patch-broadcast b/lang/intel-compute-runtime/files/patch-broadcast
deleted file mode 100644
index 92baf4026b5d..000000000000
--- a/lang/intel-compute-runtime/files/patch-broadcast
+++ /dev/null
@@ -1,54 +0,0 @@
-Broadcast a signal to all threads on FreeBSD
-
-shared/source/page_fault_manager/linux/cpu_page_fault_manager_linux.cpp:90:33: error: use of undeclared identifier '__NR_gettid'
- auto selfThreadId = syscall(__NR_gettid);
- ^
-shared/source/page_fault_manager/linux/cpu_page_fault_manager_linux.cpp:113:13: error: use of undeclared identifier 'SYS_tkill'
- syscall(SYS_tkill, threadId, SIGUSR1);
- ^
-
---- shared/source/page_fault_manager/linux/cpu_page_fault_manager_linux.cpp.orig 2020-07-08 11:59:33 UTC
-+++ shared/source/page_fault_manager/linux/cpu_page_fault_manager_linux.cpp
-@@ -9,11 +9,15 @@
-
- #include "shared/source/helpers/debug_helpers.h"
-
--#include <dirent.h>
- #include <sys/mman.h>
-+#if defined(__linux__)
-+#include <dirent.h>
- #include <sys/syscall.h>
- #include <sys/types.h>
- #include <unistd.h>
-+#elif defined(__FreeBSD__)
-+#include <sys/thr.h>
-+#endif
-
- namespace NEO {
- std::unique_ptr<PageFaultManager> PageFaultManager::create() {
-@@ -87,6 +91,7 @@ void PageFaultManagerLinux::callPreviousHandler(int si
- is broadcasted to ensure that every thread received signal and is
- stucked on PageFaultHandler's mutex before copy from GPU to CPU proceeds. */
- void PageFaultManagerLinux::broadcastWaitSignal() {
-+#if defined(__linux__)
- auto selfThreadId = syscall(__NR_gettid);
-
- auto procDir = opendir("/proc/self/task");
-@@ -107,10 +112,17 @@ void PageFaultManagerLinux::broadcastWaitSignal() {
- }
-
- closedir(procDir);
-+#elif defined(__FreeBSD__)
-+ sendSignalToThread(-1);
-+#endif
- }
-
- void PageFaultManagerLinux::sendSignalToThread(int threadId) {
-+#if defined(__linux__)
- syscall(SYS_tkill, threadId, SIGUSR1);
-+#elif defined(__FreeBSD__)
-+ thr_kill(threadId, SIGUSR1);
-+#endif
- }
-
- } // namespace NEO