Skip to content

Change return type of `VolumeBSpline.sample_gradient`, and related functions, to remove CUDA coupling

Paul McCarthy requested to merge rf/sample-gradient into master
  • Change the signature of Volume::sample_gradient, VolumeBSpline::sample_gradient, BiasFieldBSpline::sample_gradient, and WarpFieldBSpline::sample_gradient, so that they use std::vector rather than thrust::host_vector, which will allow for a common CPU/GPU interface for these classes.
  • Change the signature of CostFxnSplineUtils::calculate_sub_grad to accept a float * rather than a thrust::device_vector
  • Rename various .cuh / .cu files to .h / .cpp so that they are compiled with g++ rather than nvcc
Edited by Paul McCarthy

Merge request reports

Loading