Dylan 951afd0c02 [ENGINE] apply CCCL GridEvenShare dispatch pattern to V1/V2 attention decision
Source: cccl_upstream/cub/cub/device/dispatch/dispatch_reduce.cuh
        cccl_upstream/cub/cub/grid/grid_even_share.cuh

Replace ad-hoc V1/V2 heuristic with CCCL's precise work distribution:
- max_blocks = sm_occupancy × sm_count × subscription_factor (1×16×5=80)
- total_tiles = ceil_div(max_seq_len, PARTITION_SIZE)
- grid_size = min(total_tiles, max_blocks)
- V1 when grid_size==1 OR seq×head parallelism saturates GPU

CCCL kernel_reduce.cuh insight: !StableReductionOrder uses atomicAdd
for single-kernel finish. BI-V100 with 16 SMs -> max 80 CTAs ->
atomic contention negligible -> nondeterministic path is optimal.
2026-08-07 01:19:50 +00:00
2026-07-30 17:03:23 +08:00

project_6

Description
No description provided
Readme 427 MiB
Languages
C++ 41.8%
Cuda 31.6%
Python 22.2%
C 2.1%
CMake 1.1%
Other 1.1%