Неиспользуемый мусор

This commit is contained in:
2025-12-23 14:58:59 +00:00
parent 3425a81750
commit 0727e1ed03
2 changed files with 0 additions and 14 deletions

View File

@@ -13,16 +13,6 @@
// Структуры данных // Структуры данных
// ============================================================================ // ============================================================================
// SoA (Structure of Arrays) для входных данных на GPU
struct GpuTicksSoA {
double* timestamp;
double* open;
double* high;
double* low;
double* close;
int n;
};
// Результат агрегации одного периода // Результат агрегации одного периода
struct GpuPeriodStats { struct GpuPeriodStats {
int64_t period; int64_t period;
@@ -209,9 +199,6 @@ extern "C" int gpu_is_available() {
int n = 0; int n = 0;
cudaError_t err = cudaGetDeviceCount(&n); cudaError_t err = cudaGetDeviceCount(&n);
if (err != cudaSuccess) return 0; if (err != cudaSuccess) return 0;
if (n > 0) {
// cudaFree(0); // Форсируем инициализацию контекста
}
return (n > 0) ? 1 : 0; return (n > 0) ? 1 : 0;
} }

View File

@@ -2,7 +2,6 @@
#include "record.hpp" #include "record.hpp"
#include "period_stats.hpp" #include "period_stats.hpp"
#include <map>
#include <vector> #include <vector>
#include <string> #include <string>
#include <cstdlib> #include <cstdlib>