Maybe put this into a separate cuda_assignment_kernels.hpp, and #include that from here to isolate cuda/non-cuda more.