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

github.com/NVIDIA/thrust.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllison Vacanti <alliepiper16@gmail.com>2021-06-30 17:36:24 +0300
committerAllison Vacanti <alliepiper16@gmail.com>2021-06-30 17:39:13 +0300
commit0a6b0593590383ec634602e6f79b8626a8a32a07 (patch)
treecc10f0f46b9cbd6f1307964d521c022676a42f7e /Makefile
parent89ffa9ef182537c27e74e8f140cac4ce54909881 (diff)
Improve DVS incremental build time.
Patches provided by Subodh Karmarkar @ NVIDIA: # COPY_CUB_FOR_PACKAGING thrust: Fix incremental build performance Removal and recopying of "cub" was causing all modules to get rebuild due to timestam updates. Updating step to preserve timestamps during copy to honour incremental build flow Bug 200740506 # MAKE_DVS_PACKAGE thrust: Refactor package creation Current packaging commands are creating tar archive and then a bzip command to create comporessed package. The flow is serial and causes more time Add alternative commands for package creation which can use parallelism and much faster Bug 200744972
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 11a41172..bf421cc2 100644
--- a/Makefile
+++ b/Makefile
@@ -118,15 +118,12 @@ ifeq ($(OS), win32)
APPEND_CUH_DVS_PACKAGE = $(ZIP) -rg built/CUDA-thrust-package.zip thrust -9 -i *.cuh
MAKE_DVS_PACKAGE = $(CREATE_DVS_PACKAGE) && $(APPEND_H_DVS_PACKAGE) && $(APPEND_INL_DVS_PACKAGE) && $(APPEND_CUH_DVS_PACKAGE)
else
- CREATE_DVS_PACKAGE = tar -cvh -f built/CUDA-thrust-package.tar bin thrust/internal/test thrust/internal/scripts thrust/internal/benchmark $(DVS_COMMON_TEST_PACKAGE_FILES)
- APPEND_H_DVS_PACKAGE = find -L thrust -name "*.h" | xargs tar rvf built/CUDA-thrust-package.tar
- APPEND_INL_DVS_PACKAGE = find -L thrust -name "*.inl" | xargs tar rvf built/CUDA-thrust-package.tar
- APPEND_CUH_DVS_PACKAGE = find -L thrust -name "*.cuh" | xargs tar rvf built/CUDA-thrust-package.tar
- COMPRESS_DVS_PACKAGE = bzip2 --force built/CUDA-thrust-package.tar
- MAKE_DVS_PACKAGE = $(CREATE_DVS_PACKAGE) && $(APPEND_H_DVS_PACKAGE) && $(APPEND_INL_DVS_PACKAGE) && $(APPEND_CUH_DVS_PACKAGE) && $(COMPRESS_DVS_PACKAGE)
+ TAR_FILES = bin thrust/internal/test thrust/internal/scripts thrust/internal/benchmark $(DVS_COMMON_TEST_PACKAGE_FILES)
+ TAR_FILES += `find -L thrust \( -name "*.cuh" -o -name "*.h" -o -name "*.inl" \)`
+ MAKE_DVS_PACKAGE = tar -I lbzip2 -chvf built/CUDA-thrust-package.tar.bz2 $(TAR_FILES)
endif
-COPY_CUB_FOR_PACKAGING = rm -rf cub && cp -r ../cub/cub cub
+COPY_CUB_FOR_PACKAGING = rm -rf cub && cp -rp ../cub/cub cub
DVS_OPTIONS :=