From 68e7f42d68232efb89a5dc882fafa71daab72a28 Mon Sep 17 00:00:00 2001 From: YassineYousfi Date: Fri, 21 Oct 2022 13:11:50 -0700 Subject: [PATCH] use upstream tinygrad (#26178) * use upstream tinygrad * add networkx to pipfile * Revert "add networkx to pipfile" This reverts commit 6cfa164378fa072b325a27040f0388730771437c. * dont need networkx and update tinygrad * submodule sync * add new thneed file * fix release files Co-authored-by: Adeeb Shihadeh --- .gitmodules | 2 +- release/files_common | 1 + selfdrive/modeld/SConscript | 1 + selfdrive/test/setup_device_ci.sh | 1 + tinygrad_repo | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 544c95c943..26f93ef164 100644 --- a/.gitmodules +++ b/.gitmodules @@ -18,4 +18,4 @@ url = ../../commaai/body.git [submodule "tinygrad"] path = tinygrad_repo - url = ../../commaai/tinygrad.git + url = https://github.com/geohot/tinygrad.git diff --git a/release/files_common b/release/files_common index 07ffaf8501..e3c417040c 100644 --- a/release/files_common +++ b/release/files_common @@ -565,6 +565,7 @@ opendbc/tesla_powertrain.dbc tinygrad_repo/openpilot/compile.py tinygrad_repo/accel/opencl/* tinygrad_repo/extra/onnx.py +tinygrad_repo/extra/thneed.py tinygrad_repo/extra/utils.py tinygrad_repo/tinygrad/llops/ops_gpu.py tinygrad_repo/tinygrad/llops/ops_opencl.py diff --git a/selfdrive/modeld/SConscript b/selfdrive/modeld/SConscript index 5c02e2b15f..f1a8d71881 100644 --- a/selfdrive/modeld/SConscript +++ b/selfdrive/modeld/SConscript @@ -83,6 +83,7 @@ if use_thneed and arch == "larch64" or GetOption('pc_thneed'): "#tinygrad_repo/accel/opencl/ops_opencl.py", "#tinygrad_repo/accel/opencl/preprocessing.py", "#tinygrad_repo/extra/onnx.py", + "#tinygrad_repo/extra/thneed.py", "#tinygrad_repo/extra/utils.py", "#tinygrad_repo/tinygrad/llops/ops_gpu.py", "#tinygrad_repo/tinygrad/llops/ops_opencl.py", diff --git a/selfdrive/test/setup_device_ci.sh b/selfdrive/test/setup_device_ci.sh index a9c6527970..02c7d76637 100755 --- a/selfdrive/test/setup_device_ci.sh +++ b/selfdrive/test/setup_device_ci.sh @@ -60,6 +60,7 @@ find . -maxdepth 1 -not -path './.git' -not -name '.' -not -name '..' -exec rm - git reset --hard $GIT_COMMIT git checkout $GIT_COMMIT git clean -xdff +git submodule sync git submodule update --init --recursive git submodule foreach --recursive "git reset --hard && git clean -xdff" diff --git a/tinygrad_repo b/tinygrad_repo index 870ea766ee..8e22d5ee67 160000 --- a/tinygrad_repo +++ b/tinygrad_repo @@ -1 +1 @@ -Subproject commit 870ea766eec7a38d7d590c81436f15271ba2667e +Subproject commit 8e22d5ee675277181e1eff644dde9e844fc40fce