use super::context::CudaContext;
use crate::error::{HiveGpuError, Result};
use std::sync::Arc;
#[cfg(feature = "cuda")]
#[derive(Debug)]
#[allow(dead_code)] pub struct CudaBufferPool {
context: Arc<CudaContext>,
}
#[cfg(feature = "cuda")]
impl CudaBufferPool {
pub fn new(context: Arc<CudaContext>) -> Result<Self> {
Ok(Self { context })
}
pub fn get_buffer(&mut self, _size: usize) -> Result<()> {
Err(HiveGpuError::Other(
"CUDA buffer pool not implemented yet".to_string(),
))
}
pub fn return_buffer(&mut self, _buffer: ()) -> Result<()> {
Ok(())
}
}