a76bebf8b6
[ROCm/rccl commit: a4ea1fed5b]
57 lines
1.6 KiB
C++
57 lines
1.6 KiB
C++
/*************************************************************************
|
|
* Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved.
|
|
* Modifications Copyright (c) 2019-2021 Advanced Micro Devices, Inc. All rights reserved.
|
|
*
|
|
* See LICENSE.txt for license information
|
|
************************************************************************/
|
|
|
|
#include "nvmlwrap.h"
|
|
|
|
ncclResult_t wrapNvmlSymbols(void) {
|
|
return ncclSuccess;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlInit(void) {
|
|
return ncclSuccess;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlShutdown(void) {
|
|
return ncclSuccess;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetHandleByPciBusId(const char* pciBusId, nvmlDevice_t* device) {
|
|
return ncclSystemError;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetIndex(nvmlDevice_t device, unsigned* index) {
|
|
*index = 0;
|
|
return ncclSuccess;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetPciInfo(nvmlDevice_t device, nvmlPciInfo_t* pci) {
|
|
return ncclSystemError;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetMinorNumber(nvmlDevice_t device, unsigned int* minorNumber) {
|
|
*minorNumber = 0;
|
|
return ncclSuccess;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetNvLinkState(nvmlDevice_t device, unsigned int link, nvmlEnableState_t *isActive) {
|
|
return ncclSystemError;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetNvLinkRemotePciInfo(nvmlDevice_t device, unsigned int link, nvmlPciInfo_t *pci) {
|
|
return ncclSystemError;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetNvLinkCapability(nvmlDevice_t device, unsigned int link,
|
|
nvmlNvLinkCapability_t capability, unsigned int *capResult) {
|
|
return ncclSystemError;
|
|
}
|
|
|
|
ncclResult_t wrapNvmlDeviceGetCudaComputeCapability(nvmlDevice_t device, int* major, int* minor) {
|
|
*major = *minor = 1;
|
|
return ncclSuccess;
|
|
}
|