Module utils

Module utils 

Source

Functionsยง

align_size
Round size up to next alignment boundary
calculate_block_size
Calculate optimal block size for GPU kernels
calculate_fragmentation
Calculate fragmentation ratio
format_bytes
Format bytes in human readable format
get_optimal_backend
Get the optimal GPU backend for the current system
is_aligned
Check if address is aligned to boundary
next_power_of_two
Calculate next power of 2
validate_ptr_and_size
Validate pointer and size parameters