You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check that one can copy from virtual memory to a USM allocation.
72
72
73
73
copyBackFunc();
74
-
Failed+= performResultCheck(NumberOfElements,CopyBack,ValueSetInKernelForCopyToUSM, "Comparison failed after copy from virtual memory to a USM allocation at index ");
// Check that can copy from a USM allocation to virtual memory
77
-
80
+
78
81
for (size_t Idx = 0; Idx < NumberOfElements; ++Idx) {
79
82
CopyFrom[Idx] = ValueSetForCopyToVirtualMem;
80
83
}
@@ -86,8 +89,11 @@ int main() {
86
89
87
90
copyBackFunc();
88
91
89
-
Failed+= performResultCheck(NumberOfElements, CopyBack, ValueSetForCopyToVirtualMem, "Comparison failed after copy from a USM allocation to virtual memory at index ");
Failed+= performResultCheck(NumberOfElements, CopyBack, ExpectedResultAfterMemSetOperation, "Comparison failed after memset operation on virtual memory at index ");
Failed+= performResultCheck(NumberOfElements, CopyBack, ValueSetInFillOperation, "Comparison failed after fill operation on virtual memory at index ");
0 commit comments