#include #include #include "base.h" #include "alloc.h" #include "xml.h" using namespace sccl; int main(int argc, char** argv) { struct sccl::hardware::topology::topo::scclXml* xml; SCCLCHECK(sccl::scclCalloc(&xml, 1)); std::string xmlPath = "/opt/dtk/rccl/lib/built-in-BW-topo-input.xml"; SCCLCHECK(scclTopoGetXmlFromFile(xmlPath.c_str(), xml, 1)); SCCLCHECK(scclTopoDumpXmlToFile("test_xml.xml", xml)); return 0; } // main pass