SWDEV-306947 Enable hipAddressModeBorder
Enable hipAddressModeBorder. Fix default of height of hipMallocArray(). Some code improvement. Change-Id: I57045118e7adf915074c547cbe76349a4cfd72d8
This commit is contained in:
@@ -1069,7 +1069,7 @@ inline static hipError_t hipMallocManaged(void** ptr, size_t size, unsigned int
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline static hipError_t hipMallocArray(hipArray** array, const hipChannelFormatDesc* desc,
|
inline static hipError_t hipMallocArray(hipArray** array, const hipChannelFormatDesc* desc,
|
||||||
size_t width, size_t height,
|
size_t width, size_t height __dparm(0),
|
||||||
unsigned int flags __dparm(hipArrayDefault)) {
|
unsigned int flags __dparm(hipArrayDefault)) {
|
||||||
return hipCUDAErrorTohipError(cudaMallocArray(array, desc, width, height, flags));
|
return hipCUDAErrorTohipError(cudaMallocArray(array, desc, width, height, flags));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user