Abenezer Belachew
About meA note from the deskProjectsThings I’ve builtGPU compute pipeline12.4 TFLOPSSTEP 1STEP 2STEP 3STEP 4WORKLOADAllFP16FP32INT8WGSLKERNELS · 3 PASSES · 8.4 GB VRAMCullingPrefix sumIndirectGPU TIMELINE · 16.6MS WINDOWBACKENDSVulkanMetalDirectX 12NVIDIA RTXAMD RDNAIntel ArcFRAME SUMMARYDeferred computeFRAME TIME6.42msGPU BUSY91%BANDWIDTH412GB/sDISPATCHES184Capture tracegpu-runtime/src/scan.rs01use wgpu::util::DeviceExt;02use crate::gpu::{Buffer, Kernel};03 04const WORKGROUP_SIZE: u32 = 256;05pub struct PrefixScan {06 pipeline: wgpu::ComputePipeline,07 scratch: wgpu::Buffer,08}09 10impl PrefixScan {11 pub fn dispatch(&self, pass: &mut wgpu::ComputePass) {12 pass.set_pipeline(&self.pipeline);13 14 let groups = self.len.div_ceil(WORKGROUP_SIZE);15 pass.dispatch_workgroups(groups, 1, 1);16 }17}gpu runtime$ cargo run --releasewgpu-hal: Vulkan 1.3adapter: NVIDIA RTX 4090queue family: compute + graphicspipeline cache: 14 hitsframe 0842: 6.42msvalidation: cleantest runner$ cargo nextest runprofile: release + gpu-validation✓ prefix_scan_1m 4.8ms✓ radix_sort_4m 7.1ms✓ indirect_cull 1.9ms18 tests passed0 validation errors0:editor1:runtime2:tests3:gitmain* 22:48WritingEssays, notes, links, and small lessonsBookshelfReading and notes