![]() |
|
#include <CL/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 () |
#define EIGEN_BENCH_CONTRACT_SYCL |
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int64_t |
#define EIGEN_TEST_NO_COMPLEX |
#define EIGEN_TEST_NO_LONGDOUBLE |
void contraction | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
References Eigen::Aligned, Eigen::placeholders::end, finalizeBenchmark(), get_time(), and oomph::CumulativeTimings::start().
void contractionABT | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
void contractionAT | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
void contractionBT | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
void contractionRowMajor | ( | const Device & | device_, |
TensorIndex | num_iters, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_ | ||
) |
void finalizeBenchmark | ( | Start | start, |
End | end, | ||
TensorIndex | m_, | ||
TensorIndex | k_, | ||
TensorIndex | n_, | ||
TensorIndex | num_iters, | ||
std::string | name | ||
) |
References e(), Eigen::placeholders::end, plotDoE::name, out(), and oomph::CumulativeTimings::start().
Referenced by contraction(), contractionABT(), contractionAT(), contractionBT(), and contractionRowMajor().
std::chrono::time_point<std::chrono::system_clock> get_time | ( | ) |
References Eigen::placeholders::end, and oomph::CumulativeTimings::start().
Referenced by contraction(), contractionABT(), contractionAT(), contractionBT(), and contractionRowMajor().
int main | ( | ) |
std::ofstream out | ( | "Result.txt" | ) |
Referenced by ChangingTOIParticle::actionsAfterTimeStep(), statistics_while_running< T >::appendToFile(), Eigen::internal::OP< MatrixSolver, MatrixType, Scalar, true >::applyOP(), Eigen::TensorEvaluator< const TensorPaddingOp< PaddingDimensions, ArgType >, Device >::block(), CFile::CFile(), check_sparse_solving(), Eigen::ArpackGeneralizedSelfAdjointEigenSolver< MatrixType, MatrixSolver, BisSPD >::compute(), CFile::copy_data(), CFile::copy_fstat(), create_fluid_and_solid_surface_mesh_from_fluid_xda_mesh(), cwise_ref(), oomph::GeneralisedElement::describe_dofs(), oomph::Mesh::describe_dofs(), oomph::Data::describe_dofs(), oomph::SolidNode::describe_dofs(), oomph::Problem::describe_dofs(), oomph::ElementWithExternalElement::describe_local_dofs(), oomph::HeatedLinearSurfaceContactElement< ELEMENT >::describe_local_dofs(), oomph::ElementWithMovingNodes::describe_local_dofs(), oomph::ElementWithSpecificMovingNodes< ELEMENT, NODE_TYPE >::describe_local_dofs(), oomph::GeneralisedElement::describe_local_dofs(), oomph::FiniteElement::describe_local_dofs(), oomph::SolidFiniteElement::describe_local_dofs(), oomph::FaceElementAsGeomObject< ELEMENT >::describe_local_dofs(), oomph::FSIWallElement::describe_local_dofs(), oomph::Mesh::describe_local_dofs(), oomph::ProjectableElement< ELEMENT >::describe_local_dofs(), oomph::PseudoSolidNodeUpdateElement< BASIC, SOLID >::describe_local_dofs(), oomph::RefineablePseudoSolidNodeUpdateElement< BASIC, SOLID >::describe_local_dofs(), oomph::SpectralElement::describe_local_dofs(), oomph::RefineableQSpectralPoissonElement< DIM, NNODE_1D >::describe_local_dofs(), oomph::FSIImposeDisplacementByLagrangeMultiplierElement< ELEMENT >::describe_local_dofs(), oomph::FiniteElement::describe_nodal_local_dofs(), oomph::SolidFiniteElement::describe_solid_local_dofs(), oomph::SpineMesh::describe_spine_dofs(), oomph::MyProblem::doc_boundaries(), oomph::MyProblem::doc_solution(), EIGEN_DECLARE_TEST(), Detail::VTKPointDescriptorEntryImpl< T, V >::emit(), Detail::emitProxy(), File::File(), finalizeBenchmark(), format(), helpers::getLineFromStringStream(), Eigen::PastixLU< MatrixType_, IsStrSym >::grabMatrix(), Eigen::PastixLLT< MatrixType_, UpLo_ >::grabMatrix(), Eigen::PastixLDLT< MatrixType_, UpLo_ >::grabMatrix(), HstopCurve(), DPMBase::incrementRunNumberInFile(), oomph::MyProblem::initial_doc(), DPMBase::initialiseSolve(), mag2(), main(), BaseCluster::makeAmatFile(), BaseCluster::makeCdatFile(), BaseCluster::makeGnuplotFile(), BaseCluster::makeIntenalStructureFile(), BaseCluster::makeOverlFile(), BaseVTKWriter< H >::makeVTKFileWithHeader(), VTKData::makeVTKFileWithHeader(), oomph::StreamfunctionProblem::my_output(), File::openWrite(), File::openWriteNoAppend(), Eigen::internal::pfrexp(), Eigen::internal::pldexp< Packet4d >(), Eigen::internal::pldexp< Packet8d >(), Eigen::internal::pldexp_generic(), printBenchStyle(), printStatheader(), Eigen::internal::ptranspose(), Eigen::internal::putDenseElt(), Eigen::internal::PutMatrixElt(), helpers::readArrayFromCommandLine(), helpers::readVectorFromCommandLine(), REF_FREXP(), run_and_compare_to_gpu(), run_and_verify(), run_on_cpu(), run_on_gpu(), run_on_gpu_meta_kernel(), Membrane::saveAsOFF(), Membrane::saveAsSTL(), Eigen::saveMarket(), Eigen::saveMarketDense(), strcicmp(), test_async_multithread_chip(), test_async_multithread_elementwise(), test_async_multithread_volume_patch(), test_binary_builtins_fixed_arg2(), test_binary_builtins_func(), test_broadcast_sycl(), test_broadcast_sycl_fixed(), test_coeff_wise(), test_complex_operators(), test_complex_sqrt(), test_custom_binary_op_sycl(), test_custom_unary_op_sycl(), test_device_exceptions(), test_diagonal(), test_eigenvalues_direct(), test_forced_eval_sycl(), test_innermost_first_dims(), test_innermost_last_dims(), test_matrix_inverse(), test_multithread_chip(), test_multithread_compound_assignment(), test_multithread_elementwise(), test_multithread_volume_patch(), test_numeric_limits(), test_product(), test_reduce_middle_dims(), test_redux(), test_replicate(), test_sigmoid_sycl(), test_static_dims(), test_sycl_cast(), test_sycl_computations(), test_sycl_mem_sync(), test_sycl_mem_sync_offsets(), test_sycl_memset_offsets(), test_sycl_random_normal(), test_sycl_random_uniform(), test_tanh_sycl(), test_unary_builtins_for_scalar(), test_unary_builtins_return_bool(), To32BitDims(), to_string_padded(), Eigen::TensorEvaluator< const TensorPaddingOp< PaddingDimensions, ArgType >, Device >::updateCostPerDimension(), CFile::writeP4P(), Calibration::writePSDToFile(), CFile::writeRestart(), helpers::writeToFile(), and statistics_while_running< T >::writeToFile().