Skip to content

Commit 1817715

Browse files
committed
use new bufferimpl
1 parent 58a36ff commit 1817715

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gkr_iop/src/gpu/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ pub use gpu_prover::*;
7171
/// Stores a multilinear polynomial in dense evaluation form.
7272
pub struct MultilinearExtensionGpu<'a, E: ExtensionField> {
7373
/// GPU polynomial data, supporting both base field and extension field
74-
pub mle: GpuFieldType,
75-
_phantom: PhantomData<&'a E>,
74+
pub mle: GpuFieldType<'a>,
75+
_phantom: PhantomData<E>,
7676
}
7777

7878
impl<'a, E: ExtensionField> Default for MultilinearExtensionGpu<'a, E> {
@@ -190,23 +190,23 @@ impl<'a, E: ExtensionField> MultilinearExtensionGpu<'a, E> {
190190
}
191191

192192
/// Create from base field GpuPolynomial
193-
pub fn from_ceno_gpu_base(mle_gpu: GpuPolynomial) -> Self {
193+
pub fn from_ceno_gpu_base(mle_gpu: GpuPolynomial<'a>) -> Self {
194194
Self {
195195
mle: GpuFieldType::Base(mle_gpu),
196196
_phantom: PhantomData,
197197
}
198198
}
199199

200200
/// Create from extension field GpuPolynomialExt
201-
pub fn from_ceno_gpu_ext(mle_gpu: GpuPolynomialExt) -> Self {
201+
pub fn from_ceno_gpu_ext(mle_gpu: GpuPolynomialExt<'a>) -> Self {
202202
Self {
203203
mle: GpuFieldType::Ext(mle_gpu),
204204
_phantom: PhantomData,
205205
}
206206
}
207207

208208
/// Method for backward compatibility
209-
pub fn from_ceno_gpu(mle_gpu: GpuPolynomial) -> Self {
209+
pub fn from_ceno_gpu(mle_gpu: GpuPolynomial<'a>) -> Self {
210210
Self::from_ceno_gpu_base(mle_gpu)
211211
}
212212

@@ -266,7 +266,7 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ProverBackend for Gp
266266
type MultilinearPoly<'a> = MultilinearExtensionGpu<'a, E>;
267267
type Matrix = RowMajorMatrix<E::BaseField>;
268268
#[cfg(feature = "gpu")]
269-
type PcsData = BasefoldCommitmentWithWitnessGpu<E::BaseField, BufferImpl<E::BaseField>>;
269+
type PcsData = BasefoldCommitmentWithWitnessGpu<E::BaseField, BufferImpl<'static, E::BaseField>>;
270270
#[cfg(not(feature = "gpu"))]
271271
type PcsData = <PCS as PolynomialCommitmentScheme<E>>::CommitmentWithWitness;
272272

0 commit comments

Comments
 (0)