SWDEV-232894 Port hipMemcpy optimizations from HCC to VDI

Apply the optimization to change for OpenCL too.
Clean up some unnecessary checks.

Change-Id: I840261fe35baeeadeba7388e86779d482f509aad
Cette révision appartient à :
Alex Xie a créé et German Andryeyev a révisé 2020-04-30 11:06:28 -04:00
1 Parent 1de8abd031
révision 6c5a42b33c
7 fichiers modifiés
+21 -41

Aucun fichier ne correspond à votre recherche

+1 -5
Voir le fichier
@@ -50,8 +50,7 @@ Context::Context(const std::vector<Device*>& devices, const Info& info)
info_(info),
properties_(NULL),
glenv_(NULL),
customHostAllocDevice_(NULL),
largeBar_(true) {
customHostAllocDevice_(NULL) {
for (const auto& device : devices) {
device->retain();
if (customHostAllocDevice_ == NULL && device->customHostAllocator()) {
@@ -60,9 +59,6 @@ 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) {