diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b51c770..0000000 --- a/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -/beignet-48f8e5b.tar.gz -/Release_v0.8.tar.gz -/beignet-0.9.0-source.tar.gz -/beignet-0.9.1-source.tar.gz -/beignet-0.9.2-source.tar.gz -/beignet-1.0.0-source.tar.gz -/beignet-1.0.1-source.tar.gz -/beignet-1.0.3-source.tar.gz -/beignet-1.1.0-source.tar.gz -/beignet-1.1.1-source.tar.gz -/beignet-1.1.2-source.tar.gz -/beignet-1.2.0-source.tar.gz -/beignet-1.2.1-source.tar.gz -/beignet-1.3.0-source.tar.gz -/beignet-1.3.1-source.tar.gz -/beignet-36f6a8b.tar.xz -/beignet-1.3.2-source.tar.gz diff --git a/0001-Add-AppStream-metadata.patch b/0001-Add-AppStream-metadata.patch deleted file mode 100644 index 4b7a372..0000000 --- a/0001-Add-AppStream-metadata.patch +++ /dev/null @@ -1,108 +0,0 @@ -From 90a6c3c999f2ee5fd20f9f5866a6164866ac7dfa Mon Sep 17 00:00:00 2001 -From: "Rebecca N. Palmer" -Date: Sun, 15 Jan 2017 23:17:49 +0000 -Subject: [PATCH] Add AppStream metadata - -AppStream is a standard for software metadata, -including what hardware a driver supports: -https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html - -Signed-off-by: Rebecca N. Palmer -Reviewed-by: Yang Rong -(cherry picked from commit 033464f4b8045a49dbcc1a84cde5c05986ca11c2) ---- - CMakeLists.txt | 5 +++++ - com.intel.beignet.metainfo.xml.in | 18 ++++++++++++++++++ - update_metainfo_xml.py | 32 ++++++++++++++++++++++++++++++++ - 3 files changed, 55 insertions(+) - create mode 100644 com.intel.beignet.metainfo.xml.in - create mode 100755 update_metainfo_xml.py - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index face3ce7..2e520213 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -37,6 +37,7 @@ INCLUDE (GNUInstallDirs OPTIONAL) - # support old CMake without GNUInstallDirs - if (NOT CMAKE_INSTALL_FULL_LIBDIR) - set (CMAKE_INSTALL_FULL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib") -+ set (CMAKE_INSTALL_FULL_DATADIR "${CMAKE_INSTALL_PREFIX}/share") - set (BEIGNET_LIBRARY_ARCHITECTURE "") - else (NOT CMAKE_INSTALL_FULL_LIBDIR) - set (BEIGNET_LIBRARY_ARCHITECTURE "${CMAKE_LIBRARY_ARCHITECTURE}") -@@ -340,6 +341,10 @@ IF(BUILD_EXAMPLES) - ADD_SUBDIRECTORY(examples) - ENDIF(BUILD_EXAMPLES) - -+add_custom_target(metainfo ALL -+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/update_metainfo_xml.py "${LIBCL_DRIVER_VERSION_MAJOR}.${LIBCL_DRIVER_VERSION_MINOR}.${LIBCL_DRIVER_VERSION_PATCH}" ${CMAKE_CURRENT_BINARY_DIR}) -+install (FILES ${CMAKE_CURRENT_BINARY_DIR}/com.intel.beignet.metainfo.xml DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/metainfo) -+ - SET(CPACK_SET_DESTDIR ON) - SET(CPACK_PACKAGE_VERSION_MAJOR "${LIBCL_DRIVER_VERSION_MAJOR}") - SET(CPACK_PACKAGE_VERSION_MINOR "${LIBCL_DRIVER_VERSION_MINOR}") -diff --git a/com.intel.beignet.metainfo.xml.in b/com.intel.beignet.metainfo.xml.in -new file mode 100644 -index 00000000..65a2fad9 ---- /dev/null -+++ b/com.intel.beignet.metainfo.xml.in -@@ -0,0 +1,18 @@ -+ -+ -+com.intel.beignet -+Beignet -+OpenCL (GPU compute) driver for Intel GPUs -+This allows using Intel integrated GPUs for general computation, speeding up some applications. -+ -+@modalias_list@ -+ -+MIT -+LGPL-2.1+ -+https://www.freedesktop.org/wiki/Software/Beignet/ -+https://bugs.freedesktop.org/buglist.cgi?product=Beignet&component=Beignet&resolution=--- -+Intel -+ -+ -+ -+ -diff --git a/update_metainfo_xml.py b/update_metainfo_xml.py -new file mode 100755 -index 00000000..487bd757 ---- /dev/null -+++ b/update_metainfo_xml.py -@@ -0,0 +1,32 @@ -+#!/usr/bin/python -+ -+import re -+import sys -+import os.path -+from io import open -+ -+if len(sys.argv) != 3: -+ raise TypeError("requires version_string and output_directory") -+version_string = sys.argv[1] -+output_directory = sys.argv[2] -+source_directory = os.path.dirname(sys.argv[0]) -+source_file = open(os.path.join(source_directory,"src/cl_device_data.h"),"r",encoding = 'utf-8') -+device_ids = [] -+supported = False # first few devices in the file aren't supported -+for line in source_file: -+ device_id = re.match(r"#define\s+PCI_CHIP_([A-Za-z0-9_]+)\s+0x([0-9A-Fa-f]+)",line) -+ if device_id is None: -+ continue -+ if "IVYBRIDGE" in device_id.group(1): -+ supported = True # start of supported devices -+ if supported: -+ device_ids.append(device_id.group(2).upper()) -+source_file.close() -+modalias_list_string = "\n".join("pci:v00008086d0000{}*".format(device_id) for device_id in sorted(device_ids)) -+metadata_file_in = open(os.path.join(source_directory,"com.intel.beignet.metainfo.xml.in"),"r",encoding = 'utf-8') -+metadata_string = metadata_file_in.read() -+metadata_file_in.close() -+metadata_string = metadata_string.replace("@modalias_list@",modalias_list_string).replace("@version@",version_string) -+metadata_file_out = open(os.path.join(output_directory,"com.intel.beignet.metainfo.xml"),"w",encoding = 'utf-8') -+metadata_file_out.write(metadata_string) -+metadata_file_out.close() --- -2.14.2 - diff --git a/beignet-llvm6.patch b/beignet-llvm6.patch deleted file mode 100644 index a936ea6..0000000 --- a/beignet-llvm6.patch +++ /dev/null @@ -1,37 +0,0 @@ -Description: Support LLVM 6 - -LLVMContext::setDiagnosticHandler and LoopInfo::markAsRemoved are renamed - -Author: Rebecca N. Palmer -Forwarded: - -diff -uNr Beignet-1.3.2-Source.orig/backend/src/llvm/llvm_to_gen.cpp Beignet-1.3.2-Source/backend/src/llvm/llvm_to_gen.cpp ---- Beignet-1.3.2-Source.orig/backend/src/llvm/llvm_to_gen.cpp 2017-10-24 08:04:48.000000000 +0200 -+++ Beignet-1.3.2-Source/backend/src/llvm/llvm_to_gen.cpp 2018-07-21 09:02:25.891056989 +0200 -@@ -322,7 +322,11 @@ - DataLayout DL(&mod); - - gbeDiagnosticContext dc; -- mod.getContext().setDiagnosticHandler(&gbeDiagnosticHandler,&dc); -+#if LLVM_VERSION_MAJOR >= 6 -+ mod.getContext().setDiagnosticHandlerCallBack(&gbeDiagnosticHandler, &dc); -+#else -+ mod.getContext().setDiagnosticHandler(&gbeDiagnosticHandler, &dc); -+#endif - - #if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 37 - mod.setDataLayout(DL); -diff -uNr Beignet-1.3.2-Source.orig/backend/src/llvm/llvm_unroll.cpp Beignet-1.3.2-Source/backend/src/llvm/llvm_unroll.cpp ---- Beignet-1.3.2-Source.orig/backend/src/llvm/llvm_unroll.cpp 2017-10-24 08:04:48.000000000 +0200 -+++ Beignet-1.3.2-Source/backend/src/llvm/llvm_unroll.cpp 2018-07-21 09:03:15.524362357 +0200 -@@ -205,7 +205,9 @@ - if (parentTripCount != 0 && currTripCount * parentTripCount > 32) { - //Don't change the unrollID if doesn't force unroll. - //setUnrollID(parentL, false); --#if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 38 -+#if LLVM_VERSION_MAJOR >= 6 -+ loopInfo.erase(parentL); -+#elif LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 38 - loopInfo.markAsRemoved(parentL); - #else - LPM.deleteLoopFromQueue(parentL); diff --git a/beignet.spec b/beignet.spec deleted file mode 100644 index 15e2ea1..0000000 --- a/beignet.spec +++ /dev/null @@ -1,239 +0,0 @@ -Name: beignet -Version: 1.3.2 -Release: 6%{?dist} -Summary: Open source implementation of the OpenCL for Intel GPUs - -License: LGPLv2+ -URL: https://01.org/beignet/ -Source0: https://01.org/sites/default/files/%{name}-%{version}-source.tar.gz -# https://cgit.freedesktop.org/beignet/commit/?id=033464f4b8045a49dbcc1a84cde5c05986ca11c2 -Patch1: 0001-Add-AppStream-metadata.patch -# Sent to ignatenkobrain by Debian maintainers via email -Patch2: beignet-llvm6.patch - -BuildRequires: cmake -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: llvm-devel -BuildRequires: clang-devel -BuildRequires: ncurses-devel -BuildRequires: zlib-devel -BuildRequires: pkgconfig(x11) -BuildRequires: pkgconfig(libdrm) -BuildRequires: pkgconfig(libdrm_intel) >= 2.4.52 -BuildRequires: pkgconfig(xext) -BuildRequires: pkgconfig(xfixes) -BuildRequires: pkgconfig(gl) -BuildRequires: pkgconfig(egl) >= 11.0.0 -BuildRequires: ocl-icd-devel -BuildRequires: pkgconfig(libva) -BuildRequires: pkgconfig(libva-x11) -BuildRequires: %{_bindir}/appstream-util - -BuildRequires: python3-devel - -Requires: opencl-filesystem - -ExclusiveArch: x86_64 %{ix86} - -%description -Beignet is an open source implementation of the OpenCL specification - a generic -compute oriented API. This code base contains the code to run OpenCL programs -on Intel GPUs which basically defines and implements the OpenCL host functions -required to initialize the device, create the command queues, the kernels and -the programs and run them on the GPU. - -%package devel -Summary: Development files for %{name} -Requires: opencl-headers -Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} - -%description devel -%{summary}. - -%prep -%autosetup -p1 -n Beignet-%{version}-Source -mkdir %{_target_platform} - -%build -pushd %{_target_platform} - %cmake .. \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DLLVM_INSTALL_DIR=%{_bindir}/ \ - -DENABLE_GL_SHARING=ON \ - -DEXPERIMENTAL_DOUBLE=ON \ - %{nil} -popd -%make_build -C %{_target_platform} - -%install -%make_install -C %{_target_platform} -find %{buildroot}%{_includedir}/CL/ -not -name "cl_intel.h" -type f -print -delete - -%check -appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/com.intel.beignet.metainfo.xml || : - -%files -%license COPYING -%doc README.md -%{_libdir}/beignet/ -%{_sysconfdir}/OpenCL/vendors/intel-beignet.icd -%{_datadir}/metainfo/com.intel.beignet.metainfo.xml - -%files devel -%doc docs/* -%{_includedir}/CL/cl_intel.h - -%changelog -* Thu Jan 31 2019 Fedora Release Engineering - 1.3.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Thu Jul 12 2018 Fedora Release Engineering - 1.3.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 1.3.2-4 -- Rebuilt for Python 3.7 - -* Wed Feb 07 2018 Fedora Release Engineering - 1.3.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Dec 13 2017 Tom Stellard - 1.3.2-2 -- Rebuild for LLVM 5.0 - -* Wed Nov 01 2017 Igor Gnatenko - 1.3.2-1 -- Update to 1.3.2 - -* Tue Oct 24 2017 Igor Gnatenko - 1.3.1-7 -- Rebuild for LLVM 5.0 - -* Wed Oct 04 2017 Igor Gnatenko - 1.3.1-6 -- Sync with 1.3 branch - -* Wed Aug 02 2017 Fedora Release Engineering - 1.3.1-5.git20170622.36f6a8b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1.3.1-4.git20170622.36f6a8b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Jul 14 2017 Igor Gnatenko - 1.3.1-3.git20170622.36f6a8b -- rebase to latest git, otherwise it is completely broken - -* Tue Mar 21 2017 Tom Stellard - 1.3.1-2 -- Fix build with LLVM 4.0 - -* Mon Mar 13 2017 Igor Gnatenko - 1.3.1-1 -- Update to 1.3.1 - -* Fri Feb 10 2017 Fedora Release Engineering - 1.3.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Sun Jan 22 2017 Igor Gnatenko - 1.3.0-3 -- Update patch for OCL 2.0 - -* Sat Jan 21 2017 Igor Gnatenko - 1.3.0-2 -- Enable OpenCL 2.0 - -* Fri Jan 20 2017 Igor Gnatenko - 1.3.0-1 -- Update to 1.3.0 (RHBZ #1415148) - -* Tue Nov 08 2016 Igor Gnatenko - 1.2.1-1 -- Update to 1.2.1 (RHBZ #1392639) - -* Thu Oct 27 2016 Dave Airlie - 1.2.0-2 -- rebase to llvm 3.9 - -* Tue Aug 30 2016 Igor Gnatenko - 1.2.0-1 -- Update to 1.2.0 (RHBZ #1328527) -- Drop virtual Provides for ocl-icd - -* Tue Jun 28 2016 Igor Gnatenko - 1.1.2-1 -- Update to 1.1.2 (RHBZ #1328527) - -* Fri Apr 08 2016 Björn Esser - 1.1.1-5 -- add virtual Provides for ocl-icd (RHBZ #1317603) - -* Wed Feb 03 2016 Fedora Release Engineering - 1.1.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Tue Nov 10 2015 Fedora Release Engineering - 1.1.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 - -* Thu Nov 05 2015 Igor Gnatenko - 1.1.1-2 -- Backport patch from upstream against "failed to release userptr" (RHBZ #1277925) - -* Fri Oct 09 2015 Fedora Release Monitoring - 1.1.1-1 -- Update to 1.1.1 (#1249611) - -* Tue Oct 06 2015 Igor Gnatenko - 1.1.0-2 -- Make beignet compiling and working with LLVM 3.7 - -* Mon Aug 03 2015 Igor Gnatenko - 1.1.0-1 -- Update to 1.1.0 (RHBZ #1249611) - -* Wed Jun 17 2015 Fedora Release Engineering - 1.0.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Tue May 19 2015 Igor Gnatenko - 1.0.3-2 -- Fix licensing issues with not compatipble LGPL code -- use python3-devel for fedora23+ -- use license macro -- use make_build macro - -* Fri May 08 2015 Igor Gnatenko - 1.0.3-1 -- Update to 1.0.3 (RHBZ #1202329) - -* Mon Jan 19 2015 Igor Gnatenko - 1.0.1-1 -- 1.0.1 (RHBZ #1183497) - -* Mon Nov 17 2014 Igor Gnatenko - 1.0.0-1 -- 1.0.0 (RHBZ #1142892) - -* Fri Aug 15 2014 Fedora Release Engineering - 0.9.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Mon Jul 28 2014 Igor Gnatenko - 0.9.2-1 -- 0.9.2 upstream release (RHBZ #1123941) - -* Sun Jul 06 2014 Igor Gnatenko - 0.9.1-1 -- 0.9.1 upstream release (RHBZ #1116622) - -* Fri Jul 04 2014 Igor Gnatenko - 0.9.0-1 -- Update ot 0.9.0 - -* Sat Jun 07 2014 Fedora Release Engineering - 0.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Feb 13 2014 Igor Gnatenko - 0.8-2 -- Update LLVM/Terminfo patch from upstream maillist - -* Wed Feb 12 2014 Igor Gnatenko - 0.8-1 -- 0.8 upstream release - -* Mon Jan 20 2014 Igor Gnatenko - 0.3-9.48f8e5b -- We need opencl-filesystem as requires - -* Thu Jan 16 2014 Igor Gnatenko - 0.3-8.48f8e5b -- Latest master branch - -* Wed Jan 15 2014 Igor Gnatenko - 0.3-7.984d680 -- Fix libdir - -* Wed Jan 15 2014 Igor Gnatenko - 0.3-6.984d680 -- Update to latest master + apply patches from upstream list - -* Tue Jan 14 2014 Igor Gnatenko - 0.3-5.e427b3e -- spec: trivial fix - -* Mon Jan 13 2014 Igor Gnatenko - 0.3-4.e427b3e -- Build only on x86 arches, because only Intel GPUs supported here -- Fix license -- Update description - -* Mon Jan 13 2014 Igor Gnatenko - 0.3-3.e427b3e -- Update to latest master - -* Fri Jan 10 2014 Igor Gnatenko - 0.3-2.991e0d7 -- Git from OpenCL-1.2 branch - -* Fri Jan 10 2014 Igor Gnatenko - 0.3-1 -- Initial package diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..84d14e4 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Starting in Q1’2018, Beignet has been deprecated in favor of NEO OpenCL driver diff --git a/sources b/sources deleted file mode 100644 index 07038ad..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (beignet-1.3.2-source.tar.gz) = ed09a895c2f7e9b6e18687a899f1303dfda95e505c3c2d54bf7598cc4eba6c2fb5926589b19dd294384a4ff3f832c43235b1f03f8b7fd295cd558e78bda1400a