forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
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
17 changed files
with
2,064 additions
and
2,049 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,27 @@ | ||
This `./upstream` subdolder contains fixes for `FindCUDA` that are introduced in | ||
later versions of cmake but cause generator expression errors in earlier CMake | ||
versions. Specifically: | ||
|
||
1. a problem where a generator expression for include directories was | ||
passed to NVCC, where the generator expression itself was prefixed by `-I`. | ||
As the NNPACK include directory generator expression expands to multiple | ||
directories, the second and later ones were not prefixed by `-I`, causing | ||
NVCC to return an error. First fixed in CMake 3.7 (see | ||
[Kitware/CMake@7ded655f](https://github.com/Kitware/CMake/commit/7ded655f)). | ||
|
||
2. Windows VS2017 fixes that allows one to define the ccbin path | ||
differently between earlier versions of Visual Studio and VS2017. First | ||
introduced after 3.10.1 master version (see | ||
[Kitware/CMake@bc88329e](https://github.com/Kitware/CMake/commit/bc88329e)). | ||
|
||
The downside of using these fixes is that `./upstream/CMakeInitializeConfigs.cmake`, | ||
defining some new CMake variables (added in | ||
[Kitware/CMake@48f7e2d3](https://github.com/Kitware/CMake/commit/48f7e2d3)), | ||
must be included before `./upstream/FindCUDA.cmake` to support older CMake | ||
versions. A wrapper `./FindCUDA.cmake` is created to do this automatically, and | ||
to allow submodules to use these fixes because we can't patch their | ||
`CMakeList.txt`. | ||
|
||
If you need to update files under `./upstream` folder, we recommend you issue PRs | ||
against [the CMake mainline branch](https://github.com/Kitware/CMake/blob/master/Modules/FindCUDA.cmake), | ||
and then backport it here for earlier CMake compatibility. |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
If you need to update files under this folder, we recommend you issue PRs | ||
against [the CMake mainline branch](https://github.com/Kitware/CMake/blob/master/Modules/FindCUDA.cmake), | ||
and then backport it here for earlier CMake compatibility. | ||
|
||
See [this](../README.md) for more details. |
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