Skip to content

Commit a9a99a9

Browse files
seemetherepytorchmergebot
authored andcommitted
Add ignore for -Wunsupported-availability-guard
This failed internal builds so just upstreaming the internal fix Signed-off-by: Eli Uriegas <eliuriegasfb.com> Pull Request resolved: #77995 Approved by: https://github.com/bigfootjon, https://github.com/malfet
1 parent 04ac80c commit a9a99a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aten/src/ATen/Context.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ bool Context::hasMKLDNN() {
227227
bool Context::hasMPS() {
228228
#if defined(__APPLE__)
229229
#if __is_target_os(macOS)
230+
_Pragma("clang diagnostic ignored \"-Wunsupported-availability-guard\"")
230231
if (__builtin_available(macOS 12.3, *) || __builtin_available(macOSApplicationExtension 12.3, *)) {
231232
return c10::impl::hasDeviceGuardImpl(at::DeviceType::MPS);
232233
} else {

0 commit comments

Comments
 (0)