Update hipcc command parameters for ROCm #118401

Open
Luya Tshimbalanga wants to merge 1 commits from Luya-Tshimbalanga/blender-fix:blender-v4.1-release into blender-v4.1-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 3 additions and 3 deletions

View File

@ -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());