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
+4
View File
@@ -77,6 +77,10 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
{
native_threads = 64;
}
else if (device_param->opencl_device_vendor_id == VENDOR_ID_AMD_USE_HIP)
{
native_threads = 64;
}
else
{
native_threads = 32;