Removing OpenMP from unit tests (#163)

[ROCm/rccl commit: 000bce6f27]
这个提交包含在:
gilbertlee-amd 编写, GitHub 于 2019-12-20 11:41:56 -07:00 提交
1 父节点 a461b6d139
当前提交 71635198b8
11 个文件已更改
+14 -28

没有与搜索条件相匹配的文件

+4 -3
查看文件
@@ -4,7 +4,6 @@
* See LICENSE.txt for license information
************************************************************************/
#include "test_AllGather.hpp"
#include <omp.h>
namespace CorrectnessTests
{
@@ -23,13 +22,14 @@ namespace CorrectnessTests
size_t const sendCount = dataset.numElements / dataset.numDevices;
// Launch the reduction (1 thread per GPU)
#pragma omp parallel for num_threads(numDevices)
ncclGroupStart();
for (int i = 0; i < numDevices; i++)
{
ncclAllGather((int8_t *)dataset.inputs[i] + (i * byteCount),
dataset.outputs[i], sendCount,
dataType, comms[i], streams[i]);
}
ncclGroupEnd();
// Wait for reduction to complete
Synchronize();
@@ -68,13 +68,14 @@ namespace CorrectnessTests
size_t const sendCount = subDataset.numElements / subDataset.numDevices;
// Launch the reduction (1 thread per GPU)
#pragma omp parallel for num_threads(numDevices)
ncclGroupStart();
for (int i = 0; i < numDevices; i++)
{
ncclAllGather((int8_t *)subDataset.inputs[i] + (i * byteCount),
subDataset.outputs[i], sendCount,
dataType, comms[i], streams[i]);
}
ncclGroupEnd();
// Wait for reduction to complete
Synchronize();