Giter VIP home page Giter VIP logo

yum-packaging-libnvidia-nscq's Introduction

yum packaging libnvidia nscq

License Contributing

Overview

Packaging templates for yum, dnf, and zypper based Linux distros to build libnvidia-nscq packages.

NVIDIA NVSwitch Configuration and Query (NSCQ) library provides a stable driver API used by DCGM for monitoring NVSwitch devices.

note: the version of libnvidia-nscq must match the NVIDIA driver installed.

Table of Contents

Deliverables

This repo contains the .spec file used to build the following RPM packages:

note: XXX is the first . delimited field in the driver version, ex: 460 in 460.32.03

- libnvidia-nscq-XXX
> ex: libnvidia-nscq-460-460.32.03-1.x86_64.rpm

Installation

  • RHEL8 or Fedora streams: XXX, XXX-dkms, latest, and latest-dkms

    The NvSwitch modularity profile (fm) installs all of the NVIDIA driver packages, as well as Fabric Manager and NCSQ

    dnf module install nvidia-driver:${stream}/fm
  • RHEL7

    yum install libnvidia-nscq-XXX
  • openSUSE15 or SLES15

    zypper install libnvidia-nscq-XXX

Prerequisites

Clone this git repository:

Supported branches: main

git clone https://github.com/NVIDIA/yum-packaging-libnvidia-nscq

Download a NSCQ tarball:

Install build dependencies

note: these are only needed for building not installation

# objdump
yum install binutils
# Packaging
yum install rpm-build

Building Manually

Parse JSON to retrieve download URL

baseURL="https://developer.download.nvidia.com/compute/cuda/redist"
curl -s $baseURL/redistrib_460.32.03.json | \
jq -r '."libnvidia_nscq" | ."460.32.03" | ."linux-x86_64"' | \
sed "s|^|$baseURL/|"

Prepare build directory

cd yum-packaging-libnvidia-nscq
mkdir SPECS SOURCES
cp *.spec SPECS/
cp ../libnvidia_nscq*.tar.gz SOURCES/

Check API version

tar -tvf SOURCES/libnvidia_nscq*.tar.gz | \
    grep ^l | awk '{print $(NF-2)}' | grep ".so." | \
    sort -uVr | awk -F ".so." '{print $2}' | awk NR==1
> 1.1

Check SONAME

tar --strip-components=1 -xf ../libnvidia_nscq*.tar.gz libnvidia_nscq/libnvidia-nscq.so.[4-9][0-9][0-9]*
objdump -p libnvidia-nscq.so.[4-9][0-9][0-9]* | grep SONAME | awk -F ".so." '{print $2}'
> 1

Generate .rpm packages

rpmbuild \
    --define "%_topdir $(pwd)" \
    --define "%version 460.32.03" \
    --define "%branch 460" \
    --define "%so_api 1.1" \
    --define "%SONAME 1" \
    --define "%_arch x86_64" \
    --define "%_build_arch x86_64" \
    --target=x86_64 \
    -v -ba SPECS/*.spec

cd RPMS/x86_64
ls *.rpm

note: branch is the first . delimited field in the driver version, ex: 460 in 460.32.03

Related

Fabric Manager

NVIDIA driver

See also

Debian

Contributing

See CONTRIBUTING.md

yum-packaging-libnvidia-nscq's People

Contributors

andydick avatar kmittman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.