Kokkos Core Kernels Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Public Member Functions | Static Public Member Functions
Kokkos::Qthread Class Reference

Execution space supported by Qthread. More...

#include <Kokkos_Qthread.hpp>

List of all members.

Public Types

Type declarations that all Kokkos devices must provide.
typedef Impl::ExecutionSpaceTag kokkos_tag
 The tag (what type of kokkos_object is this).
typedef Qthread device_type
typedef Qthread execution_space
typedef Kokkos::HostSpace memory_space
typedef Qthread scratch_memory_space
typedef memory_space::size_type size_type
typedef Kokkos::LayoutRight array_layout
typedef Kokkos::Qthread host_mirror_device_type

Public Member Functions

bool sleep ()
 Set the execution space to a "sleep" state.

Static Public Member Functions

static Qthreadinstance (int=0)
 Initialization will construct one or more instances.
static bool wake ()
 Wake from the sleep state.
static void fence ()
 Wait until all dispatched functions to complete.
static void print_configuration (std::ostream &, const bool detail=false)
 Print configuration information to the given output stream.

Detailed Description

Execution space supported by Qthread.

Definition at line 69 of file Kokkos_Qthread.hpp.


Member Typedef Documentation

typedef Impl::ExecutionSpaceTag Kokkos::Qthread::kokkos_tag

The tag (what type of kokkos_object is this).

Definition at line 74 of file Kokkos_Qthread.hpp.


Member Function Documentation

static Qthread& Kokkos::Qthread::instance ( int  = 0) [static]

Initialization will construct one or more instances.

Set the execution space to a "sleep" state.

This function sets the "sleep" state in which it is not ready for work. This may consume less resources than in an "ready" state, but it may also take time to transition to the "ready" state.

Returns:
True if enters or is in the "sleep" state. False if functions are currently executing.
static bool Kokkos::Qthread::wake ( ) [static]

Wake from the sleep state.

Returns:
True if enters or is in the "ready" state. False if functions are currently executing.
static void Kokkos::Qthread::fence ( ) [static]

Wait until all dispatched functions to complete.

The parallel_for or parallel_reduce dispatch of a functor may return asynchronously, before the functor completes. This method does not return until all dispatched functors on this device have completed.

static void Kokkos::Qthread::print_configuration ( std::ostream &  ,
const bool  detail = false 
) [static]

Print configuration information to the given output stream.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends