Add some module specific warnings for ROCM driver in pure kernel mode

This commit is contained in:
jsteube
2019-03-02 16:31:56 +01:00
parent 7eee7b7dbc
commit 4cf1e75871
5 changed files with 28 additions and 5 deletions
+8 -1
View File
@@ -290,7 +290,14 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
if ((hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL) == 0)
{
hc_asprintf (&jit_build_options, "-cl-opt-disable");
// hc_asprintf (&jit_build_options, "-D MAYBE_VOLATILE=volatile");
}
}
if ((device_param->device_vendor_id == VENDOR_ID_AMD) && (device_param->has_vperm == true))
{
if ((hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL) == 0)
{
hc_asprintf (&jit_build_options, "-D MAYBE_VOLATILE=volatile");
}
}