Merge pull request #411 from luckynikki/SWDEV-141024

SWDEV-141024

[ROCm/hip commit: d2a51ee651]
这个提交包含在:
Maneesh Gupta 编写, GitHub 于 2018-05-01 09:29:26 +05:30 提交
2 父节点 93fc0a8312 701de3092b
当前提交 b40c05e452
1 个文件已更改
+8
+8
查看文件
@@ -766,10 +766,18 @@ hipError_t hipArray3DCreate(hipArray_t* array, const HIP_ARRAY_DESCRIPTOR* pAllo
hipError_t hipMalloc3DArray(hipArray_t* array, const struct hipChannelFormatDesc* desc,
struct hipExtent extent, unsigned int flags) {
HIP_INIT_API(array, desc, &extent, flags);
HIP_SET_DEVICE();
hipError_t hip_status = hipSuccess;
if(array==NULL )
{
hip_status=hipErrorInvalidValue;
return ihipLogStatus(hip_status);
}
auto ctx = ihipGetTlsDefaultCtx();
*array = (hipArray*)malloc(sizeof(hipArray));