File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
crates/prover/src/core/backend/icicle Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,20 @@ impl PolyOps for IcicleBackend {
103103 folded
104104 }
105105
106+ // fn extend(poly: &CirclePoly<Self>, log_size: u32) -> CirclePoly<Self> {
107+ // assert!(log_size >= poly.log_size());
108+ // let count_zeros_to_extend = poly.coeffs.len();
109+ // let coeffs = DeviceVec::cuda_malloc_extend_with_zeros(&poly.coeffs.data, count_zeros_to_extend).unwrap();
110+ // CirclePoly::new(DeviceColumn {data: coeffs})
111+ // }
112+
106113 fn extend ( poly : & CirclePoly < Self > , log_size : u32 ) -> CirclePoly < Self > {
107114 assert ! ( log_size >= poly. log_size( ) ) ;
108- let count_zeros_to_extend = poly. coeffs . len ( ) ;
109- let coeffs = DeviceVec :: cuda_malloc_extend_with_zeros ( & poly. coeffs . data , count_zeros_to_extend) . unwrap ( ) ;
110- CirclePoly :: new ( DeviceColumn { data : coeffs} )
115+
116+ let mut device_column = DeviceColumn :: zeros ( 1 << log_size) ;
117+ poly. coeffs . data . copy_to_device ( & mut device_column. data ) . unwrap ( ) ;
118+
119+ CirclePoly :: new ( device_column)
111120 }
112121
113122 fn evaluate (
You can’t perform that action at this time.
0 commit comments