IQ.Pilot Release Commit @ d58810f

This commit is contained in:
IQ.Lvbs CI [bot]
2026-07-20 12:00:10 -05:00
commit 5784b1e8b3
4602 changed files with 1122472 additions and 0 deletions

View File

@@ -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);
}
}