CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
63 lines
1.6 KiB
Bash
63 lines
1.6 KiB
Bash
#!/bin/bash
|
|
#
|
|
# SPDX-FileCopyrightText: Copyright (c) 2017-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# See LICENSE.txt for more license information
|
|
#
|
|
|
|
# To run from $BUILDDIR/
|
|
|
|
cd ..
|
|
NCCLDIR=`basename $PWD`
|
|
|
|
echo "Checking for unclean directory ..."
|
|
git clean -x -i
|
|
echo "Clean done."
|
|
echo "Checking for uncommited files ..."
|
|
if [ "`git status -s | wc -l`" != "0" ]; then
|
|
git status -s
|
|
echo "Some changes are not committed yet. Continue ? (Ctrl-C to abort)"
|
|
read
|
|
fi
|
|
|
|
cd ..
|
|
NCCL_MAJOR=${nccl:Major}
|
|
NCCL_MINOR=${nccl:Minor}
|
|
NCCL_PATCH=${nccl:Patch}
|
|
NCCL_SUFFIX=${nccl:Suffix}
|
|
NCCL_BUILD=${pkg:Revision}
|
|
|
|
NCCLNAME="nccl-src_${NCCL_MAJOR}.${NCCL_MINOR}.${NCCL_PATCH}${NCCL_SUFFIX}-${NCCL_BUILD}"
|
|
if [ "${SRCTXZ_APITESTS}" = "1" ]; then
|
|
NCCLNAME+="-apitest"
|
|
fi
|
|
|
|
|
|
INCLUDE_TEST_ENTRIES=("apitest" "googletest" "gtest.mk")
|
|
|
|
if [ "${SRCTXZ_APITESTS}" = "1" ]; then
|
|
# Exclude all entries inside test folder except those in INCLUDE_TEST_ENTRIES
|
|
for entry in $(ls $NCCLDIR/test); do
|
|
if [[ ! " ${INCLUDE_TEST_ENTRIES[@]} " =~ " $entry " ]]; then
|
|
EXCLUDE_TEST+=" --exclude $NCCLDIR/test/$entry"
|
|
fi
|
|
done
|
|
else
|
|
# Exclude the entire test directory
|
|
EXCLUDE_TEST+=" --exclude test"
|
|
fi
|
|
|
|
tar --exclude fortran \
|
|
--exclude doc \
|
|
--exclude plc \
|
|
--exclude build \
|
|
--exclude ".git*" \
|
|
--exclude share \
|
|
--exclude ompi \
|
|
--exclude plugins/net \
|
|
--exclude pkg/srctxz \
|
|
--exclude docker \
|
|
$EXCLUDE_TEST \
|
|
--transform "s/^$NCCLDIR/$NCCLNAME/" -Jcf $NCCLNAME.txz --owner=0 --group=0 $NCCLDIR
|