TR-mbed 1.0
Loading...
Searching...
No Matches
Macros | Functions
tensor_contract_sycl_bench.cc File Reference
#include <SYCL/sycl.hpp>
#include <fstream>
#include <iostream>
#include <chrono>
#include <ctime>
#include <unsupported/Eigen/CXX11/Tensor>

Macros

#define EIGEN_BENCH_CONTRACT_SYCL
 
#define EIGEN_TEST_NO_LONGDOUBLE
 
#define EIGEN_TEST_NO_COMPLEX
 
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE   int64_t
 

Functions

std::ofstream out ("Result.txt")
 
std::chrono::time_point< std::chrono::system_clock > get_time ()
 
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)
 
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 contractionRowMajor (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 contractionABT (const Device &device_, TensorIndex num_iters, TensorIndex m_, TensorIndex k_, TensorIndex n_)
 
int main ()
 

Macro Definition Documentation

◆ EIGEN_BENCH_CONTRACT_SYCL

#define EIGEN_BENCH_CONTRACT_SYCL

◆ EIGEN_DEFAULT_DENSE_INDEX_TYPE

#define EIGEN_DEFAULT_DENSE_INDEX_TYPE   int64_t

◆ EIGEN_TEST_NO_COMPLEX

#define EIGEN_TEST_NO_COMPLEX

◆ EIGEN_TEST_NO_LONGDOUBLE

#define EIGEN_TEST_NO_LONGDOUBLE

Function Documentation

◆ contraction()

template<typename T , typename Device , typename TensorIndex >
void contraction ( const Device &  device_,
TensorIndex  num_iters,
TensorIndex  m_,
TensorIndex  k_,
TensorIndex  n_ 
)

◆ contractionABT()

template<typename T , typename Device , typename TensorIndex >
void contractionABT ( const Device &  device_,
TensorIndex  num_iters,
TensorIndex  m_,
TensorIndex  k_,
TensorIndex  n_ 
)

◆ contractionAT()

template<typename T , typename Device , typename TensorIndex >
void contractionAT ( const Device &  device_,
TensorIndex  num_iters,
TensorIndex  m_,
TensorIndex  k_,
TensorIndex  n_ 
)

◆ contractionBT()

template<typename T , typename Device , typename TensorIndex >
void contractionBT ( const Device &  device_,
TensorIndex  num_iters,
TensorIndex  m_,
TensorIndex  k_,
TensorIndex  n_ 
)

◆ contractionRowMajor()

template<typename T , typename Device , typename TensorIndex >
void contractionRowMajor ( const Device &  device_,
TensorIndex  num_iters,
TensorIndex  m_,
TensorIndex  k_,
TensorIndex  n_ 
)

◆ finalizeBenchmark()

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 
)

◆ get_time()

std::chrono::time_point< std::chrono::system_clock > get_time ( )

◆ main()

int main ( void  )

◆ out()

std::ofstream out ( "Result.txt"  )