File pytorch-rocm-c10_hip-cmakefile.patch of Package python-torch-oldstable
--- a/c10/hip/CMakeLists.txt 2024-08-29 06:02:47.440433948 +0200 +++ b/c10/hip/CMakeLists.txt 2024-08-29 06:02:49.176518220 +0200 @@ -33,7 +33,7 @@ # caffe2_hip adds a bunch of dependencies like rocsparse, but c10/hip is supposed to be # minimal. I'm not sure if we need hip_hcc or not; for now leave it out - +set_target_properties(c10_hip PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF) # If building shared library, set dllimport/dllexport proper. target_compile_options(c10_hip PRIVATE "-DC10_HIP_BUILD_MAIN_LIB") # Enable hidden visibility if compiler supports it.