Backport hand-optimized compiler settings in modules from ROCM to HIP

Backport DECLSPEC settings from ROCM to HIP
This commit is contained in:
Jens Steube
2021-07-13 20:45:01 +02:00
parent 219bed457f
commit 7faf6859d6
66 changed files with 450 additions and 64 deletions
+6
View File
@@ -58,6 +58,12 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
return jit_build_options;
}
// HIP
if (device_param->opencl_device_vendor_id == VENDOR_ID_AMD_USE_HIP)
{
hc_asprintf (&jit_build_options, "-D _unroll");
}
// ROCM
if ((device_param->opencl_device_vendor_id == VENDOR_ID_AMD) && (device_param->has_vperm == true))
{