Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,15 @@ Config::Config(const ncclConfig_t* config) {
}

} // namespace ncclx

// C-style wrapper around the ncclx::Config parsing constructor.
// Most NCCL code is C-based, so this function translates C++
// exceptions into ncclResult_t error codes for the C callers.
ncclResult_t ncclxParseCommConfig(ncclConfig_t* config) {
try {
config->ncclxConfig = new ncclx::Config(config);
return ncclSuccess;
} catch (const std::exception&) {
return ncclInvalidArgument;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ inline const std::vector<std::string>& knownHintKeys() {
// exceptions into ncclResult_t error codes for the C callers.
// Stores the result in config->ncclxConfig. Must be called
// exactly once per config.
// TODO: Move into ncclx namespace as ncclx::parseCommConfig and update callers.
ncclResult_t ncclxParseCommConfig(ncclConfig_t* config);
71 changes: 0 additions & 71 deletions comms/ncclx/v2_27/meta/NcclxConfig.h

This file was deleted.

2 changes: 2 additions & 0 deletions comms/ncclx/v2_27/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ LIBSRCFILES := \

LIBSRCFILES += $(wildcard ${NCCLDIR}/meta/*.cc)
LIBSRCFILES += $(wildcard ${SHAREDDIR}/meta/commDump.cc)
LIBSRCFILES += $(wildcard ${SHAREDDIR}/meta/NcclxConfig.cc)
LIBSRCFILES += $(wildcard ${NCCLDIR}/meta/analyzer/*.cc)
LIBSRCFILES += $(wildcard ${SHAREDDIR}/meta/colltrace/*.cc)
LIBSRCFILES += $(wildcard ${SHAREDDIR}/meta/logger/*.cc)
Expand Down Expand Up @@ -108,6 +109,7 @@ INCLUDES += -Iinclude/plugin
INCLUDES += -I${NCCLDIR}/
INCLUDES += -I${SHAREDDIR}/
INCLUDES += -I${NCCLDIR}/meta
INCLUDES += -I${SHAREDDIR}/meta
INCLUDES += -I${NCCLDIR}/meta/wrapper
INCLUDES += -Idevice
INCLUDES += -I$(BASE_DIR)
Expand Down
11 changes: 0 additions & 11 deletions comms/ncclx/v2_27/src/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1855,17 +1855,6 @@ static ncclResult_t copyCommConfig(ncclComm_t childComm, ncclComm_t parent) {
return ncclSuccess;
}

// C-style wrapper around the ncclx::Config parsing constructor.
// Most NCCL code is C-based, so this function translates C++
// exceptions into ncclResult_t error codes for the C callers.
ncclResult_t ncclxParseCommConfig(ncclConfig_t* config) {
try {
config->ncclxConfig = new ncclx::Config(config);
return ncclSuccess;
} catch (const std::exception&) {
return ncclInvalidArgument;
}
}

static ncclResult_t parseCommConfig(ncclComm_t comm, ncclConfig_t *config) {
auto sampleGuardBegin = EVENTS_SCUBA_UTIL_SAMPLE_GUARD("INIT");
Expand Down
216 changes: 0 additions & 216 deletions comms/ncclx/v2_28/meta/NcclxConfig.cc

This file was deleted.

Loading
Loading