Skip to content

Commit eb8b7b7

Browse files
authored
[popsift] Fix CUDA 13.2. (#51456)
1 parent 4fc6cb0 commit eb8b7b7

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

ports/popsift/portfile.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ vcpkg_from_github(
44
REF v${VERSION}
55
SHA512 374a00542ff46ac8a8cf31b7a62c834e4e148c5f9ddd5f6a128e4284e637242c0ce55bf3ee6524e6555c8402332ec8863ca921cef36c0bacd9a1ada6c8e09b55
66
HEAD_REF develop
7+
PATCHES
8+
pr-183-add-zcpreprocessor-for-cuda-13-2.diff # https://github.com/alicevision/popsift/pull/183
79
)
810

911
vcpkg_find_cuda(OUT_CUDA_TOOLKIT_ROOT CUDA_TOOLKIT_ROOT)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2+
index 86fc3c1b..11cb5a6a 100644
3+
--- a/src/CMakeLists.txt
4+
+++ b/src/CMakeLists.txt
5+
@@ -49,6 +49,9 @@ target_link_libraries(popsift
6+
set_target_properties(popsift PROPERTIES VERSION ${PROJECT_VERSION})
7+
set_target_properties(popsift PROPERTIES DEBUG_POSTFIX "d")
8+
set_target_properties(popsift PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
9+
+if(MSVC)
10+
+ target_compile_options(popsift PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=/Zc:preprocessor>)
11+
+endif()
12+
13+
# build directory containing the automatically generated files
14+
set(popsift_generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")

ports/popsift/vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "popsift",
33
"version": "0.10.0",
4+
"port-version": 1,
45
"description": "PopSift is an implementation of the SIFT algorithm in CUDA.",
56
"homepage": "https://github.com/alicevision/popsift",
67
"documentation": "https://popsift.readthedocs.io/",

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7854,7 +7854,7 @@
78547854
},
78557855
"popsift": {
78567856
"baseline": "0.10.0",
7857-
"port-version": 0
7857+
"port-version": 1
78587858
},
78597859
"portable-file-dialogs": {
78607860
"baseline": "0.1.0",

versions/p-/popsift.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "24ec78a1eca98f407158ac08a43b923a5417849a",
5+
"version": "0.10.0",
6+
"port-version": 1
7+
},
38
{
49
"git-tree": "ee43b750c42a10ab97cd677af23edd402867a13a",
510
"version": "0.10.0",

0 commit comments

Comments
 (0)