• Lei Wang's avatar
    [Feature] Add TILELANG_CHECK_LAST_ERROR macro for improved error handling in CUDA and HIP (#450) · 0a8c8b99
    Lei Wang authored
    * [Feature] Add TILELANG_CHECK_LAST_ERROR macro for improved error handling in CUDA and HIP
    
    * Introduced TILELANG_CHECK_LAST_ERROR macro to streamline error checking for kernel launches in both CUDA and HIP.
    * Updated kernel launch code in wrapper.py to utilize the new macro, enhancing readability and maintainability.
    * This change improves error reporting by providing detailed messages when kernel execution fails.
    
    * [Refactor] Standardize error message formatting in TILELANG_CHECK_LAST_ERROR macro
    
    * Updated the TILELANG_CHECK_LAST_ERROR macro in both CUDA and HIP implementations to ensure consistent formatting of error messages.
    * Enhanced readability by aligning the error message structure across different platforms, improving maintainability of error handling code.
    0a8c8b99
common.h 6.94 KB