From 3b2acc8b25ec23e19cadc093bfe91bcedc392697 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 17 Apr 2020 14:49:31 +0000 Subject: lang/intel-compute-runtime: update to 20.15.16524 Changes: https://github.com/intel/compute-runtime/compare/20.14.16441...20.15.16524 Reported by: GitHub (watch releases) --- lang/intel-compute-runtime/files/patch-max_freq | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lang/intel-compute-runtime/files/patch-max_freq') diff --git a/lang/intel-compute-runtime/files/patch-max_freq b/lang/intel-compute-runtime/files/patch-max_freq index 44e3b0b82387..c0e4d7e751cc 100644 --- a/lang/intel-compute-runtime/files/patch-max_freq +++ b/lang/intel-compute-runtime/files/patch-max_freq @@ -3,11 +3,11 @@ $ clinfo | fgrep clock Max clock frequency 0MHz ---- shared/source/os_interface/linux/drm_neo.cpp.orig 2020-03-06 21:12:07 UTC +--- shared/source/os_interface/linux/drm_neo.cpp.orig 2020-04-11 07:41:07 UTC +++ shared/source/os_interface/linux/drm_neo.cpp -@@ -22,6 +22,11 @@ - #include +@@ -24,6 +24,11 @@ #include + #include +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#include @@ -16,8 +16,8 @@ + namespace NEO { - const char *Drm::sysFsDefaultGpuPath = "/drm/card0"; -@@ -106,6 +111,16 @@ int Drm::getEnabledPooledEu(int &enabled) { + namespace IoctlHelper { +@@ -104,6 +109,16 @@ int Drm::getEnabledPooledEu(int &enabled) { int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { maxGpuFrequency = 0; @@ -31,10 +31,10 @@ + + maxGpuFrequency = std::stoi(max_freq); +#else - int deviceID = 0; - int ret = getDeviceID(deviceID); - if (ret != 0) { -@@ -127,6 +142,7 @@ int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { + std::string clockSysFsPath = getSysFsPciPath(); + + clockSysFsPath += "/gt_max_freq_mhz"; +@@ -115,6 +130,7 @@ int Drm::getMaxGpuFrequency(int &maxGpuFrequency) { ifs >> maxGpuFrequency; ifs.close(); -- cgit v1.2.3