--- lib/CL/devices/common.c 2019-10-11 16:35:43.000000000 +0200 +++ lib/CL/devices/common.c 2020-10-09 19:33:27.512072000 +0200 @@ -1079,6 +1079,8 @@ char *module_fn = pocl_check_kernel_disk_cache (command, specialize); + // reset possibly existing errors from calls from an ICD loader + (void)dlerror(); ci->dlhandle = dlopen (module_fn, RTLD_NOW | RTLD_LOCAL); dl_error = dlerror ();