sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
This commit is contained in:
commit
de77c89cf6
3995 files changed
+1260688
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "../ops/ops.cuh"
|
||||
#include <iostream>
|
||||
|
||||
#define CHECK_CUDA_ERROR(val) check((val), #val, __FILE__, __LINE__)
|
||||
template <typename T>
|
||||
void check(T err, char const* const func, char const* const file,
|
||||
int const line)
|
||||
{
|
||||
if (err != hipSuccess)
|
||||
{
|
||||
std::cerr << "HIP Runtime Error at: " << file << ":" << line
|
||||
<< std::endl;
|
||||
std::cerr << hipGetErrorString(err) << " " << func << std::endl;
|
||||
//std::exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user