Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel_ROCM
Commits
3c043cd1
Unverified
Commit
3c043cd1
authored
May 09, 2024
by
Adam Osewski
Committed by
GitHub
May 09, 2024
Browse files
Add vector instruction coherency bits for gfx94 targets. (#1268)
parent
fdbf8ccb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
include/ck/utility/amd_buffer_addressing.hpp
include/ck/utility/amd_buffer_addressing.hpp
+12
-1
No files found.
include/ck/utility/amd_buffer_addressing.hpp
View file @
3c043cd1
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-202
3
, Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2018-202
4
, Advanced Micro Devices, Inc. All rights reserved.
#pragma once
#include "data_type.hpp"
...
...
@@ -297,6 +297,17 @@ enum struct AmdBufferCoherenceEnum
GLC
=
1
,
SLC
=
2
,
GLC_SLC
=
3
,
// gfx94: bit 0 = sc0, bit 1 = nt, bit 3 = swz, bit 4 = sc1
// SC[1:0] System Cache level: 0=wave, 1=group, 2=device, 3=system
// NT Non-Temporal: 0=expect temporal reuse; 1=do not expect temporal reuse
WAVE_NT0
=
0
,
WAVE_NT1
=
2
,
GROUP_NT0
=
1
,
GROUP_NT1
=
3
,
DEVICE_NT0
=
8
,
DEVICE_NT1
=
10
,
SYSTEM_NT0
=
9
,
SYSTEM_NT1
=
11
,
};
template
<
index_t
N
,
AmdBufferCoherenceEnum
coherence
=
AmdBufferCoherenceEnum
::
DefaultCoherence
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment