/
redgpu
/
tart
Обзор
Документация
Войти
/
redgpu
/
tart
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/test-allocation.hpp
27 строк
460 B
me
about to make big changes
20 окт 2025, 00:28
20 окт 2025, 00:28
d3e773c
Код
Авторство
О чём код?
#ifndef TART_TEST_ALLOCATION #define TART_TEST_ALLOCATION #include "tests-common.hpp" #include "tart.hpp" TEST_CASE("testing allocation (1/1)") { tart::device_ptr dev = getTestDevice(); uint64_t size = 1024; size *= 1024; size *= 1024; size *= 8; bool result = true; try { tart::buffer_ptr buf = dev->allocateBuffer(size); dev->deallocateBuffer(buf); } catch (const std::exception& ex) { result = false; } REQUIRE_FALSE(result); } #endif