SWDEV-425248 - numerous bug fixes.

Set flag with hipCtxCreate so that get flags works.
Validate hipHostGetDevicePointer for flags!=0.
Validate mem cpy kind and accommodate new type hipMemcpyDeviceToDeviceNoCU.
Match error code for hipGetChannelDesc.

Change-Id: If09a635ac01bc53f1fe2b7df3f3f9c1b0d69a0ab
This commit is contained in:
Jaydeep Patel
2023-10-17 17:13:54 +00:00
committed by Jaydeepkumar Patel
parent f5c6fc4dfa
commit 8e8fb993de
3 changed files with 23 additions and 5 deletions
+1
View File
@@ -159,6 +159,7 @@ hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
// Increment ref count for device primary context
g_devices[device]->retain();
g_devices[device]->setFlags(flags);
tls.ctxt_stack_.push(g_devices[device]);
HIP_RETURN(hipSuccess);