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>
Include dependency graph for tensor_contract_sycl_bench.cc:

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")
 

Macro Definition Documentation

◆ EIGEN_BENCH_CONTRACT_SYCL

#define EIGEN_BENCH_CONTRACT_SYCL

Definition at line 14 of file tensor_contract_sycl_bench.cc.

◆ EIGEN_DEFAULT_DENSE_INDEX_TYPE

#define EIGEN_DEFAULT_DENSE_INDEX_TYPE   int64_t

Definition at line 17 of file tensor_contract_sycl_bench.cc.

◆ EIGEN_TEST_NO_COMPLEX

#define EIGEN_TEST_NO_COMPLEX

Definition at line 16 of file tensor_contract_sycl_bench.cc.

◆ EIGEN_TEST_NO_LONGDOUBLE

#define EIGEN_TEST_NO_LONGDOUBLE

Definition at line 15 of file tensor_contract_sycl_bench.cc.

Function Documentation

◆ contraction()

template<typename T , typename Device , typename TensorIndex >
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.

◆ contractionABT()

template<typename T , typename Device , typename TensorIndex >
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.

◆ contractionAT()

template<typename T , typename Device , typename TensorIndex >
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.

◆ contractionBT()

template<typename T , typename Device , typename TensorIndex >
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.

◆ contractionRowMajor()

template<typename T , typename Device , typename TensorIndex >
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.

◆ 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 
)

Definition at line 38 of file tensor_contract_sycl_bench.cc.

◆ get_time()

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

Definition at line 32 of file tensor_contract_sycl_bench.cc.

◆ main()

int main ( void  )

Definition at line 308 of file tensor_contract_sycl_bench.cc.

◆ out()

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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:54