|
|
@@ -104,7 +104,7 @@
|
|
|
#define cudaStreamWaitEvent(stream, event, flags) hipStreamWaitEvent(stream, event, flags)
|
|
|
#define cudaStream_t hipStream_t
|
|
|
#define cudaSuccess hipSuccess
|
|
|
-#define __trap abort
|
|
|
+#define __trap() do { abort(); __builtin_unreachable(); } while(0)
|
|
|
#define CUBLAS_STATUS_SUCCESS HIPBLAS_STATUS_SUCCESS
|
|
|
#define CUBLAS_STATUS_NOT_INITIALIZED HIPBLAS_STATUS_NOT_INITIALIZED
|
|
|
#define CUBLAS_STATUS_ALLOC_FAILED HIPBLAS_STATUS_ALLOC_FAILED
|