Set batch_strides on Params::update (#883)
This commit is contained in:
@@ -339,8 +339,7 @@ public:
|
||||
return workspace_bytes;
|
||||
}
|
||||
|
||||
/// Lightweight update given a subset of arguments. Problem geometry is assumed
|
||||
/// to remain the same.
|
||||
/// Lightweight update given a subset of arguments.
|
||||
void update(Arguments const &args)
|
||||
{
|
||||
ptr_A_real = const_cast<void *>(args.ptr_A_real);
|
||||
@@ -355,6 +354,15 @@ public:
|
||||
ptr_D_real = const_cast<void *>(args.ptr_D_real);
|
||||
ptr_D_imag = const_cast<void *>(args.ptr_D_imag);
|
||||
|
||||
batch_stride_A = args.batch_stride_A;
|
||||
batch_stride_B = args.batch_stride_B;
|
||||
batch_stride_C = args.batch_stride_C;
|
||||
this->batch_stride_D = args.batch_stride_D;
|
||||
batch_stride_A_imag = args.batch_stride_A_imag;
|
||||
batch_stride_B_imag = args.batch_stride_B_imag;
|
||||
batch_stride_C_imag = args.batch_stride_C_imag;
|
||||
batch_stride_D_imag = args.batch_stride_D_imag;
|
||||
|
||||
output_op = args.epilogue;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user