mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
fc826c5780
* All Cuda* objects now take in a ContextImpl* during construction, and save the context instead of individual handles. * Since we no longer use the legacy default stream, we need to explicitly synchronize the stream before performing GPU->CPU transfers, and CudaBuffer is responsible for such synchronization when asked to perform GPU to CPU transfers. * Remove all manual syncs and relegate syncing to CudaBuffer before performing GPU to CPU transfers. Change-Id: Ic73cb24174a1e09842827323280e90241716cc20