use std::sync::{Arc, Mutex}; use lazy_static::lazy_static; use nncombinator::cuda::mem::{Alloctype, MemoryPool}; lazy_static! { pub static ref SHARED_MEMORY_POOL:Arc> = Arc::new(Mutex::new(MemoryPool::new(Alloctype::Device).unwrap())); }