e3b2342f39
* MSCCL: improve executor and add scheduler for testing * Use external scheduler * Fix cmake error * Address comments * Fix thread safe issue * Make MSCCL lifecycle APIs thread safe * Make MSCCL internal scheduler aware of topology hint * Revise error message
17 lines
488 B
C++
17 lines
488 B
C++
/*************************************************************************
|
|
* Copyright (c) Microsoft Corporation.
|
|
* Licensed under the MIT License.
|
|
************************************************************************/
|
|
|
|
#include "msccl/msccl_status.h"
|
|
|
|
mscclStatus& mscclGetStatus() {
|
|
static mscclStatus status;
|
|
return status;
|
|
}
|
|
|
|
mscclThreadLocalStatus& mscclGetThreadLocalStatus() {
|
|
static thread_local mscclThreadLocalStatus threadLocalStatus;
|
|
return threadLocalStatus;
|
|
}
|