-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VM Updates for Patch Tuesday, March 2023 (#30223)
- Loading branch information
1 parent
e249dfb
commit 6146b48
Showing
23 changed files
with
173 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include("${CMAKE_CURRENT_LIST_DIR}/vcpkg_find_cuda.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 7b664e27ca2865f3e06101d50415f2943d2de58c Mon Sep 17 00:00:00 2001 | ||
From: Azhng <archer.xn@gmail.com> | ||
Date: Tue, 21 Feb 2023 19:24:57 +0000 | ||
Subject: [PATCH] add required thrust include for s_filtergrid.cu | ||
|
||
--- | ||
src/popsift/s_filtergrid.cu | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/src/popsift/s_filtergrid.cu b/src/popsift/s_filtergrid.cu | ||
index 301c6a96..a766c2de 100644 | ||
--- a/src/popsift/s_filtergrid.cu | ||
+++ b/src/popsift/s_filtergrid.cu | ||
@@ -19,9 +19,11 @@ | ||
#if ! POPSIFT_IS_DEFINED(POPSIFT_DISABLE_GRID_FILTER) | ||
|
||
#include <thrust/copy.h> | ||
+#include <thrust/count.h> | ||
#include <thrust/device_vector.h> | ||
#include <thrust/execution_policy.h> | ||
#include <thrust/host_vector.h> | ||
+#include <thrust/iterator/constant_iterator.h> | ||
#include <thrust/iterator/discard_iterator.h> | ||
#include <thrust/sequence.h> | ||
#include <thrust/sort.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
diff --git a/cmake/ChooseCudaCC.cmake b/cmake/ChooseCudaCC.cmake | ||
index d9bc6c2..0ac4fa9 100755 | ||
--- a/cmake/ChooseCudaCC.cmake | ||
+++ b/cmake/ChooseCudaCC.cmake | ||
@@ -65,7 +65,8 @@ function(chooseCudaCC SUPPORTED_CC SUPPORTED_GENCODE_FLAGS) | ||
|
||
set(CC_LIST_BY_SYSTEM_PROCESSOR "") | ||
if(CMAKE_SYSTEM_PROCESSOR IN_LIST OTHER_SUPPORTED_PROCESSORS) | ||
- list(APPEND CC_LIST_BY_SYSTEM_PROCESSOR "20;21;30;35;50;52;60;61;70;75;80;86") | ||
+ # 87 is intentionally omitted, see discussion in https://github.com/alicevision/popsift/pull/146 | ||
+ list(APPEND CC_LIST_BY_SYSTEM_PROCESSOR "20;21;30;35;50;52;60;61;70;75;80;86;89;90") | ||
endif() | ||
if(CMAKE_SYSTEM_PROCESSOR IN_LIST TEGRA_SUPPORTED_PROCESSORS) | ||
list(APPEND CC_LIST_BY_SYSTEM_PROCESSOR "32;53;62;72") | ||
@@ -78,10 +79,20 @@ function(chooseCudaCC SUPPORTED_CC SUPPORTED_GENCODE_FLAGS) | ||
# Default setting of the CUDA CC versions to compile. | ||
# Shortening the lists saves a lot of compile time. | ||
# | ||
- set(CUDA_MIN_CC 20) | ||
- set(CUDA_MAX_CC 86) | ||
- if(CUDA_VERSION_MAJOR GREATER_EQUAL 11) | ||
+ | ||
+ # The current version last time this list was updated was CUDA 12.1. | ||
+ if(CUDA_VERSION VERSION_GREATER_EQUAL 12) | ||
+ set(CUDA_MIN_CC 50) | ||
+ set(CUDA_MAX_CC 90) | ||
+ elseif(CUDA_VERSION VERSION_GREATER_EQUAL 11.8) | ||
+ set(CUDA_MIN_CC 35) | ||
+ set(CUDA_MAX_CC 90) | ||
+ elseif(CUDA_VERSION VERSION_GREATER_EQUAL 11.1) | ||
+ set(CUDA_MIN_CC 35) | ||
+ set(CUDA_MAX_CC 86) | ||
+ elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 11) | ||
set(CUDA_MIN_CC 35) | ||
+ set(CUDA_MAX_CC 80) | ||
elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 10) | ||
set(CUDA_MIN_CC 30) | ||
set(CUDA_MAX_CC 75) | ||
@@ -89,8 +100,10 @@ function(chooseCudaCC SUPPORTED_CC SUPPORTED_GENCODE_FLAGS) | ||
set(CUDA_MIN_CC 30) | ||
set(CUDA_MAX_CC 72) | ||
elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 8) | ||
+ set(CUDA_MIN_CC 20) | ||
set(CUDA_MAX_CC 62) | ||
elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 7) | ||
+ set(CUDA_MIN_CC 20) | ||
set(CUDA_MAX_CC 53) | ||
else() | ||
message(FATAL_ERROR "We do not support a CUDA SDK below version 7.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.