-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
From: https://github.com/pytorch/pytorch/pull/43074 | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 45fce7f44a696..869a6aee1a836 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -357,6 +357,10 @@ if(MSVC) | ||
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler /w -w") | ||
endif(MSVC) | ||
|
||
+list(APPEND CUDA_NVCC_FLAGS "-Xfatbin" "-compress-all") | ||
+list(APPEND CUDA_NVCC_FLAGS_DEBUG "-Xfatbin" "-compress-all") | ||
+list(APPEND CUDA_NVCC_FLAGS_RELWITHDEBINFO "-Xfatbin" "-compress-all") | ||
+ | ||
if(NOT MSVC) | ||
list(APPEND CUDA_NVCC_FLAGS_DEBUG "-g" "-lineinfo" "--source-in-ptx") | ||
list(APPEND CUDA_NVCC_FLAGS_RELWITHDEBINFO "-g" "-lineinfo" "--source-in-ptx") |