Skip to content

Commit 5490b01

Browse files
committed
formatting fixed
1 parent b54eca4 commit 5490b01

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

sycl/test-e2e/VirtualMem/virtual_mem_usm_compatibility.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ int main() {
8686
}
8787
}
8888

89-
//Check that can use memset on virtual memorys
89+
// Check that can use memset on virtual memorys
9090
int ExpectedResultAfterMemSetOperation{0};
91-
std::memset(&ExpectedResultAfterMemSetOperation, ValueSetInMemSetOperationPerByte, sizeof(int));
92-
Queue.memset(MappedPtr,ValueSetInMemSetOperationPerByte, AlignedByteSize).wait_and_throw();
93-
91+
std::memset(&ExpectedResultAfterMemSetOperation,
92+
ValueSetInMemSetOperationPerByte, sizeof(int));
93+
Queue.memset(MappedPtr, ValueSetInMemSetOperationPerByte, AlignedByteSize)
94+
.wait_and_throw();
95+
9496
Queue.parallel_for(NumberOfElements, [=](sycl::id<1> Idx) {
9597
CopyBack[Idx] = DataPtr[Idx];
9698
}).wait_and_throw();
@@ -99,14 +101,13 @@ int main() {
99101
if (CopyBack[i] != ExpectedResultAfterMemSetOperation) {
100102
std::cout << "Comparison failed after memset operation on virtual memory "
101103
"at index "
102-
<< i << ": " << CopyBack[i] << " != " << ExpectedResultAfterMemSetOperation
103-
<< std::endl;
104+
<< i << ": " << CopyBack[i]
105+
<< " != " << ExpectedResultAfterMemSetOperation << std::endl;
104106
++Failed;
105107
}
106108
}
107109

108110
// Check that can use fill on virtual memory
109-
110111
Queue.fill(DataPtr, ValueSetInFillOperation, NumberOfElements)
111112
.wait_and_throw();
112113

0 commit comments

Comments
 (0)