We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bbd57b commit 1597c33Copy full SHA for 1597c33
1 file changed
crates/pecos-gpu-sims/src/gpu_probe.rs
@@ -61,6 +61,18 @@ pub fn request_default_gpu_device(
61
device_type: info.device_type,
62
};
63
64
+ // Reject software renderers and unknown device types -- they technically
65
+ // "work" but OOM on real workloads (common on CI runners without real GPUs)
66
+ match info.device_type {
67
+ wgpu::DeviceType::DiscreteGpu | wgpu::DeviceType::IntegratedGpu => {}
68
+ other => {
69
+ return Err(GpuStartupError::DeviceCreation {
70
+ info,
71
+ error: format!("Device type {other:?} is not a hardware GPU"),
72
+ });
73
+ }
74
75
+
76
let (device, queue) = pollster::block_on(adapter.request_device(&wgpu::DeviceDescriptor {
77
label: Some(label),
78
required_features: wgpu::Features::empty(),
0 commit comments