Package openimagedenoise: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 %define build_type RelWithDebInfo %set_verify_elf_method strict %ifarch x86_64 %def_with cuda %filter_from_requires /libcudart\.so\.12/d %else %def_without cuda %endif %def_with hip %define oname oidn %define soname 2 Name: openimagedenoise Version: 2.2.2 Release: alt3 Summary: Intel Open Image Denoise library Group: Development/Other License: Apache-2.0 URL: https://www.openimagedenoise.org/ ExclusiveArch: x86_64 aarch64 # https://github.com/OpenImageDenoise/oidn/releases/download/v%version/oidn-%version.src.tar.gz Source: %oname-%version.tar Source2: %name.watch Patch0: oidn-rocm-6.0.0.patch Patch1: oidn-alt-aarch64-cuda-glibc-fix.patch BuildRequires: cmake BuildRequires: python3 BuildRequires: tbb-devel BuildRequires: ispc BuildRequires: libopenimageio-devel chrpath %if_with hip BuildRequires: hip-devel hip-runtime-amd rocm-comgr-devel rocm-device-libs hsa-rocr-devel %endif %if_with cuda BuildRequires: nvidia-cuda-devel nvidia-cuda-devel-static gcc12-c++ %else BuildRequires: gcc-c++ %endif %description Intel Open Image Denoise is an open source library of high-performance, high-quality denoising filters for images rendered with ray tracing. Intel Open Image Denoise is part of the Intel oneAPI Rendering Toolkit and is released under the permissive Apache 2.0 license. %package -n lib%name%soname Summary: Intel Open Image Denoise library Group: System/Libraries %description -n lib%name%soname Intel Open Image Denoise is an open source library of high-performance, high-quality denoising filters for images rendered with ray tracing. Intel Open Image Denoise is part of the Intel oneAPI Rendering Toolkit and is released under the permissive Apache 2.0 license. %package devel Summary: Intel Open Image Denoise library Group: Development/C++ Requires: %name = %EVR Requires: lib%name%soname = %EVR %description devel Intel Open Image Denoise is an open source library of high-performance, high-quality denoising filters for images rendered with ray tracing. Intel Open Image Denoise is part of the Intel oneAPI Rendering Toolkit and is released under the permissive Apache 2.0 license. This package contains development files for Intel Open Image Denoise. %package hip Summary: Intel Open Image Denoise library with HIP support Group: System/Libraries Requires: lib%{name}%{soname} = %EVR %description hip Intel Open Image Denoise library with HIP support %package cuda Summary: Intel Open Image Denoise library with CUDA support Group: System/Libraries Requires: lib%{name}%{soname} = %EVR, libcudart %description cuda Intel Open Image Denoise library with CUDA support %prep %setup -n %oname-%version %patch0 -p2 %ifarch aarch64 # see https://github.com/OE4T/meta-tegra/pull/1445 %patch1 -p2 mkdir -p /tmp/bits cat >/tmp/bits/math-vector.h <<EOF #include <bits/libm-simd-decl-stubs.h> #undef __ADVSIMD_VEC_MATH_SUPPORTED #undef __SVE_VEC_MATH_SUPPORTED EOF %endif %build %if_with hip export ROCM_PATH=/usr export ALTWRAP_LLVM_VERSION=rocm %endif %if_with cuda export GCC_VERSION=12 %endif %cmake \ -DOIDN_STATIC_LIB:BOOL=OFF \ %if_with hip -DLLD_DIR=%_prefix/lib/llvm-rocm/%_lib/cmake/lld \ -DOIDN_DEVICE_HIP:BOOL=ON \ %endif %if_with cuda -DOIDN_DEVICE_CUDA:BOOL=ON \ -DOIDN_DEVICE_CUDA_API=RuntimeShared \ %endif -DCMAKE_BUILD_TYPE=%build_type \ -DCMAKE_STRIP:STRING="" %nil %cmake_build %install %cmake_install # Remove duplicated documentation rm -rf %buildroot%_defaultdocdir/OpenImageDenoise %if_with hip chrpath -d %buildroot%_libdir/libOpenImageDenoise_device_hip.so.%{version} %endif %if_with cuda chrpath -d %buildroot%_libdir/libOpenImageDenoise_device_cuda.so.%{version} %endif %files %_bindir/%{oname}* %files -n lib%name%soname %doc LICENSE.txt %doc CHANGELOG.md README.md readme.pdf %_libdir/lib*.so.%{soname} %_libdir/lib*.so.%{soname}.* %if_with hip %exclude %_libdir/libOpenImageDenoise_device_hip.so.%{version} %endif %if_with cuda %exclude %_libdir/libOpenImageDenoise_device_cuda.so.%{version} %endif %if_with hip %files hip %_libdir/libOpenImageDenoise_device_hip.so.%{version} %endif %if_with cuda %files cuda %_libdir/libOpenImageDenoise_device_cuda.so.%{version} %endif %files devel %_includedir/* %_libdir/lib*.so %_libdir/cmake/* %changelog * Thu Apr 04 2024 L.A. Kostis <lakostis@altlinux.ru> 2.2.2-alt3 - Enable HIP back. - aarch64: added build workaround. * Thu Mar 21 2024 L.A. Kostis <lakostis@altlinux.ru> 2.2.2-alt2 - Apply rocm6 patch. - Disable HIP for ROCm version upgrade. * Sat Mar 16 2024 L.A. Kostis <lakostis@altlinux.ru> 2.2.2-alt1 - Updated to upstream version 2.2.2. - aarch64: enable build (officially supported now). - x86_64: use shared cudart. - x86_64: disable rocm6 patch for now. * Sun Dec 24 2023 L.A. Kostis <lakostis@altlinux.ru> 2.1.0-alt3 - Added patch for rocm-6.0.0. * Sun Dec 10 2023 L.A. Kostis <lakostis@altlinux.ru> 2.1.0-alt2 - Enabled CUDA support (and downgrade to gcc12 on arches where CUDA packaged). - Split HIP/CUDA support libs to separate pkgs. * Wed Oct 25 2023 L.A. Kostis <lakostis@altlinux.ru> 2.1.0-alt1 - Updated to upstream version 2.1.0. * Wed Jul 05 2023 L.A. Kostis <lakostis@altlinux.ru> 2.0.1-alt1 - Updated to upstream version 2.0.1. - Rebuild with HIP rocm-5.6.0. * Tue Jun 20 2023 L.A. Kostis <lakostis@altlinux.ru> 2.0.0-alt1 - Updated to upstream version 2.0.0. - Built with HIP. * Mon Sep 06 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.1-alt1 - Updated to upstream version 1.4.1. * Wed Jun 09 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.0-alt1 - Initial build for ALT. |