mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
[ROCm][Windows] Add -std=c++17 to HIP_HIPCC_FLAGS (#171180)
To fix build error with C++17 when building *.hip files. Pull Request resolved: https://github.com/pytorch/pytorch/pull/171180 Approved by: https://github.com/jeffdaily Co-authored-by: Jeff Daily <jeff.daily@amd.com>
This commit is contained in:
committed by
PyTorch MergeBot
parent
402153d95a
commit
426deda9c5
@@ -1033,6 +1033,7 @@ if(USE_ROCM)
|
||||
list(APPEND HIP_CXX_FLAGS -DUSE_ROCM_CK_GEMM)
|
||||
endif()
|
||||
list(APPEND HIP_HIPCC_FLAGS --offload-compress)
|
||||
list(APPEND HIP_HIPCC_FLAGS -std=c++17)
|
||||
# Pass device library path for theRock nightly builds
|
||||
if(DEFINED ENV{HIP_DEVICE_LIB_PATH})
|
||||
file(TO_CMAKE_PATH "$ENV{HIP_DEVICE_LIB_PATH}" _hip_device_lib_path)
|
||||
|
||||
Reference in New Issue
Block a user