Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions | Variables
fad_kokkos_view.cpp File Reference
#include "Sacado.hpp"
#include "Teuchos_CommandLineProcessor.hpp"
#include "Teuchos_StandardCatchMacros.hpp"
#include "Teuchos_Time.hpp"
#include "impl/Kokkos_Timer.hpp"
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for fad_kokkos_view.cpp:

Go to the source code of this file.

Classes

struct  MatVecFunctor< ViewTypeA, ViewTypeB, ViewTypeC >
 
struct  MatVecDerivFunctor< ViewTypeA, ViewTypeB, ViewTypeC >
 
struct  SLMatVecDerivFunctor< ViewTypeA, ViewTypeB, ViewTypeC, MaxP >
 
struct  SMatVecDerivFunctor< ViewTypeA, ViewTypeB, ViewTypeC, p >
 
struct  Perf
 

Enumerations

enum  LayoutType {
  LAYOUT_LEFT =0, LAYOUT_RIGHT, LAYOUT_DEFAULT, LAYOUT_LEFT =0,
  LAYOUT_RIGHT, LAYOUT_DEFAULT
}
 

Functions

template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec (const ViewTypeA &A, const ViewTypeB &b, const ViewTypeC &c)
 
template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec_deriv (const ViewTypeA &A, const ViewTypeB &b, const ViewTypeC &c)
 
template<int MaxP, typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec_deriv_sl (const ViewTypeA &A, const ViewTypeB &b, const ViewTypeC &c)
 
template<int p, typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec_deriv_s (const ViewTypeA &A, const ViewTypeB &b, const ViewTypeC &c)
 
template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void check_val (const ViewTypeA &A, const ViewTypeB &b, const ViewTypeC &c)
 
template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void check_deriv (const ViewTypeA &A, const ViewTypeB &b, const ViewTypeC &c)
 
template<typename FadType , typename... ViewArgs>
Perf do_time_fad (const size_t m, const size_t n, const size_t p, const size_t nloop, const bool check)
 
template<typename... ViewArgs>
Perf do_time_analytic (const size_t m, const size_t n, const size_t p, const size_t nloop, const bool check)
 
template<int MaxP, typename... ViewArgs>
Perf do_time_analytic_sl (const size_t m, const size_t n, const size_t p, const size_t nloop, const bool check)
 
template<int p, typename... ViewArgs>
Perf do_time_analytic_s (const size_t m, const size_t n, const size_t nloop, const bool check)
 
template<typename... ViewArgs>
Perf do_time_val (const size_t m, const size_t n, const size_t nloop, const bool check)
 
void print_perf (const Perf &perf, const Perf &perf_base, const std::string &name)
 
template<int SFadSize, int SLFadSize, typename... ViewArgs>
void do_times (const size_t m, const size_t n, const size_t p, const size_t nloop, const bool value, const bool analytic, const bool sfad, const bool slfad, const bool dfad, const bool check)
 
template<int SFadSize, int SLFadSize, typename Device >
void do_times_layout (const size_t m, const size_t n, const size_t p, const size_t nloop, const bool value, const bool analytic, const bool sfad, const bool slfad, const bool dfad, const bool check, const LayoutType &layout, const std::string &device)
 
void connect_vtune ()
 
int main (int argc, char *argv[])
 

Variables

const int num_layout_types = 3
 
const LayoutType layout_values []
 
const char * layout_names [] = { "left", "right", "default" }
 
const int SFadSize = 8
 
const int SLFadSize = SFadSize
 

Enumeration Type Documentation

enum LayoutType
Enumerator
LAYOUT_LEFT 
LAYOUT_RIGHT 
LAYOUT_DEFAULT 
LAYOUT_LEFT 
LAYOUT_RIGHT 
LAYOUT_DEFAULT 

Definition at line 620 of file fad_kokkos_view.cpp.

Function Documentation

