#include <algorithm>
#include <chrono>
#include <ctime>
#include <iostream>
#include "main.h"
#include <unsupported/Eigen/CXX11/Tensor>
Go to the source code of this file.
Macros | |
#define | EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t |
#define | EIGEN_TEST_NO_COMPLEX |
#define | EIGEN_TEST_NO_LONGDOUBLE |
#define | EIGEN_USE_SYCL |
Functions | |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | contraction_batch (const Device &sycl_device, IndexType m_size, IndexType k_size, IndexType n_size, IndexType m_batch, IndexType start, IndexType limit) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | contraction_both_transposed (const Device &sycl_device, IndexType m_size, IndexType k_size, IndexType n_size) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | contraction_lhs_transposed (const Device &sycl_device, IndexType m_size, IndexType k_size, IndexType n_size) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | contraction_rhs_transposed (const Device &sycl_device, IndexType m_size, IndexType k_size, IndexType n_size) |
EIGEN_DECLARE_TEST (cxx11_tensor_contract_sycl) | |
template<typename Dev > | |
void | skinnyTensor_col (const Dev &sycl_device) |
template<typename Dev > | |
void | skinnyTensor_row (const Dev &sycl_device) |
template<typename Dev > | |
void | tensor_contraction_batch_per_device (const Dev &sycl_device) |
template<typename Dev > | |
void | tensor_contraction_both_transposed_per_device (const Dev &sycl_device) |
template<typename Dev > | |
void | tensor_contraction_lhs_transposed_per_device (const Dev &sycl_device) |
template<typename Dev > | |
void | tensor_contraction_rhs_transposed_per_device (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorOutofBound (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorScalar (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorTensor (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorTensor_k (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorTensor_m (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorTensor_n (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorTensor_sizes (const Dev &sycl_device) |
template<typename Dev > | |
void | tensorVector (const Dev &sycl_device) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
static void | test_no_out_of_bounds (const Device &sycl_device, IndexType m_size, IndexType k_size, IndexType n_size) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | test_scalar (const Device &sycl_device, IndexType m_size, IndexType k_size, IndexType n_size) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
static void | test_sycl_contraction (const Device &sycl_device, IndexType m_size, IndexType k_size, IndexType n_size) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | test_sycl_contraction_k (const Device &sycl_device) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | test_sycl_contraction_m (const Device &sycl_device) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | test_sycl_contraction_n (const Device &sycl_device) |
template<int DataLayout, typename DataType , typename IndexType , typename Device > | |
void | test_sycl_contraction_sizes (const Device &sycl_device) |
template<typename Dev > | |
void | vectorTensor (const Dev &sycl_device) |
template<typename Dev > | |
void | vectorVector (const Dev &sycl_device) |
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t |
Definition at line 17 of file cxx11_tensor_contract_sycl.cpp.
#define EIGEN_TEST_NO_COMPLEX |
Definition at line 15 of file cxx11_tensor_contract_sycl.cpp.
#define EIGEN_TEST_NO_LONGDOUBLE |
Definition at line 14 of file cxx11_tensor_contract_sycl.cpp.
#define EIGEN_USE_SYCL |
Definition at line 18 of file cxx11_tensor_contract_sycl.cpp.
void contraction_batch | ( | const Device & | sycl_device, |
IndexType | m_size, | ||
IndexType | k_size, | ||
IndexType | n_size, | ||
IndexType | m_batch, | ||
IndexType | start, | ||
IndexType | limit | ||
) |
Definition at line 320 of file cxx11_tensor_contract_sycl.cpp.
void contraction_both_transposed | ( | const Device & | sycl_device, |
IndexType | m_size, | ||
IndexType | k_size, | ||
IndexType | n_size | ||
) |
Definition at line 529 of file cxx11_tensor_contract_sycl.cpp.
void contraction_lhs_transposed | ( | const Device & | sycl_device, |
IndexType | m_size, | ||
IndexType | k_size, | ||
IndexType | n_size | ||
) |
Definition at line 463 of file cxx11_tensor_contract_sycl.cpp.
void contraction_rhs_transposed | ( | const Device & | sycl_device, |
IndexType | m_size, | ||
IndexType | k_size, | ||
IndexType | n_size | ||
) |
Definition at line 394 of file cxx11_tensor_contract_sycl.cpp.
EIGEN_DECLARE_TEST | ( | cxx11_tensor_contract_sycl | ) |
Definition at line 1002 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 881 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 858 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 904 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 982 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 922 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 951 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 595 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 837 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 630 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 685 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 649 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 667 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 702 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 789 of file cxx11_tensor_contract_sycl.cpp.
|
static |
Definition at line 154 of file cxx11_tensor_contract_sycl.cpp.
void test_scalar | ( | const Device & | sycl_device, |
IndexType | m_size, | ||
IndexType | k_size, | ||
IndexType | n_size | ||
) |
Definition at line 257 of file cxx11_tensor_contract_sycl.cpp.
|
static |
Definition at line 36 of file cxx11_tensor_contract_sycl.cpp.
void test_sycl_contraction_k | ( | const Device & | sycl_device | ) |
Definition at line 114 of file cxx11_tensor_contract_sycl.cpp.
void test_sycl_contraction_m | ( | const Device & | sycl_device | ) |
Definition at line 105 of file cxx11_tensor_contract_sycl.cpp.
void test_sycl_contraction_n | ( | const Device & | sycl_device | ) |
Definition at line 123 of file cxx11_tensor_contract_sycl.cpp.
void test_sycl_contraction_sizes | ( | const Device & | sycl_device | ) |
Definition at line 132 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 747 of file cxx11_tensor_contract_sycl.cpp.
|
inline |
Definition at line 719 of file cxx11_tensor_contract_sycl.cpp.