Report the HW requirments for pitch alignment

Change-Id: Iaaa9d597dff57cfad5d07d931f881aba1a5f98f1


[ROCm/hip commit: 5623c74c35]
このコミットが含まれているのは:
Vladislav Sytchenko
2020-02-20 18:56:33 -05:00
committed by Vladislav Sytchenko
コミット fd93b9c476
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;