From e8641805919f94e54f503f918dc000e036c129bf Mon Sep 17 00:00:00 2001 From: Luya Tshimbalanga Date: Sat, 17 Feb 2024 02:19:27 +0100 Subject: [PATCH] Update hipcc command parameters for ROCm This commit resolves an warning message related to use of depreciated parameters when building Blender. See https://rocm.docs.amd.com/en/docs-5.0.0/reference/rocmcc/rocmcc.html Signed-off-by: Luya Tshimbalanga --- intern/cycles/device/hip/device_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intern/cycles/device/hip/device_impl.cpp b/intern/cycles/device/hip/device_impl.cpp index bbbe357bf76..111d4b6e004 100644 --- a/intern/cycles/device/hip/device_impl.cpp +++ b/intern/cycles/device/hip/device_impl.cpp @@ -258,14 +258,14 @@ string HIPDevice::compile_kernel(const uint kernel_features, const char *name, c const char *const kernel_ext = "genco"; std::string options; # ifdef _WIN32 - options.append("Wno-parentheses-equality -Wno-unused-value --hipcc-func-supp -ffast-math"); + options.append("Wno-parentheses-equality -Wno-unused-value -ffast-math"); # else - options.append("Wno-parentheses-equality -Wno-unused-value --hipcc-func-supp -O3 -ffast-math"); + options.append("Wno-parentheses-equality -Wno-unused-value -O3 -ffast-math"); # endif # ifndef NDEBUG options.append(" -save-temps"); # endif - options.append(" --amdgpu-target=").append(arch); + options.append(" --offload-arch=").append(arch); const string include_path = source_path; const string fatbin_file = string_printf("cycles_%s_%s_%s", name, arch, kernel_md5.c_str()); -- 2.30.2