Packaging : Generate shlibs.local
This commit is contained in:
parent
da6d2009e0
commit
67d1ab9106
6
Makefile
6
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" \
|
||||
$< > $@
|
||||
|
2
debian/changelog.in
vendored
2
debian/changelog.in
vendored
@ -1,4 +1,4 @@
|
||||
nccl (${nccl:Major}.${nccl:Minor}.${nccl:Patch}-${nccl:Debian}+cuda${nccl:Cuda}) trusty; urgency=medium
|
||||
nccl (${nccl:Major}.${nccl:Minor}.${nccl:Patch}-${nccl:Debian}+cuda${cuda:Major}.${cuda:Minor}) trusty; urgency=medium
|
||||
|
||||
* Automatic Debian package from build
|
||||
|
||||
|
1
debian/shlibs.local
vendored
1
debian/shlibs.local
vendored
@ -1 +0,0 @@
|
||||
libcudart 7.5 cuda-cudart-7-5
|
1
debian/shlibs.local.in
vendored
Normal file
1
debian/shlibs.local.in
vendored
Normal file
@ -0,0 +1 @@
|
||||
libcudart ${cuda:Major}.${cuda:Minor} cuda-cudart-${cuda:Major}-${cuda:Minor}
|
Loading…
x
Reference in New Issue
Block a user