[hip] Generate assertion message in assertion.

Change-Id: Ie66f6563e8728fd0e21cf22dcc6619e4a0e5c28d
Tento commit je obsažen v:
Michael LIAO committed 2020-04-21 16:44:40 -04:00
1 rodič 8d63204887
revize 2c1933e0f3
1 file changed
+2
+2
Zobrazit soubor
@@ -1076,6 +1076,8 @@ void __assert_fail(const char * __assertion,
unsigned int __line,
const char *__function)
{
printf("%s:%u: %s: Device-side assertion `%s' failed.\n", __file, __line,
__function, __assertion);
// Ignore all the args for now.
__builtin_trap();
}