Projects
Factory:RISC-V:ROCm
hipcub
_service:tar_scm:hipcub.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:hipcub.spec of Package hipcub
%global upstreamname hipCUB %global rocm_release 6.2 %global rocm_patch 2 %global rocm_version %{rocm_release}.%{rocm_patch} # Compiler is hipcc, which is clang based: %global toolchain clang # hipcc does not support some clang flags %global build_cxxflags %(echo %{optflags} | sed -e 's/-fstack-protector-strong/-Xarch_host -fstack-protector-strong/' -e 's/-fcf-protection/-Xarch_host -fcf-protection/') # there is no debug package %global debug_package %{nil} # Option to test suite for testing on real HW: %bcond_with check Name: hipcub Version: %{rocm_version} Release: 1 Summary: ROCm port of CUDA CUB library Url: https://github.com/ROCm License: MIT and BSD-3-Clause Source0: %{url}/%{upstreamname}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz BuildRequires: cmake %if %{with check} BuildRequires: gtest-devel %endif BuildRequires: rocm-cmake BuildRequires: rocm-comgr-devel BuildRequires: rocm-hip-devel BuildRequires: rocprim-static BuildRequires: rocm-runtime-devel #Use compat if LLVM is not latest, 1 is enable %global compat_build 1 %global maj_ver 18 %if %{compat_build} BuildRequires: llvm%{maj_ver}-devel BuildRequires: llvm%{maj_ver}-test BuildRequires: llvm%{maj_ver}-cmake-utils BuildRequires: llvm%{maj_ver}-libs BuildRequires: lld%{maj_ver} BuildRequires: lld%{maj_ver}-devel BuildRequires: clang%{maj_ver}-devel BuildRequires: clang%{maj_ver}-libs BuildRequires: clang%{maj_ver}-tools-extra %else BuildRequires: llvm-devel = %{version} BuildRequires: llvm-test = %{version} BuildRequires: llvm-cmake-utils = %{version} %endif # Only headers, cmake infra but noarch confuses the libdir # BuildArch: noarch # Only x86_64 works right now: ExclusiveArch: x86_64 riscv64 %description hipCUB is a thin wrapper library on top of rocPRIM or CUB. It enables developers to port a project using the CUB library to the HIP layer to run on AMD hardware. In the ROCm environment, hipCUB uses the rocPRIM library as the backend. %package devel Summary: The %{upstreamname} development package Provides: %{name}-static = %{version}-%{release} Requires: rocprim-devel %description devel The %{upstreamname} development package. %prep %autosetup -p1 -n %{upstreamname}-rocm-%{version} # # The ROCMExportTargetsHeaderOnly.cmake file # generates a files that reference the install location of other files # Make this change so they match sed -i -e 's/ROCM_INSTALL_LIBDIR lib/ROCM_INSTALL_LIBDIR lib64/' cmake/ROCMExportTargetsHeaderOnly.cmake %build mkdir %{_target_platform} pushd %{_target_platform} %cmake .. \ -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF \ %if %{with check} -DBUILD_TEST=ON \ %endif -DCMAKE_CXX_COMPILER=hipcc \ %if %{compat_build} -DCMAKE_CXX_FLAGS="--rocm-device-lib-path=%{_prefix}/lib/clang/%{maj_ver}/amdgcn/bitcode" \ %endif -DROCM_SYMLINK_LIBS=OFF popd cmake --build %{_target_platform} %{?_smp_mflags} --verbose %install DESTDIR=%{buildroot} cmake --install %{_target_platform} %check %if %{with check} %ctest %endif %files devel %doc README.md %license %{_docdir}/%{name}/LICENSE.txt %{_includedir}/%{name} %{_libdir}/cmake/%{name} %changelog * Tue Oct 29 2024 misaka00251 <liuxin@iscasc.ac.cn> - 6.2.2-1 - Init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2