BatchLAS Documentation
BatchLAS
v0.1.0
src
ops
potrf
potrf_slm_hole.hh
Go to the documentation of this file.
1
#pragma once
2
3
// The 48 KB dynamic-local-memory launch hole, spelled once for both potrf leaves: a request
4
// inside this band is refused at enqueue. evidence: docs/perf/potrf.md#potrf-the-48-kb-launch-hole
5
6
#include <cstddef>
7
8
namespace
batchlas::potrf_native
{
9
10
constexpr
std::size_t
kPotrfHoleLo
= 47104;
11
constexpr
std::size_t
kPotrfHoleHi
= 49664;
12
constexpr
std::size_t
kPotrfHolePadTo
= 49920;
13
14
constexpr
std::size_t
potrf_hole_padded
(std::size_t bytes) {
15
return
(bytes >
kPotrfHoleLo
&& bytes <=
kPotrfHoleHi
) ?
kPotrfHolePadTo
: bytes;
16
}
17
18
}
// namespace batchlas::potrf_native
batchlas::potrf_native
Definition
potrf_cta_device.hh:26
batchlas::potrf_native::kPotrfHoleHi
constexpr std::size_t kPotrfHoleHi
Definition
potrf_slm_hole.hh:11
batchlas::potrf_native::kPotrfHolePadTo
constexpr std::size_t kPotrfHolePadTo
Definition
potrf_slm_hole.hh:12
batchlas::potrf_native::potrf_hole_padded
constexpr std::size_t potrf_hole_padded(std::size_t bytes)
Definition
potrf_slm_hole.hh:14
batchlas::potrf_native::kPotrfHoleLo
constexpr std::size_t kPotrfHoleLo
Definition
potrf_slm_hole.hh:10
Generated by
1.18.0