SWDEV-539710 - Defer allocation of managed variable (#652)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
Cette révision appartient à :
1 Parent
c88f345229
révision
3f6f9d6081
11 fichiers modifiés
+177
-87
Aucun fichier ne correspond à votre recherche
@@ -1553,8 +1553,8 @@ bool SvmBuffer::Contains(uintptr_t ptr) {
|
||||
|
||||
// The allocation flags are ignored for now.
|
||||
void* SvmBuffer::malloc(Context& context, cl_svm_mem_flags flags, size_t size, size_t alignment,
|
||||
const amd::Device* curDev) {
|
||||
void* ret = context.svmAlloc(size, alignment, flags, curDev);
|
||||
const amd::Device* curDev, void* hostptr) {
|
||||
void* ret = context.svmAlloc(size, alignment, flags, curDev, hostptr);
|
||||
if (ret == nullptr) {
|
||||
LogError("Unable to allocate aligned memory");
|
||||
return nullptr;
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur