Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev:desktop
intel-graphics-compiler
intel-graphics-compiler.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File intel-graphics-compiler.spec of Package intel-graphics-compiler
%define realname intel-graphics-compiler %define realver 1.0.16510.2 %define srcext tar.gz %bcond_without ninja %bcond_without gold %bcond_with clang %define so_ver 1 %define llvm_ver 14 %if 0%{?rhel} >= 8 %define python_pkg platform-python %define python_bin %{_libexecdir}/platform-python %else %define python_pkg python3 %define python_bin %{_bindir}/python3 %endif # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: igc Version: %{realver} Release: wiz%{?extraver:0.}1%{?dist} License: MIT Group: System/Libraries URL: https://github.com/intel/intel-graphics-compiler Summary: Intel(R) Graphics Compiler for OpenCL(TM) # Install-time parameters Provides: %{realname} = %{version}-%{release} Provides: libiga%{__isa_bits}-%{?so_ver} Provides: libigc%{?so_ver} Provides: libigdfcl%{?so_ver} # Build-time parameters BuildRequires: cmake >= 3.13.4 %if %{with gold} BuildRequires: binutils-gold %endif %if %{without clang} BuildRequires: gcc-c++ %endif BuildRequires: bison flex %if %{with ninja} BuildRequires: ninja %endif BuildRequires: %{python_pkg} %{python_pkg}-Mako BuildRequires: libstdc++-devel BuildRequires: opencl-clang-devel BuildRequires: llvm-devel >= %{llvm_ver}.0 llvm-devel < %{llvm_ver}.1 BuildRequires: clang-devel >= %{llvm_ver}.0 clang >= %{llvm_ver}.0 clang-devel < %{llvm_ver}.1 clang < %{llvm_ver}.1 BuildRequires: lld-devel >= %{llvm_ver}.0 lld >= %{llvm_ver}.0 lld-devel < %{llvm_ver}.1 lld < %{llvm_ver}.1 BuildRequires: pkgconfig(libxml-2.0) BuildRequires: spirv-headers spirv-tools-devel BuildRequires: libLLVMSPIRVLib-devel BuildRequires: vc-intrinsics-devel BuildRequires: libffi-devel BuildRoot: %{_tmppath}/%{name}-root Source0: https://github.com/intel/intel-graphics-compiler/archive/refs/tags/igc-%{realver}%{?extraver}.%{srcext}#/%{realname}-%{realver}%{?extraver}.%{srcext} Source2: https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-%{llvm_ver}.0.0/libunwind/include/mach-o/compact_unwind_encoding.h %description The Intel(R) Graphics Compiler for OpenCL(TM) is an llvm based compiler for OpenCL(TM) targeting Intel Gen graphics hardware architecture. %package devel Group: Development/Languages/C and C++ Summary: Development files for Intel(R) Graphics Compiler for OpenCL(TM) Requires: %{name} = %{version}-%{release} Provides: %{realname}-devel = %{version}-%{release} Provides: libiga%{__isa_bits}-devel Provides: libigc-devel Provides: libigdfcl-devel Provides: pkgconfig(igc-opencl) = %{version}-%{release} %description devel The Intel(R) Graphics Compiler for OpenCL(TM) is an llvm based compiler for OpenCL(TM) targeting Intel Gen graphics hardware architecture. This package contains headers and libraries required to embed Intel(R) Graphics Compiler into other software. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-igc-%{realver}%{?extraver} # Build step (compile/build binaries, documentation, etc) %build _LLVM_VER=$(rpm -q --qf '%%{VERSION}' llvm-devel) _CFLAGS='%{optflags} %{?gcc_lto} -Wno-error=deprecated-declarations -Wno-error=odr' _LDFLAGS='-Wl,--strip-all -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?gcc_lto} -fuse-ld=%{?with_gold:gold -Wl,--threads}%{!?with_gold:bfd}' _CMAKE_ARGS=( -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_FULL_LIBDIR=%{_libdir} -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_CXX_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_VERBOSE_MAKEFILE=YES %if %{with clang} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ %else -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ %endif ) mkdir tmp_build cd tmp_build %{__install} -D -m0644 %{S:2} IGC/llvm-deps/src/libunwind/include/mach-o/compact_unwind_encoding.h cmake .. \ %if %{with ninja} -G Ninja \ %endif "${_CMAKE_ARGS[@]}" \ -Wno-dev \ \ -DIGC_OPTION__CLANG_MODE=Prebuilds \ -DIGC_OPTION__LLVM_MODE=Prebuilds \ -DIGC_OPTION__LLVM_PREFERRED_VERSION=$_LLVM_VER \ -DIGC_OPTION__LLD_MODE=Prebuilds \ -DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds \ -DIGC_OPTION__SPIRV_TOOLS_MODE=Prebuilds \ -DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds \ -DIGC__OPTION_USE_PREINSTALLED_SPRIV_HEADERS=YES \ -Dopencl-header=%{_libdir}/clang/$_LLVM_VER/include/opencl-c.h \ \ -DPYTHON_EXECUTABLE=%{python_bin} %if %{with ninja} ninja -v %{?_smp_mflags} %else %{__make} %{?_smp_mflags} %endif # Install built stuff %install %if %{with ninja} DESTDIR=%{buildroot} ninja -v -C tmp_build install %else %{__make} -C tmp_build install DESTDIR=%{buildroot} %endif # Files list %files %defattr(-,root,root) %doc README.md %{_bindir}/* %{_libdir}/libiga%{__isa_bits}.so.%{?so_ver}* %{_libdir}/libigc.so.%{?so_ver}* %{_libdir}/libigdfcl.so.%{?so_ver}* %exclude %{_libdir}/igc/NOTICES.txt %exclude %{_prefix}/lib/libcommon_clang.so %files devel %defattr(-,root,root) %doc README.md %{_includedir}/iga/ %{_includedir}/igc/ %{_includedir}/visa/ %{_libdir}/libiga%{__isa_bits}.so %{_libdir}/libigc.so %{_libdir}/libigdfcl.so %{_libdir}/pkgconfig/igc-opencl.pc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor