workaround weak symbol issue

hcc prints "error: alias must point to a defined variable or function"


[ROCm/rccl-tests commit: 4474fe168d]
Tá an tiomantas seo le fáil i:
Wenkai Du tiomanta 2019-04-18 10:34:55 -07:00
1 tuismitheoir 44b91f03a5
tiomantas 8ff34620fb
5 comhad athraithe
+10 -20

Níor tháinig aon chomhaid le do chuardach

+2 -4
Féach ar an gComhad
@@ -96,9 +96,7 @@ testResult_t AllGatherRunTest(struct threadArgs* args, int root, ncclDataType_t
return testSuccess;
}
struct testEngine allGatherEngine = {
struct testEngine ncclTestEngine = {
AllGatherGetBuffSize,
AllGatherRunTest
};
#pragma weak ncclTestEngine=allGatherEngine
};
+2 -4
Féach ar an gComhad
@@ -107,9 +107,7 @@ testResult_t AllReduceRunTest(struct threadArgs* args, int root, ncclDataType_t
return testSuccess;
}
struct testEngine allReduceEngine = {
struct testEngine ncclTestEngine = {
AllReduceGetBuffSize,
AllReduceRunTest
};
#pragma weak ncclTestEngine=allReduceEngine
};
+2 -4
Féach ar an gComhad
@@ -113,9 +113,7 @@ testResult_t BroadcastRunTest(struct threadArgs* args, int root, ncclDataType_t
return testSuccess;
}
struct testEngine broadcastEngine = {
struct testEngine ncclTestEngine = {
BroadcastGetBuffSize,
BroadcastRunTest
};
#pragma weak ncclTestEngine=broadcastEngine
};
+2 -4
Féach ar an gComhad
@@ -116,9 +116,7 @@ testResult_t ReduceRunTest(struct threadArgs* args, int root, ncclDataType_t typ
return testSuccess;
}
struct testEngine reduceEngine = {
struct testEngine ncclTestEngine = {
ReduceGetBuffSize,
ReduceRunTest
};
#pragma weak ncclTestEngine=reduceEngine
};
+2 -4
Féach ar an gComhad
@@ -108,9 +108,7 @@ testResult_t ReduceScatterRunTest(struct threadArgs* args, int root, ncclDataTyp
return testSuccess;
}
struct testEngine reduceScatterEngine = {
struct testEngine ncclTestEngine = {
ReduceScatterGetBuffSize,
ReduceScatterRunTest
};
#pragma weak ncclTestEngine=reduceScatterEngine
};