From 8a2a821c03535e02d96a9f5ddb9bc63b15115b70 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Wed, 4 Mar 2020 13:32:42 +0100 Subject: [PATCH] Allow unroll code in -m 18200 on NV GPU --- src/modules/module_18200.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/module_18200.c b/src/modules/module_18200.c index 005a435c1..5d95589ed 100644 --- a/src/modules/module_18200.c +++ b/src/modules/module_18200.c @@ -64,6 +64,12 @@ char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY return jit_build_options; } + // NVIDIA GPU + if (device_param->opencl_device_vendor_id == VENDOR_ID_NV) + { + hc_asprintf (&jit_build_options, "-D _unroll"); + } + // AMD-GPU-PRO if ((device_param->opencl_device_vendor_id == VENDOR_ID_AMD) && (device_param->has_vperm == false)) {