Adding interactive mode for unit tests (UT_INTERACTIVE) (#715)

Este commit está contenido en:
gilbertlee-amd
2023-03-21 10:58:24 -06:00
cometido por GitHub
padre 9a0d4a07a6
commit 00c3d8d850
Se han modificado 5 ficheros con 52 adiciones y 2 borrados
+5 -1
Ver fichero
@@ -431,6 +431,7 @@ namespace RcclUnitTesting
{
for (int localRank : localRanksToExecute)
{
CHECK_HIP(hipSetDevice(this->deviceIds[localRank]));
if (this->verbose) INFO("Capturing stream for rank %d\n", localRank);
for (int i = 0; i < this->numStreamsPerGroup; i++)
{
@@ -601,6 +602,7 @@ namespace RcclUnitTesting
{
for (int localRank = 0; localRank < this->comms.size(); ++localRank)
{
CHECK_HIP(hipSetDevice(this->deviceIds[localRank]));
CHILD_NCCL_CALL_NON_BLOCKING("ncclCommGetAsyncErrorGroupEnd", localRank);
}
}
@@ -617,7 +619,7 @@ namespace RcclUnitTesting
for (int localRank : localRanksToExecute)
{
if (this->verbose) INFO("Ending stream capture for rank %d\n", localRank);
CHECK_HIP(hipSetDevice(this->deviceIds[localRank]));
for (int i = 0; i < this->numStreamsPerGroup; i++)
{
CHECK_HIP(hipStreamEndCapture(this->streams[localRank][i], &graphs[localRank][i]));
@@ -641,6 +643,7 @@ namespace RcclUnitTesting
for (int localRank : localRanksToExecute)
{
if (this->verbose) INFO("Launch graph for rank %d\n", localRank);
CHECK_HIP(hipSetDevice(this->deviceIds[localRank]));
for (int i = 0; i < this->numStreamsPerGroup; i++)
{
CHECK_HIP(hipGraphLaunch(graphExec[localRank][i], this->streams[localRank][i]));
@@ -668,6 +671,7 @@ namespace RcclUnitTesting
for (int localRank : localRanksToExecute)
{
if (this->verbose) INFO("Destroying graphs for rank %d\n", localRank);
CHECK_HIP(hipSetDevice(this->deviceIds[localRank]));
for (int i = 0; i < this->numStreamsPerGroup; i++)
{
CHECK_HIP(hipGraphDestroy(graphs[localRank][i]));