-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update HAS_CUPTI_RANGE_PROFILER to CUDA 11+ for CUPTI Range Profiler …
…APIs and remove init-statement in selection statement (#555) Summary: Pull Request resolved: #555 The CuptiRangeProfilerAPI is using APIs from CUPTI in CUDA 11 such as CUpti_Profiler_GetCounterAvailability_Params and cuptiProfilerGetCounterAvailability. These are not available in CUDA 10.2 which caused PyTorch CI to crash. Also, move the init statement outside of the if statement, which is a C++17 feature, but PyTorch uses C++14. Test Plan: CI Tests and PyTorch build in C++14. Reviewed By: malfet Differential Revision: D34690168 Pulled By: aaronenyeshi fbshipit-source-id: 619570452130aabe29d83e12459c366b99a7f830
- Loading branch information
1 parent
505a9e8
commit 742260c
Showing
3 changed files
with
22 additions
and
20 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