1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

lang/intel-compute-runtime: update to 21.09.19150

Changes:	https://github.com/intel/compute-runtime/compare/21.08.19096...21.09.19150
Reported by:	GitHub (watch releases)
This commit is contained in:
Jan Beich 2021-03-05 14:57:43 +00:00
parent 6e0768b915
commit ebda41dd3c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567390
3 changed files with 41 additions and 5 deletions

View File

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= compute-runtime
DISTVERSION= 21.08.19096
PORTREVISION= 1
DISTVERSION= 21.09.19150
CATEGORIES= lang
PKGNAMEPREFIX= intel-

View File

@ -1,5 +1,5 @@
TIMESTAMP = 1613411392
SHA256 (intel-compute-runtime-21.08.19096_GH0.tar.gz) = 2114918e6990c5be8e0ac5cdfae74cbc7747b73c4cb93adf0210c35edc33f644
SIZE (intel-compute-runtime-21.08.19096_GH0.tar.gz) = 3765142
TIMESTAMP = 1614027337
SHA256 (intel-compute-runtime-21.09.19150_GH0.tar.gz) = c38172bc7460cc3ec104ef29a655788cdd8329a62e894ee1ec116e78ebc451a5
SIZE (intel-compute-runtime-21.09.19150_GH0.tar.gz) = 3780882
SHA256 (2a423820aaa4.patch) = dd034e856e75d70bc6b63204aa2c67530a3212d111b67a703e4cbeb84e61685b
SIZE (2a423820aaa4.patch) = 947

View File

@ -0,0 +1,37 @@
/sys is Linux-specific. FreeBSD has linsysfs(5) but not mounted by default.
--- shared/source/os_interface/linux/sys_calls_linux.cpp.orig 2021-02-22 20:55:37 UTC
+++ shared/source/os_interface/linux/sys_calls_linux.cpp
@@ -12,7 +12,11 @@
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
+#if defined(__linux__)
#include <sys/sysmacros.h>
+#elif defined(__DragonFly__) || defined(__FreeBSD__)
+#include <cstdlib>
+#endif
#include <unistd.h>
namespace NEO {
@@ -36,6 +40,7 @@ int readlink(const char *path, char *buf, size_t bufsi
}
int getDevicePath(int deviceFd, char *buf, size_t &bufSize) {
+#if defined(__linux__)
struct stat st;
if (fstat(deviceFd, &st)) {
return -1;
@@ -45,6 +50,12 @@ int getDevicePath(int deviceFd, char *buf, size_t &buf
major(st.st_rdev), minor(st.st_rdev));
return 0;
+#elif defined(__DragonFly__) || defined(__FreeBSD__)
+ return fdevname_r(deviceFd, buf, (int)bufSize) ? 0 : -1;
+#else
+ // Extract drmGetDeviceNameFromFd2 from libdrm
+ return -1;
+#endif
}
} // namespace SysCalls
} // namespace NEO