Unverified Commit 0abe5b87 authored by Zhekai Zhang's avatar Zhekai Zhang Committed by GitHub
Browse files

Merge pull request #164 from mit-han-lab/dev

Fix #162
parents 6070bb5b df37484a
......@@ -41,6 +41,7 @@ private:
inline cudaError_t checkCUDA(cudaError_t retValue, const std::source_location location = std::source_location::current()) {
if (retValue != cudaSuccess) {
(void)cudaGetLastError();
throw CUDAError(retValue, location);
}
return retValue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment