From b90b4ebffbc03dc0d29d13a7c8ea0a8b22016d50 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Tue, 17 Jan 2023 10:11:08 +0530 Subject: [PATCH] SWDEV-376697 - Adding hipDeviceMallocUncached flag for uncached memory. (#3136) Change-Id: Id2761e9ec27c04106598fa13082009974e19ab91 --- include/hip/hip_runtime_api.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index d8caac1133..e8f82ed937 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -635,6 +635,9 @@ enum hipLimit_t { /** Memory represents a HSA signal.*/ #define hipMallocSignalMemory 0x2 +/** Memory allocated will be uncached. */ +#define hipDeviceMallocUncached 0x3 + //Flags that can be used with hipHostRegister. /** Memory is Mapped and Portable.*/ #define hipHostRegisterDefault 0x0