mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-08 22:28:01 -05:00
chore: remove redundant gpu feature gate
This commit is contained in:
@@ -270,7 +270,6 @@ impl<T: UnsignedInteger> CudaLweCiphertextList<T> {
|
||||
|
||||
Self(cuda_lwe_list)
|
||||
}
|
||||
#[cfg(feature = "gpu")]
|
||||
pub fn get_decompression_size_on_gpu<R>(&self, _streams: &CudaStreams, _range: R) -> u64
|
||||
where
|
||||
R: std::ops::RangeBounds<usize>,
|
||||
|
||||
@@ -112,7 +112,6 @@ impl CudaCompactCiphertextListExpander {
|
||||
};
|
||||
Some((blocks, current_info.data_kind))
|
||||
}
|
||||
#[cfg(feature = "gpu")]
|
||||
fn get_blocks_of_size_on_gpu(&self, index: usize, streams: &CudaStreams) -> Option<u64> {
|
||||
let preceding_infos = self.blocks_info.get(..index)?;
|
||||
let current_info = self.blocks_info.get(index)?;
|
||||
@@ -142,7 +141,6 @@ impl CudaCompactCiphertextListExpander {
|
||||
.transpose()
|
||||
}
|
||||
|
||||
#[cfg(feature = "gpu")]
|
||||
pub fn get_decompression_size_on_gpu(
|
||||
&self,
|
||||
index: usize,
|
||||
|
||||
@@ -125,7 +125,6 @@ impl CudaCompressedCiphertextList {
|
||||
}
|
||||
|
||||
#[allow(clippy::unnecessary_wraps)]
|
||||
#[cfg(feature = "gpu")]
|
||||
fn get_blocks_of_size_on_gpu(
|
||||
&self,
|
||||
index: usize,
|
||||
@@ -166,7 +165,6 @@ impl CudaCompressedCiphertextList {
|
||||
.transpose()
|
||||
}
|
||||
|
||||
#[cfg(feature = "gpu")]
|
||||
pub fn get_decompression_size_on_gpu(
|
||||
&self,
|
||||
index: usize,
|
||||
|
||||
Reference in New Issue
Block a user