SWDEV-221166 - Detect support for large bar access through HIP runtime API

Change-Id: Iaa9756c1b5e40c1ab5afb38e44a6699fa5f6c13f
This commit is contained in:
Alex Xie
2020-04-30 22:19:15 -04:00
committad av AlexBin Xie
förälder b90bc5301c
incheckning d890d77da4
5 ändrade filer med 5 tillägg och 6 borttagningar
+1
Visa fil
@@ -230,6 +230,7 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device )
deviceProps.texturePitchAlignment = info.imagePitchAlignment_;
deviceProps.kernelExecTimeoutEnabled = 0;
deviceProps.ECCEnabled = info.errorCorrectionSupport_? 1:0;
deviceProps.isLargeBar = info.largeBar_ ? 1 : 0;
*props = deviceProps;
HIP_RETURN(hipSuccess);