Skip to content

Commit 036f784

Browse files
committed
Add more doc for pvc
1 parent 544b38e commit 036f784

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/loader/layers/sanitizer/asan_shadow_setup.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,17 @@ ur_result_t DestroyShadowMemory() {
7272
} // namespace cpu
7373

7474
namespace pvc {
75-
75+
///
76+
/// USM Allocation Range (56 bits)
77+
/// Host USM : 0x0000_0000_0000_0000 ~ 0x00ff_ffff_ffff_ffff
78+
/// Shared USM : 0x0000_0000_0000_0000 ~ 0x0000_7fff_ffff_ffff
79+
/// Device USM : 0xff00_0000_0000_0000 ~ 0xff00_ffff_ffff_ffff
80+
///
7681
/// SHADOW MEMORY MAPPING (PVC, with CPU 47bit)
7782
/// Host/Shared USM : 0x0 ~ 0x0fff_ffff_ffff
7883
/// ? : 0x1000_0000_0000 ~ 0x1fff_ffff_ffff
7984
/// Device USM : 0x2000_0000_0000 ~ 0x3fff_ffff_ffff
85+
///
8086
constexpr size_t SHADOW_SIZE = 1ULL << 46;
8187

8288
uptr LOW_SHADOW_BEGIN;
@@ -123,7 +129,7 @@ ur_result_t DestroyShadowMemory() {
123129

124130
namespace dg2 {
125131
///
126-
/// USM Allocation Range
132+
/// USM Allocation Range (48 bits)
127133
/// Host/Shared USM : 0x0000_0000_0000_0000 ~ 0x0000_7fff_ffff_ffff
128134
/// Device USM : 0xffff_8000_0000_0000 ~ 0xffff_ffff_ffff_ffff
129135
///

0 commit comments

Comments
 (0)