From owner-svn-ports-all@freebsd.org Thu Jul 23 21:30:00 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DA08A364261; Thu, 23 Jul 2020 21:30:00 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCQTh42XBz4B1c; Thu, 23 Jul 2020 21:30:00 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0DEE21F73C; Thu, 23 Jul 2020 21:30:00 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06NLTxLn077461; Thu, 23 Jul 2020 21:29:59 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06NLTxQ5077458; Thu, 23 Jul 2020 21:29:59 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202007232129.06NLTxQ5077458@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 23 Jul 2020 21:29:59 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/lang/intel-compute-runtime: . files X-SVN-Commit-Revision: 542966 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2020 21:30:00 -0000 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 + #include ++#if defined(__linux__) ++#include + #include + #include + #include ++#elif defined(__FreeBSD__) ++#include ++#endif + + namespace NEO { + std::unique_ptr 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