kfdtest: Style cleanup
Clean up the KFDTest style via CPPLint. Some warnings remain regarding volatile variables being cast to void*. This is the command used: cpplint.py --linelength=120 --filter=-readability/multiline_string,-readability/todo,-build/include,-runtime/references multiline_string is due to using ISA code todo is to avoid errors that we don't have TODO(username) instead of TODO include is about including the folder in the header includes references is regarding non-const references '&' being const or using pointers. That can be addressed later Change-Id: I3c6622da0a13dd33ab29b2bfff48be25e763b750
This commit is contained in:
@@ -140,18 +140,17 @@ TEST_F(KFDDBGTest, BasicAddressWatch) {
|
||||
ASSERT_SUCCESS(hsaKmtDbgRegister(defaultGPUNode));
|
||||
|
||||
AddressWatchSuccess = hsaKmtDbgAddressWatch(
|
||||
defaultGPUNode, // IN
|
||||
2, // # watch points
|
||||
&WatchMode[0], // IN
|
||||
(void **) &WatchAddress[0], // IN
|
||||
&WatchMask[0], // IN, optional
|
||||
NULL // IN, optional
|
||||
);
|
||||
defaultGPUNode, // IN
|
||||
2, // # watch points
|
||||
&WatchMode[0], // IN
|
||||
reinterpret_cast<void **>(&WatchAddress[0]), // IN
|
||||
&WatchMask[0], // IN, optional
|
||||
NULL); // IN, optional
|
||||
|
||||
EXPECT_EQ(AddressWatchSuccess, HSAKMT_STATUS_SUCCESS);
|
||||
|
||||
Dispatch dispatch(isaBuf);
|
||||
dispatch.SetArgs(dstBuf.As<void*>(), (void *)secDstBuf);
|
||||
dispatch.SetArgs(dstBuf.As<void*>(), reinterpret_cast<void *>(secDstBuf));
|
||||
dispatch.SetDim(1, 1, 1);
|
||||
|
||||
// TODO: use Memory ordering rules w/ atomics
|
||||
|
||||
Reference in New Issue
Block a user