mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
fix up model tests + tools (#21071)
* unlogger: send yuv stream
* fix up model test tools
* fix unlogger
* rename model replay
* bump cereal
* test in actions
* no ci for now
old-commit-hash: cf6d133638
This commit is contained in:
@@ -37,12 +37,13 @@ if arch == "aarch64" or arch == "larch64":
|
||||
else:
|
||||
libs += ['pthread']
|
||||
|
||||
# for onnx support
|
||||
common_src += ['runners/onnxmodel.cc']
|
||||
if not GetOption('snpe'):
|
||||
# for onnx support
|
||||
common_src += ['runners/onnxmodel.cc']
|
||||
|
||||
# tell runners to use onnx
|
||||
lenv['CFLAGS'].append("-DUSE_ONNX_MODEL")
|
||||
lenv['CXXFLAGS'].append("-DUSE_ONNX_MODEL")
|
||||
# tell runners to use onnx
|
||||
lenv['CFLAGS'].append("-DUSE_ONNX_MODEL")
|
||||
lenv['CXXFLAGS'].append("-DUSE_ONNX_MODEL")
|
||||
|
||||
if arch == "Darwin":
|
||||
# fix OpenCL
|
||||
@@ -56,10 +57,9 @@ else:
|
||||
|
||||
common_model = lenv.Object(common_src)
|
||||
|
||||
|
||||
# build thneed model
|
||||
if arch == "aarch64" or arch == "larch64":
|
||||
compiler = lenv.Program('thneed/compile', ["thneed/compile.cc" ]+common_model, LIBS=libs)
|
||||
compiler = lenv.Program('thneed/compile', ["thneed/compile.cc"]+common_model, LIBS=libs)
|
||||
cmd = f"cd {Dir('.').abspath} && {compiler[0].abspath} ../../models/supercombo.dlc ../../models/supercombo.thneed --binary"
|
||||
|
||||
lib_paths = ':'.join([Dir(p).abspath for p in lenv["LIBPATH"]])
|
||||
|
||||
Reference in New Issue
Block a user