The previous code works fine on Fiji and Vega 10 devices, but bogs down in The
spin locks on Vega 20 or newer. Adding the sleep instructions fixes the
problem.
libgomp/ChangeLog:
* basic-allocator.c (basic_alloc_free): Use BASIC_ALLOC_YIELD.
(basic_alloc_realloc): Use BASIC_ALLOC_YIELD.
+2023-04-20 Andrew Stubbs <ams@codesourcery.com>
+
+ * basic-allocator.c (basic_alloc_free): Use BASIC_ALLOC_YIELD.
+ (basic_alloc_realloc): Use BASIC_ALLOC_YIELD.
+
2023-04-03 Thomas Schwinge <thomas@codesourcery.com>
* target.c (gomp_map_vars_internal)
break;
}
/* Spin. */
+ BASIC_ALLOC_YIELD;
}
while (1);
break;
}
/* Spin. */
+ BASIC_ALLOC_YIELD;
}
while (1);