Name: AdaptiveCpp Version: 24.10.0 Release: 2%{?dist} Summary: Multi-backend implementation of SYCL for CPUs and GPUs License: BSD-2-Clause URL: https://github.com/AdaptiveCpp/AdaptiveCpp Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # https://github.com/AdaptiveCpp/AdaptiveCpp/pull/1670 Patch1: 0001-Allow-to-override-the-default-install-locations.patch # Most AI stacks won't run on 32 bit ExcludeArch: %{ix86} BuildRequires: cmake BuildRequires: boost-devel BuildRequires: libedit-devel BuildRequires: libxml2-devel BuildRequires: python3-devel BuildRequires: zlib-devel BuildRequires: zstd # LLVM optimised CPU support BuildRequires: clang-devel BuildRequires: llvm-devel BuildRequires: libomp-devel # OpenCL support BuildRequires: ocl-icd-devel %description AdaptiveCpp, formerly Open SYCL, formerly hipSYCL, is a modern platform for C++-based heterogeneous programming models targeting CPUs and GPUs from all major vendors. Currently, AdaptiveCpp supports the following programming models: 1) SYCL: At its core is a SYCL implementation that supports many use cases and approaches of implementing SYCL. 2) C++ standard parallelism: Additionally, AdaptiveCpp features experimental support for offloading C++ algorithms from the parallel STL. See here for details on which algorithms can be offloaded. %prep %autosetup -p1 %build %cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DACPP_COMPILER_FEATURE_PROFILE="full" \ -DWITH_OPENCL_BACKEND=ON %cmake_build %install %cmake_install %files %license LICENSE %{_bindir}/acpp %{_bindir}/acpp-appdb-tool %{_bindir}/acpp-hcf-tool %{_bindir}/acpp-info %{_bindir}/syclcc %{_bindir}/syclcc-clang %{_usr}/etc/AdaptiveCpp/acpp-core.json %{_includedir}/AdaptiveCpp/ %{_libdir}/hipSYCL/ %{_libdir}/libacpp-*.so %{_libdir}/cmake/AdaptiveCpp/ %{_libdir}/cmake/hipSYCL/ %{_libdir}/cmake/OpenSYCL/ %changelog * Mon Dec 23 2024 Peter Robinson - 24.10.0-2 - Adjust spec, enable OpenCL * Mon Dec 23 2024 Peter Robinson - 24.10.0-1 - Initial version