Identifiers with a double underscore "anywhere" are reserved
This particular cleanup is limited to just two functions defined in
the HIP headers.
Change-Id: Ib529685265f2fda90e009b24e7e756e0cf363012
[ROCm/clr commit: 3558643c64]
Этот коммит содержится в:
@@ -1112,21 +1112,21 @@ void _wassert(const wchar_t *_msg, const wchar_t *_file, unsigned _line) {
|
|||||||
}
|
}
|
||||||
#else /* defined(_WIN32) || defined(_WIN64) */
|
#else /* defined(_WIN32) || defined(_WIN64) */
|
||||||
extern "C" __device__ __attribute__((noinline)) __attribute__((weak))
|
extern "C" __device__ __attribute__((noinline)) __attribute__((weak))
|
||||||
void __assert_fail(const char * __assertion,
|
void __assert_fail(const char *assertion,
|
||||||
const char *__file,
|
const char *file,
|
||||||
unsigned int __line,
|
unsigned int line,
|
||||||
const char *__function)
|
const char *function)
|
||||||
{
|
{
|
||||||
printf("%s:%u: %s: Device-side assertion `%s' failed.\n", __file, __line,
|
printf("%s:%u: %s: Device-side assertion `%s' failed.\n", file, line,
|
||||||
__function, __assertion);
|
function, assertion);
|
||||||
__builtin_trap();
|
__builtin_trap();
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" __device__ __attribute__((noinline)) __attribute__((weak))
|
extern "C" __device__ __attribute__((noinline)) __attribute__((weak))
|
||||||
void __assertfail(const char * __assertion,
|
void __assertfail(const char *assertion,
|
||||||
const char *__file,
|
const char *file,
|
||||||
unsigned int __line,
|
unsigned int line,
|
||||||
const char *__function,
|
const char *function,
|
||||||
size_t charsize)
|
size_t charsize)
|
||||||
{
|
{
|
||||||
// ignore all the args for now.
|
// ignore all the args for now.
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user