Beginner Learning Path
Welcome to GPU computing with DotCompute. This path introduces fundamental concepts and guides you through writing your first GPU-accelerated code.
Prerequisites
- C# programming fundamentals (variables, classes, methods)
- Basic understanding of arrays and loops
- .NET 9.0 SDK installed
- Any supported GPU (NVIDIA, AMD, Intel, Apple Silicon) or CPU fallback
Learning Objectives
By completing this path, you will:
- Understand the difference between CPU and GPU computing
- Write and execute your first GPU kernel
- Manage memory transfers between CPU and GPU
- Choose the appropriate backend for your hardware
Modules
Module 1: Introduction to GPU Computing
Duration: 30-45 minutes
Learn why GPUs excel at parallel workloads and when GPU acceleration provides meaningful speedups.
Module 2: Your First Kernel
Duration: 45-60 minutes
Write a vector addition kernel using the [Kernel] attribute and execute it on your GPU.
Module 3: Memory Fundamentals
Duration: 45-60 minutes
Understand GPU memory hierarchy, buffer types, and how to efficiently transfer data.
Module 4: Backend Selection
Duration: 30-45 minutes
Learn about DotCompute's backend system and how to target specific hardware.
Completion Checklist
- [ ] Explain when GPU acceleration is beneficial
- [ ] Write a kernel using the
[Kernel]attribute - [ ] Create and manage GPU buffers
- [ ] Execute kernels with proper thread configuration
- [ ] Select appropriate backend for your hardware
Next Steps
After completing this path, continue to the Intermediate Path to learn about memory optimization and kernel performance tuning.
Estimated total duration: 2-4 hours