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
[ROCm/ROCR-Runtime commit: dffac0a97e]
This commit is contained in:
@@ -36,7 +36,7 @@ class BaseQueue;
|
||||
// @brief: waits until the value is written to the buffer or until time out if received through args
|
||||
bool WaitOnValue(const volatile unsigned int *buf, unsigned int value);
|
||||
|
||||
void SplitU64(const unsigned long long value, unsigned int& rLoPart, unsigned int& rHiPart);
|
||||
void SplitU64(const HSAuint64 value, unsigned int& rLoPart, unsigned int& rHiPart);
|
||||
|
||||
bool GetHwCapabilityHWS();
|
||||
|
||||
@@ -106,14 +106,14 @@ class HsaMemoryBuffer {
|
||||
void* m_pBuf;
|
||||
bool m_Local;
|
||||
unsigned int m_Node;
|
||||
unsigned short m_MappedNodes;
|
||||
HSAuint64 m_MappedNodes;
|
||||
};
|
||||
|
||||
|
||||
|
||||
class HsaInteropMemoryBuffer {
|
||||
public:
|
||||
HsaInteropMemoryBuffer(unsigned long long device_handle, unsigned long long buffer_handle, unsigned long long size, unsigned int node);
|
||||
HsaInteropMemoryBuffer(HSAuint64 device_handle, HSAuint64 buffer_handle, HSAuint64 size, unsigned int node);
|
||||
|
||||
template<typename RetType>
|
||||
RetType As() {
|
||||
@@ -135,9 +135,9 @@ class HsaInteropMemoryBuffer {
|
||||
const HsaInteropMemoryBuffer& operator=(const HsaInteropMemoryBuffer&);
|
||||
|
||||
private:
|
||||
unsigned long long m_Size;
|
||||
HSAuint64 m_Size;
|
||||
void* m_pBuf;
|
||||
unsigned long long m_graphic_handle;
|
||||
HSAuint64 m_graphic_handle;
|
||||
unsigned int m_Node;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user