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
committed by AlexBin Xie
parent b90bc5301c
commit d890d77da4
5 changed files with 5 additions and 6 deletions
+1
View File
@@ -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);