[hip] Disable assert workaround for HCC on HIP-Clang.
- HIP-Clang follows the standard assert definition by providing
`__assert_fail`. But, `assert` macro is added as an HCC-specific
workaround due to the missing implementation. Only enable that on the
HCC compilation to avoid unexpected behaviors on HIP-Clang
compilation.
Change-Id: I1c9a707baff9b85c30faef58c52ebfe07e3fc3fc
[ROCm/hip commit: cea6b99a28]
Tá an tiomantas seo le fáil i:
tiomanta ag
Michael Hong Bin Liao
tuismitheoir
b2edee4693
tiomantas
49dfc5b2bd
@@ -121,7 +121,7 @@ extern int HIP_TRACE_API;
|
||||
#endif
|
||||
|
||||
// TODO-HCC add a dummy implementation of assert, need to replace with a proper kernel exit call.
|
||||
#if __HIP_DEVICE_COMPILE__ == 1
|
||||
#if defined(__HCC__) && __HIP_DEVICE_COMPILE__ == 1
|
||||
#undef assert
|
||||
#define assert(COND) \
|
||||
{ \
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir