#include <SYCL/sycl.hpp>
#include <fstream>
#include <iostream>
#include <chrono>
#include <ctime>
#include <unsupported/Eigen/CXX11/Tensor>
Go to the source code of this file.
Macros | |
#define | EIGEN_BENCH_CONTRACT_SYCL |
#define | EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t |
#define | EIGEN_TEST_NO_COMPLEX |
#define | EIGEN_TEST_NO_LONGDOUBLE |
Functions | |
template<typename T , typename Device , typename TensorIndex > | |
void | contraction (const Device &device_, TensorIndex num_iters, TensorIndex m_, TensorIndex k_, TensorIndex n_) |
template<typename T , typename Device , typename TensorIndex > | |
void | contractionABT (const Device &device_, TensorIndex num_iters, TensorIndex m_, TensorIndex k_, TensorIndex n_) |
template<typename T , typename Device , typename TensorIndex > | |
void | contractionAT (const Device &device_, TensorIndex num_iters, TensorIndex m_, TensorIndex k_, TensorIndex n_) |
template<typename T , typename Device , typename TensorIndex > | |
void | contractionBT (const Device &device_, TensorIndex num_iters, TensorIndex m_, TensorIndex k_, TensorIndex n_) |
template<typename T , typename Device , typename TensorIndex > | |
void | contractionRowMajor (const Device &device_, TensorIndex num_iters, TensorIndex m_, TensorIndex k_, TensorIndex n_) |
template<typename Start , typename End , typename TensorIndex > | |
void | finalizeBenchmark (Start start, End end, TensorIndex m_, TensorIndex k_, TensorIndex n_, TensorIndex num_iters, std::string name) |
std::chrono::time_point< std::chrono::system_clock > | get_time () |
int | main () |
std::ofstream | out ("Result.txt") |
#define EIGEN_BENCH_CONTRACT_SYCL |
Definition at line 14 of file tensor_contract_sycl_bench.cc.
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t |
Definition at line 17 of file tensor_contract_sycl_bench.cc.
#define EIGEN_TEST_NO_COMPLEX |
Definition at line 16 of file tensor_contract_sycl_bench.cc.
#define EIGEN_TEST_NO_LONGDOUBLE |
Definition at line 15 of file tensor_contract_sycl_bench.cc.
void contraction | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
Definition at line 49 of file tensor_contract_sycl_bench.cc.
void contractionABT | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
Definition at line 258 of file tensor_contract_sycl_bench.cc.
void contractionAT | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
Definition at line 155 of file tensor_contract_sycl_bench.cc.
void contractionBT | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
Definition at line 206 of file tensor_contract_sycl_bench.cc.
void contractionRowMajor | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
Definition at line 103 of file tensor_contract_sycl_bench.cc.
void finalizeBenchmark | ( | Start | start, |
End | end, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_, | ||
TensorIndex | num_iters, | ||
std::string | name | ||
) |
Definition at line 38 of file tensor_contract_sycl_bench.cc.
std::chrono::time_point<std::chrono::system_clock> get_time | ( | ) |
Definition at line 32 of file tensor_contract_sycl_bench.cc.
int main | ( | void | ) |
Definition at line 308 of file tensor_contract_sycl_bench.cc.
std::ofstream out | ( | "Result.txt" | ) |