Projects
OpenHPC3:3.3: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- %include %{_sourcedir}/OHPC_macros %define pname cuda-devel %define nvhpc_version 25-1 %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 BuildArch: x86_64 # These repositories are needed for the driver. Source1: https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo Source2: https://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64/cuda-opensuse15.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 Source3: nvhpc-rhel.repo # https://developer.download.nvidia.com/hpc-sdk/sles/nvhpc.repo Source4: nvhpc-sles.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 %if 0%{?suse_version} %define repodir %{_sysconfdir}/zypp/repos.d %define cuda_repofile %{SOURCE2} %define nvhpc_repofile %{SOURCE4} %else %define repodir %{_sysconfdir}/yum.repos.d %define cuda_repofile %{SOURCE1} %define nvhpc_repofile %{SOURCE3} %endif install -D -m644 %{cuda_repofile} %{nvhpc_repofile} -t %{buildroot}%{repodir} mkdir -p %{buildroot}/%{OHPC_MODULES}/cuda %{__cat} << EOF > %{buildroot}/%{OHPC_MODULES}/cuda/%{dot_version} #%Module1.0##################################################################### proc ModulesHelp { } { puts stderr "Activate cuda-toolkit %{dot_version} (nvhpc)" } module-whatis "Name: cuda-toolkit (nvhpc)" module-whatis "Version: %{dot_version}" # The default compiler from OpenHPC (currently gcc 14) is not supported # by nvhpc <= 25-1. 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}/%{basename:%{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
.