template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec ( const ViewTypeA &  A,
const ViewTypeB &  b,
const ViewTypeC &  c 
)

Definition at line 251 of file fad_kokkos_view.cpp.

template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec_deriv ( const ViewTypeA &  A,
const ViewTypeB &  b,
const ViewTypeC &  c 
)

Definition at line 260 of file fad_kokkos_view.cpp.

template<int MaxP, typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec_deriv_sl ( const ViewTypeA &  A,
const ViewTypeB &  b,
const ViewTypeC &  c 
)

Definition at line 269 of file fad_kokkos_view.cpp.

template<int p, typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void run_mat_vec_deriv_s ( const ViewTypeA &  A,
const ViewTypeB &  b,
const ViewTypeC &  c 
)

Definition at line 278 of file fad_kokkos_view.cpp.

template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void check_val ( const ViewTypeA &  A,
const ViewTypeB &  b,
const ViewTypeC &  c 
)

Definition at line 286 of file fad_kokkos_view.cpp.

template<typename ViewTypeA , typename ViewTypeB , typename ViewTypeC >
void check_deriv ( const ViewTypeA &  A,
const ViewTypeB &  b,
const ViewTypeC &  c 
)

Definition at line 305 of file fad_kokkos_view.cpp.

template<typename FadType , typename... ViewArgs>
Perf do_time_fad ( const size_t  m,
const size_t  n,
const size_t  p,
const size_t  nloop,
const bool  check 
)

Definition at line 333 of file fad_kokkos_view.cpp.

template<typename... ViewArgs>
Perf do_time_analytic ( const size_t  m,
const size_t  n,
const size_t  p,
const size_t  nloop,
const bool  check 
)

Definition at line 380 of file fad_kokkos_view.cpp.

template<int MaxP, typename... ViewArgs>
Perf do_time_analytic_sl ( const size_t  m,
const size_t  n,
const size_t  p,
const size_t  nloop,
const bool  check 
)

Definition at line 422 of file fad_kokkos_view.cpp.

template<int p, typename... ViewArgs>
Perf do_time_analytic_s ( const size_t  m,
const size_t  n,
const size_t  nloop,
const bool  check 
)

Definition at line 464 of file fad_kokkos_view.cpp.

template<typename... ViewArgs>
Perf do_time_val ( const size_t  m,
const size_t  n,
const size_t  nloop,
const bool  check 
)

Definition at line 506 of file fad_kokkos_view.cpp.

void print_perf ( const Perf perf,
const Perf perf_base,
const std::string &  name 
)

Definition at line 545 of file fad_kokkos_view.cpp.

template<int SFadSize, int SLFadSize, typename... ViewArgs>
void do_times ( const size_t  m,
const size_t  n,
const size_t  p,
const size_t  nloop,
const bool  value,
const bool  analytic,
const bool  sfad,
const bool  slfad,
const bool  dfad,
const bool  check 
)

Definition at line 556 of file fad_kokkos_view.cpp.

template<int SFadSize, int SLFadSize, typename Device >
void do_times_layout ( const size_t  m,
const size_t  n,
const size_t  p,
const size_t  nloop,
const bool  value,
const bool  analytic,
const bool  sfad,
const bool  slfad,
const bool  dfad,
const bool  check,
const LayoutType layout,
const std::string &  device 
)

Definition at line 632 of file fad_kokkos_view.cpp.

void connect_vtune ( )

Definition at line 668 of file fad_kokkos_view.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 685 of file fad_kokkos_view.cpp.

Variable Documentation

const int num_layout_types = 3

Definition at line 625 of file fad_kokkos_view.cpp.

const LayoutType layout_values[]
const char* layout_names[] = { "left", "right", "default" }

Definition at line 628 of file fad_kokkos_view.cpp.

const int SFadSize = 8

Definition at line 682 of file fad_kokkos_view.cpp.

const int SLFadSize = SFadSize

Definition at line 683 of file fad_kokkos_view.cpp.