-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrace_reader.h
More file actions
35 lines (24 loc) · 816 Bytes
/
Copy pathtrace_reader.h
File metadata and controls
35 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Created by 徐向荣 on 2022/6/7.
//
#ifndef MICRO_GPUSIM_C_TRACE_READER_H
#define MICRO_GPUSIM_C_TRACE_READER_H
#include <utility>
#include <queue>
#include <string>
#include <sstream>
#include "kernel.h"
void gen_block_mem_trace(const std::string &trace_path, int kernel_id);
class trace_reader {
public:
explicit trace_reader(int kernel_id) {
m_kernel_id = kernel_id;
}
void gen_block_mem_trace(const std::string &trace_path, int kernel_id);
void
read_sass(const std::string &benchmark_path, kernel_info &kernelInfo, std::vector<trace_inst> &trace_insts) const;
void read_all_block_sass(const std::string &benchmark_path, kernel_info &kernelInfo, std::vector<trace_inst> &trace_insts) const;
private:
int m_kernel_id;
};
#endif //MICRO_GPUSIM_C_TRACE_READER_H