test_xml.cpp 477 Bytes
Newer Older
lishen's avatar
lishen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <stdio.h>
#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