@@ -71,8 +71,8 @@ pub use gpu_prover::*;
71
71
/// Stores a multilinear polynomial in dense evaluation form.
72
72
pub struct MultilinearExtensionGpu < ' a , E : ExtensionField > {
73
73
/// 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 > ,
76
76
}
77
77
78
78
impl < ' a , E : ExtensionField > Default for MultilinearExtensionGpu < ' a , E > {
@@ -190,23 +190,23 @@ impl<'a, E: ExtensionField> MultilinearExtensionGpu<'a, E> {
190
190
}
191
191
192
192
/// 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 {
194
194
Self {
195
195
mle : GpuFieldType :: Base ( mle_gpu) ,
196
196
_phantom : PhantomData ,
197
197
}
198
198
}
199
199
200
200
/// 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 {
202
202
Self {
203
203
mle : GpuFieldType :: Ext ( mle_gpu) ,
204
204
_phantom : PhantomData ,
205
205
}
206
206
}
207
207
208
208
/// 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 {
210
210
Self :: from_ceno_gpu_base ( mle_gpu)
211
211
}
212
212
@@ -266,7 +266,7 @@ impl<E: ExtensionField, PCS: PolynomialCommitmentScheme<E>> ProverBackend for Gp
266
266
type MultilinearPoly < ' a > = MultilinearExtensionGpu < ' a , E > ;
267
267
type Matrix = RowMajorMatrix < E :: BaseField > ;
268
268
#[ cfg( feature = "gpu" ) ]
269
- type PcsData = BasefoldCommitmentWithWitnessGpu < E :: BaseField , BufferImpl < E :: BaseField > > ;
269
+ type PcsData = BasefoldCommitmentWithWitnessGpu < E :: BaseField , BufferImpl < ' static , E :: BaseField > > ;
270
270
#[ cfg( not( feature = "gpu" ) ) ]
271
271
type PcsData = <PCS as PolynomialCommitmentScheme < E > >:: CommitmentWithWitness ;
272
272
0 commit comments