This contains my bachelors thesis and associated tex files, code snippets and maybe more.
Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include <dml/dml.hpp>
#include <vector>
#include <iostream>
#include <fstream>
#include "logging-helper.hpp"
#include "execute-move.hpp"
int main(int argc, char **argv) { if (argc < 3) { std::cout << "Missing input and output file names." << std::endl; std::cout << "Usage: ./benchmarks [input.json] [output.json]" << std::endl; return 1; }
const std::string input = argv[1]; const std::string output = argv[2];
std::string path; std::vector<ThreadArgs> args;
std::ifstream is(input); ReadWorkDescription(args, path, is); is.close();
if (path == "hw") { execute_mem_move<dml::hardware>(args); } else if (path == "sw") { execute_mem_move<dml::software>(args); } else if (path == "auto") { execute_mem_move<dml::automatic>(args); } else { std::cerr << "Path is neither hw/sw/auto." << std::endl; }
std::ofstream os(output); WriteResultLog(args, path, os); os.close(); }
|