SWDEV-444670 - Enable teardown class

Force implicit runtime teardown with a global destructor.

Change-Id: Iabe63dedf5b94fefc98668585c45a61607120669
This commit is contained in:
German Andryeyev committed 2024-04-16 12:00:06 -04:00
1 parent a1e0970d6d
commit c95a75a2bf
7 files changed
+37 -14

No files matched your search

-1
View File
@@ -1521,7 +1521,6 @@ 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) {
bool atomics = (flags & CL_MEM_SVM_ATOMICS) != 0;
void* ret = context.svmAlloc(size, alignment, flags, curDev);
if (ret == nullptr) {
LogError("Unable to allocate aligned memory");