kfdtest: Consolidate indentation of multi-line function calls
Make indentation consistent, which is that subsequent lines are aligned
with the variables declared above
Change-Id: I590f7768d93565145b986ad1fb6ac8e82f9c0d58
[ROCm/ROCR-Runtime commit: cb019f00cd]
Bu işleme şunda yer alıyor:
@@ -45,7 +45,7 @@ class BaseQueue {
|
||||
* @param pointers is used only for creating AQL queues. Otherwise it is omitted.
|
||||
*/
|
||||
virtual HSAKMT_STATUS Create(unsigned int NodeId, unsigned int size = DEFAULT_QUEUE_SIZE,
|
||||
HSAuint64 *pointers = NULL);
|
||||
HSAuint64 *pointers = NULL);
|
||||
/** Update the queue.
|
||||
* @see hsaKmtUpdateQueue
|
||||
* @param percent the new queue percentage
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#define ALLOCATE_RETRY_TIMES (3)
|
||||
|
||||
void KFDEvictTest::AllocBuffers(HSAuint32 defaultGPUNode, HSAuint32 count, HSAuint64 vramBufSize,
|
||||
std::vector<void *> &pBuffers) {
|
||||
std::vector<void *> &pBuffers) {
|
||||
HSAuint64 totalMB;
|
||||
|
||||
totalMB = N_PROCESSES*count*(vramBufSize>>20);
|
||||
|
||||
@@ -52,7 +52,7 @@ class KFDEvictTest : public KFDLocalMemoryTest {
|
||||
protected:
|
||||
std::string CreateShader();
|
||||
void AllocBuffers(HSAuint32 defaultGPUNode, HSAuint32 count, HSAuint64 vramBufSize,
|
||||
std::vector<void *> &pBuffers);
|
||||
std::vector<void *> &pBuffers);
|
||||
void FreeBuffers(std::vector<void *> &pBuffers, HSAuint64 vramBufSize);
|
||||
void AllocAmdgpuBo(int rn, HSAuint64 vramBufSize, amdgpu_bo_handle &handle);
|
||||
void FreeAmdgpuBo(amdgpu_bo_handle handle);
|
||||
|
||||
@@ -462,7 +462,7 @@ CMA_TEST_STATUS KFDCMAArray::recvCMAArray(int readPipe) {
|
||||
|
||||
|
||||
CMA_TEST_STATUS KFDIPCTest::CrossMemoryAttachChildProcess(int defaultGPUNode, int writePipe,
|
||||
int readPipe, CMA_TEST_TYPE testType) {
|
||||
int readPipe, CMA_TEST_TYPE testType) {
|
||||
KFDCMAArray cmaLocalArray;
|
||||
char msg[16];
|
||||
int testNo;
|
||||
@@ -516,8 +516,8 @@ CMA_TEST_STATUS KFDIPCTest::CrossMemoryAttachChildProcess(int defaultGPUNode, in
|
||||
|
||||
|
||||
CMA_TEST_STATUS KFDIPCTest::CrossMemoryAttachParentProcess(int defaultGPUNode, pid_t cid,
|
||||
int writePipe, int readPipe,
|
||||
CMA_TEST_TYPE testType) {
|
||||
int writePipe, int readPipe,
|
||||
CMA_TEST_TYPE testType) {
|
||||
KFDCMAArray cmaLocalArray, cmaRemoteArray;
|
||||
HSAuint64 copied = 0;
|
||||
int testNo;
|
||||
|
||||
@@ -123,9 +123,9 @@ class KFDIPCTest : public KFDBaseComponentTest {
|
||||
|
||||
/* For CMA testing */
|
||||
CMA_TEST_STATUS CrossMemoryAttachChildProcess(int defaultGPUNode, int writePipe,
|
||||
int readPipe, CMA_TEST_TYPE testType);
|
||||
int readPipe, CMA_TEST_TYPE testType);
|
||||
CMA_TEST_STATUS CrossMemoryAttachParentProcess(int defaultGPUNode, pid_t cid,
|
||||
int writePipe, int readPipe, CMA_TEST_TYPE testType);
|
||||
int writePipe, int readPipe, CMA_TEST_TYPE testType);
|
||||
protected:
|
||||
pid_t m_ChildPid;
|
||||
};
|
||||
|
||||
@@ -53,7 +53,7 @@ class HsaMemoryBuffer {
|
||||
|
||||
public:
|
||||
HsaMemoryBuffer(HSAuint64 size, unsigned int node, bool zero = true, bool isLocal = false,
|
||||
bool isExec = false, bool isScratch = false, bool isReadOnly = false);
|
||||
bool isExec = false, bool isScratch = false, bool isReadOnly = false);
|
||||
HsaMemoryBuffer(void *addr, HSAuint64 size);
|
||||
template<typename RetType>
|
||||
RetType As() {
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle