Move USE_RUNTIME flags into runmodel.h

old-commit-hash: 24090d2121
beeps
mitchellgoffpc 2 years ago
parent b69de80962
commit b1a10e45d1
  1. 4
      selfdrive/modeld/runners/runmodel.h
  2. 4
      selfdrive/modeld/runners/snpemodel.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;

@ -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

Loading…
Cancel
Save