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:
committato da
Jaydeepkumar Patel
parent
f5c6fc4dfa
commit
8e8fb993de
@@ -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_) {
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user