%global solana_suffix mainnet # Check `--device` in `ispc --help` for available options. %global validator_target_cpu core-avx2 Name: solana-perf-libs-%{solana_suffix} Version: 0.19.3 Release: 3%{?dist} Summary: C and CUDA libraries to enhance Solana (no CUDA, only SIMD) License: Apache-2.0 URL: https://github.com/solana-labs/solana-perf-libs/ Source0: https://github.com/solana-labs/solana-perf-libs/archive/v%{version}/solana-perf-libs-%{version}.tar.gz Patch0: override-device-for-avx512skx.patch BuildRequires: gcc BuildRequires: make BuildRequires: ispc %description C and CUDA libraries to enhance Solana (no CUDA, only SIMD). %prep %autosetup -N -b0 -n solana-perf-libs-%{version} %patch -P 0 -p1 %build cd src/poh-simd %make_build ISPC_FLAGS="-g -O3 --device=%{validator_target_cpu} --opt=fast-masked-vload --opt=force-aligned-memory --pic -I." %install mkdir -p %{buildroot}/opt/solana/%{solana_suffix}/bin/perf-libs cp -p \ src/poh-simd/libs/libpoh-simd.so \ %{buildroot}/opt/solana/%{solana_suffix}/bin/perf-libs/ %files %dir /opt/solana %dir /opt/solana/%{solana_suffix} %dir /opt/solana/%{solana_suffix}/bin %dir /opt/solana/%{solana_suffix}/bin/perf-libs /opt/solana/%{solana_suffix}/bin/perf-libs/libpoh-simd.so %changelog * Sun Sep 22 2024 Ivan Mironov - 0.19.3-3 - Fix build for Fedora 41 * Sun Sep 11 2022 Ivan Mironov - 0.19.3-2 - More flags for ispc * Sat Mar 20 2021 Ivan Mironov - 0.19.3-1 - Initial packaging for Mainnet