Files
kernel-lab/tasks/04_online_softmax/cuda_skeleton.cu
2026-04-10 13:22:19 +00:00

8 lines
278 B
Plaintext

// Workbook-local CUDA sketch for online softmax.
//
// TODO(student):
// 1. Choose how one block owns one row or row tile.
// 2. Keep running_max and running_sum across column tiles.
// 3. Update the recurrence carefully for numerical stability.
// 4. Normalize the final row.