Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Jeaugey <sjeaugey@nvidia.com>2016-06-16 05:01:29 +0300
committerSylvain Jeaugey <sjeaugey@nvidia.com>2016-06-16 05:03:08 +0300
commit67d1ab9106d8e6ae34aa13bbab65a2e3f867f6f8 (patch)
treeff44583ef3489f557c19dd13a25792e106c61065 /Makefile
parentda6d2009e0e9521cca5d809137f5d96279fd3a50 (diff)
Packaging : Generate shlibs.local
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9be7d76..2aa4667 100644
--- a/Makefile
+++ b/Makefile
@@ -172,7 +172,8 @@ $(MPITSTDIR)/% : test/mpi/%.cu $(TSTDEP)
#### PACKAGING ####
CUDA_VERSION ?= $(shell ls $(CUDA_LIB)/libcudart.so.* | head -1 | rev | cut -d "." -f -2 | rev)
-
+CUDA_MAJOR = $(shell echo $(CUDA_VERSION) | cut -d "." -f 1)
+CUDA_MINOR = $(shell echo $(CUDA_VERSION) | cut -d "." -f 2)
DEB_GEN_IN := $(shell ls debian/*.in)
DEB_GEN := $(DEB_GEN_IN:.in=)
@@ -194,7 +195,8 @@ debian/% : debian/%.in
sed -e "s/\$${nccl:Major}/$(VER_MAJOR)/g" \
-e "s/\$${nccl:Minor}/$(VER_MINOR)/g" \
-e "s/\$${nccl:Patch}/$(VER_PATCH)/g" \
- -e "s/\$${nccl:Cuda}/$(CUDA_VERSION)/g" \
+ -e "s/\$${cuda:Major}/$(CUDA_MAJOR)/g" \
+ -e "s/\$${cuda:Minor}/$(CUDA_MINOR)/g" \
-e "s/\$${nccl:Debian}/$(DEB_REVISION)/g" \
-e "s/\$${nccl:Timestamp}/$(DEB_TIMESTAMP)/g" \
$< > $@