SWDEV-446992 - Request can be for bytes OR dptr OR both.
Change-Id: Ib479c744b90125b74d99cbf18b7f4b8cf765bf1c
[ROCm/clr commit: 09328f45b3]
Этот коммит содержится в:
коммит произвёл
Jaydeepkumar Patel
родитель
0f8a9567e6
Коммит
c4239ed8e8
@@ -96,8 +96,12 @@ public:
|
||||
hipError_t getManagedVarPointer(std::string name, void** pointer, size_t* size_ptr) const {
|
||||
auto it = vars_.find(name);
|
||||
if (it != vars_.end() && it->second->getVarKind() == Var::DVK_Managed) {
|
||||
*pointer = it->second->getManagedVarPtr();
|
||||
*size_ptr = it->second->getSize();
|
||||
if (pointer != nullptr) {
|
||||
*pointer = it->second->getManagedVarPtr();
|
||||
}
|
||||
if (size_ptr != nullptr) {
|
||||
*size_ptr = it->second->getSize();
|
||||
}
|
||||
}
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user