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

Change-Id: Iaa9756c1b5e40c1ab5afb38e44a6699fa5f6c13f


[ROCm/hip commit: d890d77da4]
This commit is contained in:
Alex Xie
2020-04-30 22:19:15 -04:00
committad av AlexBin Xie
förälder a99c992b31
incheckning 376810dfcc
5 ändrade filer med 5 tillägg och 6 borttagningar
+1 -1
Visa fil
@@ -864,7 +864,7 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop) {
/* Computemode for HSA Devices is always : cudaComputeModeDefault */
prop->computeMode = 0;
_isLargeBar = _acc.has_cpu_accessible_am();
prop->isLargeBar = _acc.has_cpu_accessible_am() ? 1 : 0;
// Get Max Threads Per Multiprocessor
uint32_t max_waves_per_cu;