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
committato da Jaydeepkumar Patel
parent f5c6fc4dfa
commit 8e8fb993de
3 ha cambiato i file con 23 aggiunte e 5 eliminazioni
+4 -1
Vedi File
@@ -744,9 +744,12 @@ hipError_t hipGetChannelDesc(hipChannelFormatDesc* desc,
hipArray_const_t array) {
HIP_INIT_API(hipGetChannelDesc, desc, array);
if ((desc == nullptr) || (array == nullptr)) {
if (desc == nullptr) {
HIP_RETURN(hipErrorInvalidValue);
}
if (array == nullptr) {
HIP_RETURN(hipErrorInvalidHandle);
}
amd::Device* device = hip::getCurrentDevice()->devices()[0];
const device::Info& info = device->info();
if (!info.imageSupport_) {