mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Fix -Wno-duplicate-decl-specifier is valid for C/ObjC but not for C++ (#164552)
Fixes #99715 Pull Request resolved: https://github.com/pytorch/pytorch/pull/164552 Approved by: https://github.com/Skylion007
This commit is contained in:
committed by
PyTorch MergeBot
parent
3ca09d65f1
commit
2d50678dcc
@ -1013,7 +1013,6 @@ if(USE_ROCM)
|
||||
list(APPEND HIP_CXX_FLAGS -DTORCH_HIP_VERSION=${TORCH_HIP_VERSION})
|
||||
list(APPEND HIP_CXX_FLAGS -Wno-shift-count-negative)
|
||||
list(APPEND HIP_CXX_FLAGS -Wno-shift-count-overflow)
|
||||
list(APPEND HIP_CXX_FLAGS -Wno-duplicate-decl-specifier)
|
||||
list(APPEND HIP_CXX_FLAGS -DCAFFE2_USE_MIOPEN)
|
||||
list(APPEND HIP_CXX_FLAGS -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_HIP)
|
||||
list(APPEND HIP_CXX_FLAGS -std=c++17)
|
||||
|
Reference in New Issue
Block a user