Commit Graph

48 Commits

Author SHA1 Message Date
Willem Melching 91f1082394 -Werror (#1567)
* werror

* -Wno-inconsistent-missing-override

* Silence ffmpeg deprecation warnings

* add some more pragmas to ignore warnings

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 50f3f1d3357b356c5b1144c518f35375f5bb9924
2020-05-26 13:27:01 -07:00
Dean Lee 9d31c0194f reduce the scope of mutex (#1561)
old-commit-hash: d5858955ee5aa9c8fae7c9f26e7754e86353377a
2020-05-26 09:57:14 -07:00
George Hotz 6a68510918 remove the clCreateProgramWithSource interceptor (#1559)
* remove the clCreateProgramWithSource interceptor

* that's old code, thneed is better

* label them thneed_, we shouldn't need to touch CL for anything not SNPE related
old-commit-hash: b8571710e09e58b9e67170a9924eef79f32c480b
2020-05-24 03:33:36 -07:00
Willem Melching 7f0b3180a4 Use C++ version of SubMaster and PubMaster (#1548)
* add PubMaster & SubMaster

remove 'delete msg'

remove headers

* use constructor to initial all submster

* modify drain sockets

* fix typo in ssconscript.remove lines

no checkValid in loggerd

last modify

handle_message:event->&event

fix type

remove heads

event to auto

* new interface

* api changed

* Revert "use constructor to initial all submster"

This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692.

* change to new api

* revert loggerd

* dd

* use new PubSub api

* update to new interface

don't modify loggerd

reset panda

reset opendbc

remove empty lines

* switch to new pubMaster

* update to the new inteface

change

remove error code

. to ->

merge paramsd.cc

update panda

fix typo

simplify

fix typo

* Fix build

* always conflate

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: ab5af232b243ba8137695f68c125f922fb412d44
2020-05-21 16:04:33 -07:00
George Hotz 11628b1f14 add thneed self test (#1535)
* add thneed self test

* don't do the memset in thneed, shouldn't matter though

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6c0ad1e67567e149cdf9e00ab7ae43f4cc5bc579
2020-05-18 11:34:29 -07:00
Comma Device 16c1926f64 wtf, how was that commented out and the tests still passed
old-commit-hash: 495e0c4648b5c3d20709bb3e08f83dad62725c2d
2020-05-18 17:10:39 +00:00
George Hotz 988361dd92 This isn't bigmodel, but there's a lot of good stuff here (#1532)
* bigmodel

* more debug print

* debugging bigmodel

* remove the tanh, debugging

* print images/buffers

* disassemble the command queues

* decompiler

* dump the shaders

* full disasm

* support patching kernel and fixing convolution_horizontal_reduced_reads_1x1

* microbenchmark

* 42 GFLOPS, 1 GB/s

* gemm benchmark

* 75 GFLOPS vs 42 GFLOPS

* 115 GFLOPS

* oops, never mind

* gemm image is slow

* this is pretty hopeless

* gemm image gets 62 GFLOPS

* this is addictive and still a waste of time

* cleanup cleanup

* that hook was dumb

* tabbing

* more tabbing

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 78a352a8ca8a948e86e7c752732e470f89d92280
2020-05-17 23:13:17 -07:00
George Hotz 206b6abe7d thneed saves 45% of a core (#1512)
* thneed runs the model

* thneed is doing the hooking

* set kernel args

* thneeding the bufferS

* print the images well

* thneeds with better buffers

* includes

* disasm adreno

* parse packets

* disasm works

* disasm better

* more thneeding

* much thneeding

* much more thneeding

* thneed works i think

* thneed is patient

* thneed works

* 7.7%

* gpuobj sync

* yay, it mallocs now

* cleaning it up, Thneed

* sync objs and set power

* thneed needs inputs and outputs

* thneed in modeld

* special modeld runs

* can't thneed the DSP

* test is weird

* thneed modeld uses 6.4% CPU

* add thneed to release

* move to debug

* delete some junk from the pr

* always track the timestamp

* timestamp hacks in thneed

* create a new command queue

* fix timestamp

* pretty much back to what we had, you can't use SNPE with thneed

* improve thneed test

* disable save log

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 302d06ee709cb65dba39e836917f5693f0819efb
2020-05-15 13:53:01 -07:00
Willem Melching aedf223401 remove eigen from phonelibs (#1505)
old-commit-hash: add784a7df0bd27aa1df115e38d43d5159c832f9
2020-05-13 16:41:52 -07:00
Willem Melching 8505259e41 Library cleanup (#1491)
* library cleanup

* remove fastcv

* Fix build step

* bump cereal

* bump cereal

* Install capnp

* bump

* no docker cache

* Update installation instructions

* Needs sudo

* Can we sudo?

* Cache was not the problem

* remove static libraries from boardd install script

* Update setup script

* Remove import

* No capnp install in lgtm

* Fix dockerfile
old-commit-hash: 72db8d890d04e6eb3ce652be3da9bdf23ebda510
2020-05-12 18:50:07 -07:00
Harald Schafer 02eeef5f2b safer
old-commit-hash: ee10697d861c422545ce29ce7869c328e42c7a7c
2020-05-10 22:00:41 -07:00
robbederks 5a12fc32e7 Ambient light calibration parameters on persist partition (#1429)
* WIP: light sensor persistent params

* fix params writing

* Persistent params argument in C params lib. Fixed symlink flow

* Removed debug prints

* fix boardd

* fix ui

* remove debug print
old-commit-hash: 71bebc4fca91681669c86b5600b67bf2b7f899bf
2020-05-08 19:39:18 -07:00
HaraldSchafer f3747d2fe5 Better poly (#1437)
- better polyfitting
- no mpc cost change during lane change
- model trained with better ll gt, sim noise and guaranteed memories
old-commit-hash: 65fcc7c45ff1d4d747dc52ff5791afb84a18744a
2020-05-08 17:14:43 -07:00
Dean Lee 0b0674ef20 camerad: move c-capnp to c++ (#1472)
* convert c-capnp to c++

change paramater type

* remove c-capnp header from commonmodel.c

* unsigned short -> uint16_t

* MSM_CAMERA_I2C_ADDR_TYPE_MAX->4
old-commit-hash: b6d6f520327226004c328a4b7cbbb3b855b2909d
2020-05-07 20:14:30 -07:00
George Hotz 16cbb5e255 Revert "Bypass alignment related copy whenever possible (#1443)"
This reverts commit 235d4f8957ee4566d6217783638fa58a586bb35a.

old-commit-hash: d5ca841b0f18d2e707eb1f73afac842ede9be7e8
2020-05-04 09:54:05 -07:00
George Hotz d47b2ef576 More LGTM fixups (#1457)
* exclude lib dirs, fix 3 cpp errors

* fix more alerts, exclude mkvparse

Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: e568d3cadc71d2b301fcb46af9afb3c8c8005f72
2020-05-02 20:00:41 -07:00
George Hotz 6fbcde48e5 Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes

* call super inits in radars

* unused imports, dup lines

* more radars, more unused imports

* pass CP into RadarInterfaceBase

* more fixups

* unused imports

* delete unused lines

* ugh, new unused import

Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 1295cfe06cd80a2c2f40e0af97697ee818037f08
2020-05-02 12:07:34 -07:00
Dean Lee f2932aadfd Bypass alignment related copy whenever possible (#1443)
remove blank lines

add file messagehelp.h

remove blank line

simplify

after review
old-commit-hash: b2250166281406853de9901271d69a9e64b3b74e
2020-05-01 19:21:00 -07:00
Dean Lee 451af5865c unmap a previously mapped buff (#1410)
old-commit-hash: 98ec06e125b605405900673be0305677ad5efce3
2020-04-22 10:16:05 -07:00
Dean Lee f01bf14ba4 cleanup visionipc when recovering from fault in dmonitoringd and loggerd (#1402)
old-commit-hash: 2928c53e4fbf4be17f760f98c6b1dc3175f754bc
2020-04-20 13:15:11 -07:00
Andrew Sidhu 7fa9e07bf8 Fix by Boggyver - Add Traffic Convention data to input buffer (#1405)
Credit goes to Boggyver for finding this.
old-commit-hash: a120adaeccd8900995c0d9227e9354d0b176c615
2020-04-20 10:05:33 -07:00
Dean Lee 5564be35bf dmonitoringmodeld: fix memory leak (#1403)
old-commit-hash: ce4528c39219c203bc518d6ebd0d1d331b830d19
2020-04-20 09:23:23 -07:00
Dean Lee 83fde61d3b fixes the error with OpenCL depreciation warnings (#1394)
old-commit-hash: 25ab2521abb08e58b80f45f16ff51f949e28f05c
2020-04-19 14:04:33 -07:00
Willem Melching b5c2394ebe modeld, add cloudlogs
old-commit-hash: e171a7a047f9d5507ef650c79aee1d0981d66f5f
2020-04-19 14:00:30 -07:00
Dean Lee c69b4c17e8 modeld, cleanup visionipc when recovering from fault
old-commit-hash: 8f2858efba4ac7735c5bb237a7e88348ec4c424e
2020-04-19 13:59:36 -07:00
Willem Melching 93a539e7ff Release messaging sockets and context on shutdown (#1391)
* release resources when thread is done

* add white space

* add white space

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 02e474580ee90713bc3426ea512278c5eb1c6b15
2020-04-17 16:37:34 -07:00
ZwX1616 f1a05ef594 fix RHD memory leak
old-commit-hash: 6c5080fa9860dbdfc6b97febc85ad1b537e42df9
2020-04-16 17:31:59 -07:00
HaraldSchafer 5d6131d711 add traffic convention (#1372)
* I think this works

* clean up
old-commit-hash: f5b28ad2d267adae0d6e6fd7816389d3f8d32200
2020-04-15 21:19:25 -07:00
ZwX1616 f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b42e56dc67a013dc2ee856360e4d1d1c
2020-04-15 16:48:44 -07:00
HaraldSchafer cd44a6b07f Traffic b2 (#1345)
* add traffic convention

* hope this work

* no comment

* latest and gratest

* big gru model

* 1af55c7d-ee15-414a-9e98-a0cb08c3441f/75

* much later in training

* wrong temporal size

* converged

* fix lane changes
old-commit-hash: d3edc594cef776847645a6cd14e9e3ce6893bd29
2020-04-13 13:27:06 -07:00
George Hotz f5078e87bc tici: add (somewhat) broken camerad support (#1300)
* capnparm

* building in progress

* scons build works

* that script fixes opencl

* start new camera code

* includes and more camera scripts

* control c works now

* no device control yet

* phy too

* just one camera for now

* fix capnparm

* hmm, the inits are needed

* more cameras

* link stop start

* doesn't work yet

* fix ion on qcom2

* start poll ish

* 4 pictures and done

* no jpeg

* it works to picture

* destroy sync obj

* both work for now

* defined QCOM2

* fix fd leak

* run modeld

* 10 bit mode

* real frame stride

* needs digital gain

* dnew

* no color correcting on new

* that snpe doesn't work

* qcom2 gate

* cleanups

* oops, fix aarch64 detector

* update cereal

* modeld works with SNPE

* fix driver monitoring model

Co-authored-by: Tici <robbe@comma.ai>
old-commit-hash: 8db0993663d7f16cddde00a2dfac8347a152b34e
2020-03-31 16:34:55 -07:00
George Hotz 3f5d11ff3b Preparing for the efficientnet (#1255)
* snpe version 1.35.0.698

* fix files common for new snpe

* efficient net with normal names

* compiling with 1.32 works

* actual snpe files

* fix monitoring, delete unneeded

* point the symlinks to the right places

* err, modeld needs the CPU

* benchmark for 50 its

* put back old model for now

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 6e5a2d404bfbc33e5a63986f7d618d07d9c9c07f
2020-03-30 14:20:51 -07:00
ZwX1616 a004735b19 add webcam to cameras (#1201)
old-commit-hash: a95e61edf4176c034c0537293a3cf0753c45daa1
2020-03-26 19:19:47 -07:00
Harald Schafer 5f17520b8e add long_x
old-commit-hash: d02f55ae0b0ee39ed758c5b8a19411fddc4905a4
2020-03-26 17:40:12 -07:00
Comma Device 52f3c1aca3 add program dumping to opencl hooks
old-commit-hash: 9a50e0445a13e774b5e392818d004c5dbf9cbd95
2020-03-18 03:30:39 +00:00
George Hotz f2d189c077 hook opencl to profile SNPE (#1249)
* hook for snpe speed

* hook works

* prints kernel names

* add timing to hook

* clean up printing

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 774912075af3bb23b6e25e8921ce7da940bcc039
2020-03-17 20:04:55 -07:00
HaraldSchafer 544d198bed Pulse desire (#1172)
* initial

* compilation fixes

* add desire

* pulse desire

* 0d5728f6-a918-40a6-bce3-a9d0f1238180/20

* cleaner

* inject model

* inject model

* test runs

* ah already done I see

* remove useless

* update

* updates, doesnt work

* fix generating new references

Co-authored-by: Willem Melching <willem.melching@gmail.com>

old-commit-hash: 63d3bb517fdac3d953e67ca4a16f2c742388cdc5
2020-03-04 18:51:45 -08:00
Harald Schafer 86af8b3a93 cutin not correctly parsed
old-commit-hash: 5f34f17c9e0be72082c1c448065f68cfc380486b
2020-02-20 13:28:23 -08:00
Comma Device 3174d0f76f actually fix benchmark script
old-commit-hash: 042415b021ae8b9ab904569881e2be1a98e00d3b
2020-02-19 02:27:31 +00:00
Comma Device 7bc5e62ca7 fix snpe_benchmark script
old-commit-hash: a8f55620814380b2a933f4fc95e09ea638fa579a
2020-02-19 02:13:46 +00:00
George Hotz 54dfddd245 Cleanup simulator and add usage instructions (#1050)
* cleanup simulator files

* minor updates

* update readme

* keras runner builds

* hmm, still doesn't work

* keras runner works

* should work with python3 keras mod

* touchups

old-commit-hash: c50c718293
2020-02-04 19:46:57 -08:00
HaraldSchafer 398fb87509 Multipath supercombo (#1036)
* exclude stuff outside of validity window

* 94dd2da7-23ae-4628-9d12-37f58b379110/10

* fbe443fd-1d65-4b4d-8e3a-3817b58bacd0/50

* sanity clip

old-commit-hash: f610e596c4
2020-02-03 11:25:22 -08:00
ZwX1616 2ad685b194 dmonitoringd (#1016)
old-commit-hash: 6322a275d6
2020-01-30 19:12:44 -08:00
George Hotz 36f19a9b3c base SNPE path off home dir, still not really generic
old-commit-hash: 6ceffe68d0
2020-01-17 17:45:38 -08:00
George Hotz 510b718f0f logcatd, loggerd, mapd, modeld, proclogd
old-commit-hash: da079d47d7
2020-01-17 11:20:17 -08:00
George Hotz 81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher 99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00