quantrs2_core/
gpu_stubs.rs1use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct SciRS2GpuConfig {
9 pub device_id: usize,
10 pub memory_pool_size: usize,
11 pub enable_profiling: bool,
12 pub enable_async: bool,
13 pub enable_kernel_cache: bool,
14 pub max_memory_mb: usize,
15 pub simd_level: u8,
16 pub compilation_flags: Vec<String>,
17 pub enable_load_balancing: bool,
18}
19
20impl Default for SciRS2GpuConfig {
21 fn default() -> Self {
22 Self {
23 device_id: 0,
24 memory_pool_size: 1024 * 1024 * 1024, enable_profiling: false,
26 enable_async: true,
27 enable_kernel_cache: true,
28 max_memory_mb: 2048,
29 simd_level: 2,
30 compilation_flags: vec!["-O3".to_string(), "-fast-math".to_string()],
31 enable_load_balancing: true,
32 }
33 }
34}