-
Notifications
You must be signed in to change notification settings - Fork 5
meta-nvidia: bump NVIDIA stack to 595.58.03 #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||
| SUMMARY = "NVIDIA NSCQ library" | ||||||
| DESCRIPTION = "NVIDIA NSCQ (NVIDIA System Communication Queue) library for NVIDIA GPU systems" | ||||||
| HOMEPAGE = "https://developer.nvidia.com/" | ||||||
| LICENSE = "NVIDIA-Proprietary" | ||||||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=2cc00be68c1227a7c42ff3620ef75d05" | ||||||
|
|
||||||
| SRC_URI = "https://developer.download.nvidia.cn/compute/nvidia-driver/redist/libnvidia_nscq/linux-x86_64/libnvidia_nscq-linux-x86_64-${PV}-archive.tar.xz" | ||||||
| SRC_URI[md5sum] = "5b559a614f2c2c79b6eb796b68b6fb0f" | ||||||
| SRC_URI[sha256sum] = "1c008787111fc55a7fc1d3521a6d41c2523b8949354e5651eadb4498554e5469" | ||||||
|
|
||||||
| S = "${WORKDIR}/libnvidia_nscq-linux-x86_64-${PV}-archive" | ||||||
|
|
||||||
| INSANE_SKIP:${PN} = "already-stripped ldflags" | ||||||
|
|
||||||
| do_configure[noexec] = "1" | ||||||
| do_compile[noexec] = "1" | ||||||
|
|
||||||
| do_install() { | ||||||
| install -d ${D}${libdir} | ||||||
|
|
||||||
| install -m 0755 ${S}/lib/libnvidia-nscq.so.${PV} ${D}${libdir} | ||||||
|
||||||
| install -m 0755 ${S}/lib/libnvidia-nscq.so.${PV} ${D}${libdir} | |
| install -m 0644 ${S}/lib/libnvidia-nscq.so.${PV} ${D}${libdir} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| SUMMARY = "NVIDIA Fabric Manager for NVSwitch systems" | ||
| DESCRIPTION = "NVIDIA Fabric Manager provides NVSwitch management for NVIDIA HGX and DGX systems" | ||
| HOMEPAGE = "https://developer.nvidia.com/" | ||
| LICENSE = "NVIDIA-Proprietary" | ||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=2cc00be68c1227a7c42ff3620ef75d05" | ||
|
|
||
| SRC_URI = "https://developer.download.nvidia.com/compute/nvidia-driver/redist/fabricmanager/linux-x86_64/fabricmanager-linux-x86_64-${PV}-archive.tar.xz" | ||
| SRC_URI[md5sum] = "8761b4b5f371b7e87b2b82141c901311" | ||
| SRC_URI[sha256sum] = "ea86951987ced2c2bbed1a9a9037e917dd2268add0ec484db9216e843d8b7de8" | ||
|
|
||
| S = "${WORKDIR}/fabricmanager-linux-x86_64-${PV}-archive" | ||
|
|
||
|
Comment on lines
+7
to
+12
|
||
| DEPENDS = "" | ||
| RDEPENDS:${PN} = "bash zlib" | ||
|
|
||
| INSANE_SKIP:${PN} = "already-stripped ldflags" | ||
|
|
||
| do_configure[noexec] = "1" | ||
| do_compile[noexec] = "1" | ||
|
|
||
| inherit systemd | ||
|
|
||
| SYSTEMD_AUTO_ENABLE = "enable" | ||
| SYSTEMD_SERVICE:${PN} = "nvidia-fabricmanager.service" | ||
|
|
||
| do_install() { | ||
| # Create directories | ||
| install -d ${D}${bindir} | ||
| install -d ${D}${libdir} | ||
| install -d ${D}${datadir}/nvidia/nvswitch | ||
| install -d ${D}${systemd_system_unitdir} | ||
|
|
||
| # Install binaries | ||
| install -m 0755 ${S}/bin/nv-fabricmanager ${D}${bindir} | ||
| install -m 0755 ${S}/bin/nvidia-fabricmanager-start.sh ${D}${bindir} | ||
| install -m 0755 ${S}/bin/nvswitch-audit ${D}${bindir} | ||
|
|
||
| # Install libraries | ||
| install -m 0644 ${S}/lib/libnvfm.so.1 ${D}${libdir} | ||
| ln -sf libnvfm.so.1 ${D}${libdir}/libnvfm.so | ||
|
|
||
| # Install config + topology files (glob picks up new SKUs in future archives) | ||
| install -m 0644 ${S}/etc/fabricmanager.cfg ${D}${datadir}/nvidia/nvswitch/ | ||
| install -m 0644 ${S}/etc/fabricmanager_multinode.cfg ${D}${datadir}/nvidia/nvswitch/ | ||
| for f in ${S}/share/nvidia/nvswitch/*; do | ||
| [ -f "$f" ] && install -m 0644 "$f" ${D}${datadir}/nvidia/nvswitch/ | ||
| done | ||
|
|
||
| # Install systemd service | ||
| install -m 0644 ${S}/systemd/nvidia-fabricmanager.service ${D}${systemd_system_unitdir} | ||
| } | ||
|
|
||
| FILES:${PN} = "\ | ||
| ${bindir}/nv-fabricmanager \ | ||
| ${bindir}/nvidia-fabricmanager-start.sh \ | ||
| ${bindir}/nvswitch-audit \ | ||
| ${libdir}/libnvfm.so.1 \ | ||
| ${libdir}/libnvfm.so \ | ||
| ${datadir}/nvidia/nvswitch/* \ | ||
| ${systemd_system_unitdir}/nvidia-fabricmanager.service \ | ||
| " | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| SUMMARY = "NVidia Graphics Driver" | ||
| LICENSE = "NVIDIA-Proprietary" | ||
| LIC_FILES_CHKSUM = "file://../LICENSE;md5=92aa2e2af6aa0bcba1c3fe49da021937" | ||
|
|
||
| NVIDIA_ARCHIVE_NAME = "NVIDIA-Linux-${TARGET_ARCH}-${PV}" | ||
| NVIDIA_SRC = "${WORKDIR}/${NVIDIA_ARCHIVE_NAME}" | ||
| SRC_URI = " \ | ||
| https://us.download.nvidia.com/tesla/${PV}/${NVIDIA_ARCHIVE_NAME}.run \ | ||
| " | ||
| SRC_URI[md5sum] = "8d98a183bf994af0ff19980e0ef430f2" | ||
| SRC_URI[sha256sum] = "8c0d4f967b7932c4ab5714272aee8103392b0a702c92afa555176d36205829f9" | ||
|
|
||
| RDEPENDS:${PN} = "nvidia-modprobe-config" | ||
|
|
||
| do_unpack() { | ||
| chmod +x ${DL_DIR}/${NVIDIA_ARCHIVE_NAME}.run | ||
| rm -rf ${NVIDIA_SRC} | ||
| ${DL_DIR}/${NVIDIA_ARCHIVE_NAME}.run -x --target ${NVIDIA_SRC} | ||
| } | ||
|
|
||
| do_make_scripts[noexec] = "1" | ||
|
|
||
| include nvidia-kernel-module.inc | ||
| include nvidia-libs.inc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This recipe hard-codes the linux-x86_64 NSCQ archive and installs an x86_64 shared library, but it doesn't restrict the recipe to x86_64 targets. If someone builds for a different TARGET_ARCH, the resulting package will contain incompatible binaries. Add a COMPATIBLE_HOST (e.g. x86_64.*-linux) or make SRC_URI/S arch-aware.