Merge commit '3d4813d99196bb349eccd50a925e2addc8f1622c' into develop
Esse commit está contido em:
@@ -10,7 +10,7 @@ build : debian.build txz.build
|
||||
|
||||
BUILDDIR ?= $(abspath ../build)
|
||||
ABSBUILDDIR := $(abspath $(BUILDDIR))
|
||||
TARGETS := debian txz
|
||||
TARGETS := debian txz doc
|
||||
all: ${TARGETS:%=%.build}
|
||||
prep: ${TARGETS:%=%.prep}
|
||||
build: ${TARGETS:%=%.build}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
bin/ncclras /usr/bin
|
||||
include/nccl.h /usr/include
|
||||
include/* /usr/include
|
||||
lib/libnccl.so /usr/lib/${pkg:MultiArch}
|
||||
lib/libnccl_static.a /usr/lib/${pkg:MultiArch}
|
||||
|
||||
@@ -47,8 +47,8 @@ ln -s libnccl.so.${nccl:Major}.${nccl:Minor}.${nccl:Patch} $RPM_BUILD_ROOT/%{_li
|
||||
# devel
|
||||
install -m 755 -d $RPM_BUILD_ROOT/%{_bindir}
|
||||
install -m 755 -d $RPM_BUILD_ROOT/%{_includedir}
|
||||
cp -a include/* $RPM_BUILD_ROOT/%{_includedir}/
|
||||
install -m 755 bin/ncclras $RPM_BUILD_ROOT/%{_bindir}
|
||||
install -m 644 include/nccl.h $RPM_BUILD_ROOT/%{_includedir}
|
||||
ln -s libnccl.so.${nccl:Major} $RPM_BUILD_ROOT/%{_libdir}/libnccl.so
|
||||
|
||||
# static
|
||||
@@ -67,7 +67,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc LICENSE.txt
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/ncclras
|
||||
%{_includedir}/nccl.h
|
||||
%{_includedir}/*
|
||||
%{_libdir}/libnccl.so
|
||||
|
||||
%files static
|
||||
|
||||
@@ -22,7 +22,7 @@ prep: $(TXZTARGETS)
|
||||
build: prep
|
||||
$(MAKE) -C ../../src clean
|
||||
@printf "Building source tar.xz package\n"
|
||||
(cd $(BUILDDIR); bash srctxz/create_srctxz.sh)
|
||||
(cd $(BUILDDIR); SRCTXZ_APITESTS=$(SRCTXZ_APITESTS) bash srctxz/create_srctxz.sh)
|
||||
mkdir -p $(PKGDIR)
|
||||
mv $(BUILDDIR)/../../nccl-src*.txz $(PKGDIR)
|
||||
|
||||
|
||||
@@ -28,8 +28,34 @@ 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
|
||||
|
||||
tar --exclude build \
|
||||
|
||||
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 ext-net \
|
||||
--exclude pkg/srctxz \
|
||||
--exclude docker \
|
||||
$EXCLUDE_TEST \
|
||||
--transform "s/^$NCCLDIR/$NCCLNAME/" -Jcf $NCCLNAME.txz --owner=0 --group=0 $NCCLDIR
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário