Report the HW requirments for pitch alignment

Change-Id: Iaaa9d597dff57cfad5d07d931f881aba1a5f98f1
이 커밋은 다음에 포함됨:
Vladislav Sytchenko 작성하고 Vladislav Sytchenko가 2020-02-21 11:09:47 -05:00를 커밋함
1 부모 8c8d963c65
커밋 8be685e7b9
2 파일이 변경됨
+5 -1

검색과 일치하는 파일 없음

+2 -1
파일 보기
@@ -207,7 +207,8 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device )
deviceProps.hdpRegFlushCntl = nullptr;
deviceProps.memPitch = info.maxMemAllocSize_;
deviceProps.textureAlignment = std::max(info.imageBaseAddressAlignment_, info.imagePitchAlignment_);
deviceProps.textureAlignment = info.imageBaseAddressAlignment_;
deviceProps.texturePitchAlignment = info.imagePitchAlignment_;
deviceProps.kernelExecTimeoutEnabled = 0;
deviceProps.ECCEnabled = info.errorCorrectionSupport_? 1:0;
+3
파일 보기
@@ -269,6 +269,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
case hipDeviceAttributeTextureAlignment:
*pi = prop.textureAlignment;
break;
case hipDeviceAttributeTexturePitchAlignment:
*pi = prop.texturePitchAlignment;
break;
case hipDeviceAttributeKernelExecTimeout:
*pi = prop.kernelExecTimeoutEnabled;
break;