Projects
OpenHPC4:4.2:Factory
cuda-devel
_service:extract_file:cuda-devel.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:cuda-devel.spec of Package cuda-devel
#----------------------------------------------------------------------------bh- # This RPM .spec file is part of the OpenHPC project. # # It may have been modified from the default version supplied by the underlying # release package (if available) in order to apply patches, perform customized # build/install configurations, and supply additional files to support # desired integration conventions. # #----------------------------------------------------------------------------eh- # OpenHPC:check-updates:skip no standard upstream source %include %{_sourcedir}/OHPC_macros %define pname cuda-devel %define nvhpc_version 25-9 %define dot_version %(tr "-" "." <<< %{nvhpc_version}) Summary: OpenHPC compatibility package for cuda Name: %{pname}%{PROJ_DELIM} Version: %{dot_version} Release: %{?dist}.1 License: Apache-2.0 URL: https://github.com/openhpc/ohpc Group: %{PROJ_NAME}/dev-tools ExclusiveArch: x86_64 aarch64 # These repositories are needed for the driver. NVIDIA names the aarch64 # (sbsa) repository file the same as the x86_64 one. Source1: https://developer.download.nvidia.com/compute/cuda/repos/rhel10/x86_64/cuda-rhel10.repo Source3: https://developer.download.nvidia.com/compute/cuda/repos/rhel10/sbsa/cuda-rhel10.repo#/cuda-rhel10-sbsa.repo # These repositories are needed for the toolkit. nvhpc install the cuda toolkit # in /opt in contrast to the normal cuda-toolkit which is installed in /usr/local. # /opt is easier to manage for NFS exports. nvhpc also comes with modulefiles. # https://developer.download.nvidia.com/hpc-sdk/rhel/nvhpc.repo Source2: nvhpc-rhel.repo #!BuildIgnore: post-build-checks Requires: nvhpc-%{nvhpc_version} Recommends: gcc %description Provides OpenHPC-style compatible modules for use with cuda. This package pulls in nvhpc-%{nvhpc_version} %package -n cuda-repo%{PROJ_DELIM} Summary: Cuda toolkit online repository %description -n cuda-repo%{PROJ_DELIM} Installs and configures the online repository for the cuda toolkit %install %define repodir %{_sysconfdir}/yum.repos.d %define cuda_repofile cuda-rhel10.repo %define nvhpc_repofile %{SOURCE2} %ifarch aarch64 install -D -m644 %{SOURCE3} %{buildroot}%{repodir}/%{cuda_repofile} %else install -D -m644 %{SOURCE1} %{buildroot}%{repodir}/%{cuda_repofile} %endif install -D -m644 %{nvhpc_repofile} -t %{buildroot}%{repodir} mkdir -p %{buildroot}/%{OHPC_MODULES} %{__cat} << EOF > %{buildroot}/%{OHPC_MODULES}/cuda #%Module1.0##################################################################### proc ModulesHelp { } { puts stderr "Activate cuda-toolkit (nvhpc)" } module-whatis "Name: cuda-toolkit (nvhpc)" # The default compiler from OpenHPC (currently gcc 15) is not supported # by nvhpc <= 25-9. We rely on the OS compiler for now. setenv NVCC_PREPEND_FLAGS "-ccbin /usr/bin/gcc" # Make the nvidia hpc_sdk module files visible append-path MODULEPATH /opt/nvidia/hpc_sdk/modulefiles EOF %files %{OHPC_MODULES}/cuda %files -n cuda-repo%{PROJ_DELIM} %{repodir}/%{cuda_repofile} %{repodir}/%{basename:%{nvhpc_repofile}}
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
.