Return hipSuccess when sizeBytes=0 in hipMemset
이 커밋은 다음에 포함됨:
1 부모
802520f5f1
커밋
bd27310127
1 파일이 변경됨
+2
@@ -1543,6 +1543,8 @@ hipError_t ihipMemset(void* dst, int value, size_t sizeBytes, hipStream_t strea
|
||||
{
|
||||
hipError_t e = hipSuccess;
|
||||
|
||||
if (sizeBytes == 0) return e;
|
||||
|
||||
if (stream && (dst != NULL)) {
|
||||
if(copyDataType == ihipMemsetDataTypeChar){
|
||||
if ((sizeBytes & 0x3) == 0) {
|
||||
|
||||
새 이슈에서 참조
사용자 차단