mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[c10] Fix typo in __assert_fail noreturn modifier guard (#34157)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34157 `[[noreturn]` only conficts with CUDA __asert_fail defition if clang is used if host compiler Test Plan: CI Reviewed By: EscapeZero Differential Revision: D20232088 fbshipit-source-id: 7182c28a15278e03175865cd0c87410c5de5bf2c
This commit is contained in:
parent
99e211e661
commit
4edff32f81
|
|
@ -218,7 +218,7 @@ constexpr uint32_t CUDA_THREADS_PER_BLOCK_FALLBACK = 256;
|
|||
#else // __APPLE__, _MSC_VER
|
||||
#if defined(NDEBUG)
|
||||
extern "C" {
|
||||
#if defined(__CUDA_ARCH__) || !defined(__clang__)
|
||||
#if !defined(__CUDA_ARCH__) || !defined(__clang__)
|
||||
[[noreturn]]
|
||||
#endif
|
||||
#if defined(__CUDA_ARCH__) || defined(__HIP_ARCH__) || defined(__HIP__)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user