onnxruntime/cmake/patches/protobuf/protobuf_cmake.patch
Rui Ren 5ae597da6a
ORT 1.14.0 release -- cherry pick round2 (#14573)
### Description
<!-- Describe your changes. -->
Second round cherry pick, total 13 PRs, as below. Please check here for
[Here](https://github.com/microsoft/onnxruntime/issues?q=label%3Arelease%3A1.14+sort%3Aupdated-asc+is%3Aclosed+label%3Atriage%3Aapproved)
for the total list.

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 15">
<link id=Main-File rel=Main-File

href="file:///C:/Users/ruiren/AppData/Local/Temp/msohtmlclip1/01/clip.htm">
<link rel=File-List

href="file:///C:/Users/ruiren/AppData/Local/Temp/msohtmlclip1/01/clip_filelist.xml">
<style>
<!--table
	{mso-displayed-decimal-separator:"\.";
	mso-displayed-thousand-separator:"\,";}
@page
	{margin:.75in .7in .75in .7in;
	mso-header-margin:.3in;
	mso-footer-margin:.3in;}
tr
	{mso-height-source:auto;}
col
	{mso-width-source:auto;}
br
	{mso-data-placement:same-cell;}
td
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:0;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	border:none;
	mso-background-source:auto;
	mso-pattern:auto;
	mso-protection:locked visible;
	white-space:nowrap;
	mso-rotate:0;}
.xl65
	{text-align:center;}
.xl66
	{color:windowtext;
	text-align:center;
	border:.5pt solid windowtext;}
.xl67
	{text-align:center;
	border:.5pt solid windowtext;}
.xl68
	{text-align:center;
	border:.5pt solid windowtext;
	background:white;
	mso-pattern:black none;}
-->
</style>
</head>

<body link="#0563C1" vlink="#954F72">



Date | PR | # | Commit # | Short #
-- | -- | -- | -- | --
1 | Fix unused variable for CUDA EP builds with USE_FLASH_ATTENTION off
| 14404 | 85d7e9c596 | 85d7e9c
2 | UNet fusion and fp16 conversion for stable diffusion | 14248 |
a95fcb4345 | a95fcb4
3 | upgrade protobuf to 3.20.2 and onnx to 1.13 | 14279 |
80f807c03d | 80f807c
4 | Include python training apis when enable_training is enabled | 14485
| d06ad9462b | d06ad94
5 | Including support for Deepspeed 0.8.0 | 14506 |
6fa4555a06 | 6fa4555
6 | change deepspeed version in warning from 0.7.3 to 0.8.0 | 14527 |
3d388a1aea | 3d388a1
7 | Do not fuse DQ+Node+Q if DQ produces graph output | 14509 |
d9e675a2af | d9e675a
8 | upgrade EsrpCodeSigning from v1 to v2 | 14531 |
0578eeff91 | 0578eef
9 | Fix python packaging pipeline | 14533 |
7954976e0a | 7954976
10 | Specify deps in deps.txt and manifest | 14530 |
01cafe89f0 | 01cafe8
11 | Fix Gather to Split optimizer | 14478 |
0bcca7ad45 | 0bcca7a
12 | Stable Diffusion CUDA Optimizations | 14428 |
a6c5ba0185 | a6c5ba0
13 | Fix sharing scalar bug | 14544 |
c6c11039d7 | c6c1103



</body>

</html>


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Second round cherry-pick for ORT 1.14.0 release.

---------

Co-authored-by: Adrian Lizarraga <adlizarraga@microsoft.com>
Co-authored-by: Tianlei Wu <tlwu@microsoft.com>
Co-authored-by: Yi Zhang <zhanyi@microsoft.com>
Co-authored-by: Baiju Meswani <bmeswani@microsoft.com>
Co-authored-by: Abhishek Jindal <abjindal@microsoft.com>
Co-authored-by: Yufeng Li <liyufeng1987@gmail.com>
Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com>
Co-authored-by: RandySheriffH <48490400+RandySheriffH@users.noreply.github.com>
Co-authored-by: Randy Shuai <rashuai@microsoft.com>
Co-authored-by: Xavier Dupré <xadupre@users.noreply.github.com>
Co-authored-by: pengwa <pengwa@microsoft.com>
2023-02-06 17:00:22 -08:00

31 lines
1.3 KiB
Diff

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index ac92442a1..e930cbd2e 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -240,9 +240,7 @@ if (MSVC)
# MSVC warning suppressions
add_definitions(
/wd4065 # switch statement contains 'default' but no 'case' labels
- /wd4244 # 'conversion' conversion from 'type1' to 'type2', possible loss of data
/wd4251 # 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
- /wd4267 # 'var' : conversion from 'size_t' to 'type', possible loss of data
/wd4305 # 'identifier' : truncation from 'type1' to 'type2'
/wd4307 # 'operator' : integral constant overflow
/wd4309 # 'conversion' : truncation of constant value
@@ -250,7 +248,6 @@ if (MSVC)
/wd4355 # 'this' : used in base member initializer list
/wd4506 # no definition for inline function 'function'
/wd4800 # 'type' : forcing value to bool 'true' or 'false' (performance warning)
- /wd4996 # The compiler encountered a deprecated declaration.
)
# Allow big object
add_definitions(/bigobj)
@@ -272,6 +269,8 @@ if (MSVC)
endif()
configure_file(version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/version.rc @ONLY)
+else (MSVC)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter")
endif (MSVC)