/
redgpu
/
hw_optimization
Обзор
Документация
Войти
/
redgpu
/
hw_optimization
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
gpu_intel/opencl_learn/CodeSamples/utils/my_log.hpp
14 строк
361 B
xiping.yan
test pass for mat
29 авг 2025, 10:35
29 авг 2025, 10:35
a05bae0
Код
Авторство
О чём код?
#pragma once #include <CL/opencl.hpp> #include <iostream> #if 1 #define DEBUG_LOG std::cout #else #define DEBUG_LOG std::cout << __FUNCTION__ << ":" << __LINE__ << " log: " #endif inline void print_nd_range(cl::NDRange gs, std::string prefix = std::string()) { std::cout << prefix.c_str() << " " << gs[0] << ", " << gs[1] << ", " << gs[2] << std::endl; }