wsl/hsakmt: Set uncached for kernel arg region
Signed-off-by: Longlong Yao <Longlong.Yao@amd.com> Reviewed-by: Flora Cui <flora.cui@amd.com> Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/5>
This commit is contained in:
+4
-1
@@ -152,7 +152,10 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtAllocMemoryAlign(HSAuint32 PreferredNode,
|
||||
if (!MemFlags.ui32.CoarseGrain)
|
||||
create_info.mem_flags = rocr_proxy::kFineGrain;
|
||||
|
||||
// create_info.mem_flags |= rocr_proxy::kKernarg;
|
||||
//In hsa-runtime, only kernarg region set Uncached.
|
||||
if (MemFlags.ui32.Uncached)
|
||||
create_info.mem_flags |= rocr_proxy::kKernarg;
|
||||
|
||||
create_info.flags.physical_only = MemFlags.ui32.NoAddress;
|
||||
create_info.flags.interprocess = MemFlags.ui32.NoAddress;
|
||||
create_info.flags.locked = MemFlags.ui32.NoSubstitute;//AllocatePinned
|
||||
|
||||
Reference in New Issue
Block a user