Now stuck on a "cuMemcpyHtoD returned CUDA_ERROR_INVALID_VALUE" error