Compadre  1.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Compadre::KokkosParser Class Reference

Class handling Kokkos command line arguments and returning parameters. More...

Detailed Description

Class handling Kokkos command line arguments and returning parameters.

Definition at line 12 of file Compadre_KokkosParser.hpp.

#include <Compadre_KokkosParser.hpp>

Public Member Functions

 KokkosParser (int argc, char *args[], bool print_status=false)
 
 KokkosParser (int num_threads=-1, int numa=-1, int device=-1, int ngpu=-1, bool print_status=false)
 
 ~KokkosParser ()
 
int initialize ()
 
int finalize (bool hard_finalize=false)
 
void retrievePreviouslyInstantiatedKokkosInitArguments ()
 
Kokkos::InitArguments createInitArguments () const
 
int getNumberOfThreads () const
 
int getNuma () const
 
int getDeviceID () const
 
int getNumberOfGPUs () const
 
void status () const
 
KokkosParseroperator= (const KokkosParser &)=delete
 

Private Member Functions

 KokkosParser ()
 

Private Attributes

int _num_threads
 
int _numa
 
int _device
 
int _ngpu
 
bool _called_initialize
 

Constructor & Destructor Documentation

Compadre::KokkosParser::KokkosParser ( )
private
Compadre::KokkosParser::KokkosParser ( int  argc,
char *  args[],
bool  print_status = false 
)
KokkosParser::KokkosParser ( int  num_threads = -1,
int  numa = -1,
int  device = -1,
int  ngpu = -1,
bool  print_status = false 
)

Definition at line 50 of file Compadre_KokkosParser.cpp.

Compadre::KokkosParser::~KokkosParser ( )
inline

Definition at line 35 of file Compadre_KokkosParser.hpp.

Member Function Documentation

Kokkos::InitArguments KokkosParser::createInitArguments ( ) const

Definition at line 88 of file Compadre_KokkosParser.cpp.

int KokkosParser::finalize ( bool  hard_finalize = false)

Definition at line 148 of file Compadre_KokkosParser.cpp.

int Compadre::KokkosParser::getDeviceID ( ) const
inline

Definition at line 59 of file Compadre_KokkosParser.hpp.

int Compadre::KokkosParser::getNuma ( ) const
inline

Definition at line 58 of file Compadre_KokkosParser.hpp.

int Compadre::KokkosParser::getNumberOfGPUs ( ) const
inline

Definition at line 60 of file Compadre_KokkosParser.hpp.

int Compadre::KokkosParser::getNumberOfThreads ( ) const
inline

Definition at line 57 of file Compadre_KokkosParser.hpp.

int KokkosParser::initialize ( )

Definition at line 121 of file Compadre_KokkosParser.cpp.

KokkosParser& Compadre::KokkosParser::operator= ( const KokkosParser )
delete
void KokkosParser::retrievePreviouslyInstantiatedKokkosInitArguments ( )

Definition at line 96 of file Compadre_KokkosParser.cpp.

void KokkosParser::status ( ) const

Definition at line 162 of file Compadre_KokkosParser.cpp.

Member Data Documentation

bool Compadre::KokkosParser::_called_initialize
private

Definition at line 21 of file Compadre_KokkosParser.hpp.

int Compadre::KokkosParser::_device
private

Definition at line 18 of file Compadre_KokkosParser.hpp.

int Compadre::KokkosParser::_ngpu
private

Definition at line 19 of file Compadre_KokkosParser.hpp.

int Compadre::KokkosParser::_num_threads
private

Definition at line 16 of file Compadre_KokkosParser.hpp.

int Compadre::KokkosParser::_numa
private

Definition at line 17 of file Compadre_KokkosParser.hpp.


The documentation for this class was generated from the following files: