From b1a10e45d1c2ce40e06383678ccb095e83967f17 Mon Sep 17 00:00:00 2001 From: mitchellgoffpc Date: Mon, 21 Aug 2023 19:26:48 -0700 Subject: [PATCH] Move USE_RUNTIME flags into runmodel.h old-commit-hash: 24090d21219cb93de18103cda3a6ada02f4ba3f2 --- selfdrive/modeld/runners/runmodel.h | 4 ++++ selfdrive/modeld/runners/snpemodel.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/modeld/runners/runmodel.h b/selfdrive/modeld/runners/runmodel.h index 00c88131bf..18cc180cb7 100644 --- a/selfdrive/modeld/runners/runmodel.h +++ b/selfdrive/modeld/runners/runmodel.h @@ -8,6 +8,10 @@ #include "common/clutil.h" #include "common/swaglog.h" +#define USE_CPU_RUNTIME 0 +#define USE_GPU_RUNTIME 1 +#define USE_DSP_RUNTIME 2 + struct ModelInput { const std::string name; float *buffer; diff --git a/selfdrive/modeld/runners/snpemodel.h b/selfdrive/modeld/runners/snpemodel.h index e646e5225b..0ae5a8f820 100644 --- a/selfdrive/modeld/runners/snpemodel.h +++ b/selfdrive/modeld/runners/snpemodel.h @@ -13,10 +13,6 @@ #include "selfdrive/modeld/runners/runmodel.h" -#define USE_CPU_RUNTIME 0 -#define USE_GPU_RUNTIME 1 -#define USE_DSP_RUNTIME 2 - #ifdef USE_THNEED #include "selfdrive/modeld/thneed/thneed.h" #endif