Do some final testing of the tracking
Not a real commit! Timing instead:
Timing for CV creation:
0.077 for cv creation overall. (2.5 frames)
  0.025 to allocate the CV with the initial data (1 frame)
    0.0125 to allocate each of hitContainer and dataContainer
  0.052 to initialize, essentially all in initOptimization (2 frames)
    0.020 to cacheGValues (unneeded in initOptimization)(1 frame)
      0.0016 to convert to grayscale
      0.0096 to build the initial _g before sqrt,etc.
      0.0067 to deform initial _g
      0.0016 to assemble gu, gd, gl, gr
    0.028 to minv (unneeded in init) (1 frame)
    0.0015 to other after an optimization

Result is that it requires multiple frames just to set up the CV

0.042 to 0.06+ for A optimization run (1.5 frames)
0.00324 for Q update. Why? It does less work than D update.
0.00137 for D update, but often 2-3 times that, prob due to L3/RAM conflict or something (0.05 frames)
commit first working gpu cost vol update
iterate on kernels, having trouble with driver crashing, very finniky
Added a bunch of demo kernels, from passthrough to volume projection
Mostly fixed crashing
Got globally weighted cost going, good speed compromise
I think I'm done with the cv update. Just need a minor tweak for min/max
version with min/max index finding
Stable Intermediate:Globally weighted cost updates.
Timing:
10.06 ms to alloc a cv data or a cv hit container
11.40 ms for full device side cv init
5.01  ms for full update seq with two downloads
   538 us host/375 us device for texture upload
   464 us host  per image downloaded
Minor cosmetic fixes to stable intermediate
Interesting intermediate: A-optimization without A func but with smoothing.
prepare for QD porting to gpu
unstable: badly synchronized version of QD update
semi working qd
unstable: working gpu mapping end to end
Prep for tracker enable
Stable Checkpoint: Working GPU mapping with CPU Tracking.
160 ms for 5 frames end to end, which is just about perfect :-)
Next on agenda is packaging.
Stable Checkpoint: Same as before, but wit hmissing files included and G functions.
Merge branch 'master' of https://github.com/anuranbaka/OpenDTAM