-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
29 lines (21 loc) · 1.16 KB
/
main.cpp
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
#include "include/core.hpp"
auto main() -> int {
std::cout << "Hello, World!" << std::endl;
#ifdef LIBRAPID_HAS_OPENCL
librapid::configureOpenCL(true);
#endif
auto tmpSizes = librapid::logspace(4, 5592, 10); // I want to increase this, but the GitHub
// servers can't handle it
// Convert to vector to eliminate any issues with LibRapid that may arise
std::vector<int64_t> sizes(tmpSizes.storage().begin(), tmpSizes.storage().end());
auto trivialOperations = bench::trivialOperations(sizes);
std::ofstream trivialOperationsFile("trivialOperations.csv");
trivialOperations.render(nanobench::templates::csv(), trivialOperationsFile);
auto combinedTrivialOperations = bench::combinedTrivialOperations(sizes);
std::ofstream combinedTrivialOperationsFile("combinedTrivialOperations.csv");
combinedTrivialOperations.render(nanobench::templates::csv(), combinedTrivialOperationsFile);
auto linearAlgebra = bench::linearAlgebra(sizes);
std::ofstream linearAlgebraFile("linearAlgebra.csv");
linearAlgebra.render(nanobench::templates::csv(), linearAlgebraFile);
return 0;
}