SWDEV-232894 Port hipMemcpy optimizations from HCC to VDI

Change-Id: I6bebe9ac503a9f80d067aeea8a848409ad210338
Этот коммит содержится в:
Alex Xie
2020-04-27 08:32:28 -04:00
коммит произвёл AlexBin Xie
родитель 082cbfa1f5
Коммит 009d0b5f55
7 изменённых файлов: 64 добавлений и 2 удалений
+6 -1
Просмотреть файл
@@ -50,7 +50,8 @@ Context::Context(const std::vector<Device*>& devices, const Info& info)
info_(info),
properties_(NULL),
glenv_(NULL),
customHostAllocDevice_(NULL) {
customHostAllocDevice_(NULL),
largeBar_(true) {
for (const auto& device : devices) {
device->retain();
if (customHostAllocDevice_ == NULL && device->customHostAllocator()) {
@@ -59,7 +60,11 @@ Context::Context(const std::vector<Device*>& devices, const Info& info)
if (device->svmSupport()) {
svmAllocDevice_.push_back(device);
}
if (!device->isLargeBar()) {
largeBar_ = false;
}
}
if (svmAllocDevice_.size() > 1) {
uint isFirstDeviceFGSEnabled = svmAllocDevice_.front()->isFineGrainedSystem(true);
for (auto& dev : svmAllocDevice_) {