7#include "Subdivision.hpp"
13#include "DataPath.hpp"
26 int parseMt4gTopo(Node* parent, std::string dataSourcePath,
int gpuId, std::string delim =
";");
34 int parseMt4gTopo(Component* parent, std::string dataSourcePath,
int gpuId, std::string delim =
";");
41 int parseMt4gTopo(Chip* gpu, std::string dataSourcePath, std::string delim =
";");
47 Mt4gParser(Chip* gpu, std::string dataSourcePath, std::string delim =
";");
49 int ParseBenchmarkData();
51 int ReadBenchmarkFile();
52 std::map<std::string,std::vector<std::string> > benchmarkData;
53 std::string dataSourcePath;
56 const bool latency_in_cycles;
57 bool L2_shared_on_gpu;
58 double Memory_Clock_Frequency;
61 int parseGPU_INFORMATION();
62 int parseCOMPUTE_RESOURCE_INFORMATION();
63 int parseREGISTER_INFORMATION();
64 int parseADDITIONAL_INFORMATION();
65 int parseMemory(std::string header_name, std::string memory_name);
66 int parseCaches(std::string header_name, std::string cache_type);
70 const std::string whiteSpaces(
" \f\n\r\t\v" );
72 void trimRight( std::string& str,
const std::string& trimChars = whiteSpaces );
74 void trimLeft( std::string& str,
const std::string& trimChars = whiteSpaces );
76 void trim( std::string& str,
const std::string& trimChars = whiteSpaces );
int parseMt4gTopo(Node *parent, std::string dataSourcePath, int gpuId, std::string delim=";")
Definition mt4g.cpp:17