"vscode:/vscode.git/clone" did not exist on "fd389e2d78c030b5faae0fd347aec253a4060041"
Unverified Commit 3c043cd1 authored by Adam Osewski's avatar Adam Osewski Committed by GitHub
Browse files

Add vector instruction coherency bits for gfx94 targets. (#1268)

parent fdbf8ccb
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved. // Copyright (c) 2018-2024, Advanced Micro Devices, Inc. All rights reserved.
#pragma once #pragma once
#include "data_type.hpp" #include "data_type.hpp"
...@@ -297,6 +297,17 @@ enum struct AmdBufferCoherenceEnum ...@@ -297,6 +297,17 @@ enum struct AmdBufferCoherenceEnum
GLC = 1, GLC = 1,
SLC = 2, SLC = 2,
GLC_SLC = 3, 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> template <index_t N, AmdBufferCoherenceEnum coherence = AmdBufferCoherenceEnum::DefaultCoherence>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment