Date: Thu, 23 Jul 2020 21:29:59 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r542966 - in head/lang/intel-compute-runtime: . files Message-ID: <202007232129.06NLTxQ5077458@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Thu Jul 23 21:29:59 2020 New Revision: 542966 URL: https://svnweb.freebsd.org/changeset/ports/542966 Log: lang/intel-compute-runtime: update to 20.28.17293 Changes: https://github.com/intel/compute-runtime/compare/20.27.17231...20.28.17293 Reported by: GitHub (watch releases) Added: head/lang/intel-compute-runtime/files/patch-broadcast (contents, props changed) Modified: head/lang/intel-compute-runtime/Makefile (contents, props changed) head/lang/intel-compute-runtime/distinfo (contents, props changed) Modified: head/lang/intel-compute-runtime/Makefile ============================================================================== --- head/lang/intel-compute-runtime/Makefile Thu Jul 23 21:29:51 2020 (r542965) +++ head/lang/intel-compute-runtime/Makefile Thu Jul 23 21:29:59 2020 (r542966) @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= compute-runtime -DISTVERSION= 20.27.17231 -PORTREVISION= 1 +DISTVERSION= 20.28.17293 CATEGORIES= lang PKGNAMEPREFIX= intel- Modified: head/lang/intel-compute-runtime/distinfo ============================================================================== --- head/lang/intel-compute-runtime/distinfo Thu Jul 23 21:29:51 2020 (r542965) +++ head/lang/intel-compute-runtime/distinfo Thu Jul 23 21:29:59 2020 (r542966) @@ -1,3 +1,3 @@ -TIMESTAMP = 1593589565 -SHA256 (intel-compute-runtime-20.27.17231_GH0.tar.gz) = 962c1a95ce9ef22df60ea50cfc8ee915b7f7ee1363e703c0a3222760fe9f273e -SIZE (intel-compute-runtime-20.27.17231_GH0.tar.gz) = 3244989 +TIMESTAMP = 1594209573 +SHA256 (intel-compute-runtime-20.28.17293_GH0.tar.gz) = f8e56b139cde0e9dba20522d16efef77c0586c466301cbd6992b92b939366bad +SIZE (intel-compute-runtime-20.28.17293_GH0.tar.gz) = 3263475 Added: head/lang/intel-compute-runtime/files/patch-broadcast ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/intel-compute-runtime/files/patch-broadcast Thu Jul 23 21:29:59 2020 (r542966) @@ -0,0 +1,54 @@ +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007232129.06NLTxQ5077458>