[hip] Generate assertion message in assertion.
Change-Id: Ie66f6563e8728fd0e21cf22dcc6619e4a0e5c28d
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user