aboutsummaryrefslogtreecommitdiff
path: root/ports/cub
diff options
context:
space:
mode:
authorzhouqi <zhouqi.whu@hotmail.com>2018-12-05 16:59:08 +0800
committerzhouqi <zhouqi.whu@hotmail.com>2018-12-05 16:59:08 +0800
commit2b410bea32837c8a498c3ce6ae88b82013fe2e52 (patch)
treea7cf9d04d503658f30149a1d291aefaef2f65c87 /ports/cub
parent642e37b3c9f14d5f822239b630933d8eed7e8b70 (diff)
parent5f63d0a5f77b4179df6dc10110637775a1d0fe69 (diff)
downloadvcpkg-2b410bea32837c8a498c3ce6ae88b82013fe2e52.tar.gz
vcpkg-2b410bea32837c8a498c3ce6ae88b82013fe2e52.zip
Merge branch 'master' of https://github.com/zhouqime/vcpkg
Diffstat (limited to 'ports/cub')
-rw-r--r--ports/cub/CONTROL4
-rw-r--r--ports/cub/portfile.cmake12
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/cub/CONTROL b/ports/cub/CONTROL
new file mode 100644
index 000000000..7c62c25a2
--- /dev/null
+++ b/ports/cub/CONTROL
@@ -0,0 +1,4 @@
+Source: cub
+Version: 1.8.0
+Description: CUB is a flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming
+Build-Depends: cuda
diff --git a/ports/cub/portfile.cmake b/ports/cub/portfile.cmake
new file mode 100644
index 000000000..302bfb706
--- /dev/null
+++ b/ports/cub/portfile.cmake
@@ -0,0 +1,12 @@
+include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO NVlabs/cub
+ REF v1.8.0
+ SHA512 c4ba51ca4e369c8ef87bc411aa011470478fcc2526b667f088e9ac8c62e6532dc2368e869f5147b56f22b3e8718c7276434c3294d9d67cb3a92c700d163e8fa7
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/cub/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/cub)
+
+configure_file(${SOURCE_PATH}/LICENSE.TXT ${CURRENT_PACKAGES_DIR}/share/cub/copyright COPYONLY)