estimate_optimal_padding Function

private pure function estimate_optimal_padding(tile_size, block_rows, base_storage) result(padding)

Estimates the optimal padding for a given tile size and element size

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: tile_size

Size of the tile

integer(kind=int32), intent(in) :: block_rows

Number of rows in the block

integer(kind=int64), intent(in) :: base_storage

Number of bytes needed to store single element

Return Value integer(kind=int32)

Optimal padding to reduce bank conflicts


Calls

proc~~estimate_optimal_padding~~CallsGraph proc~estimate_optimal_padding estimate_optimal_padding proc~count_bank_conflicts count_bank_conflicts proc~estimate_optimal_padding->proc~count_bank_conflicts

Called by

proc~~estimate_optimal_padding~~CalledByGraph proc~estimate_optimal_padding estimate_optimal_padding proc~generate_candidates generate_candidates proc~generate_candidates->proc~estimate_optimal_padding proc~get_kernel get_kernel proc~get_kernel->proc~generate_candidates proc~create~4 nvrtc_kernel%create proc~create~4->proc~get_kernel proc~create~9 transpose_handle_cuda%create proc~create~9->proc~create~4