Interface Documentation
Version: invalid
backend.hh
Go to the documentation of this file.
1 /*
2  @@@@@@@@ @@ @@@@@@ @@@@@@@@ @@
3  /@@///// /@@ @@////@@ @@////// /@@
4  /@@ /@@ @@@@@ @@ // /@@ /@@
5  /@@@@@@@ /@@ @@///@@/@@ /@@@@@@@@@/@@
6  /@@//// /@@/@@@@@@@/@@ ////////@@/@@
7  /@@ /@@/@@//// //@@ @@ /@@/@@
8  /@@ @@@//@@@@@@ //@@@@@@ @@@@@@@@ /@@
9  // /// ////// ////// //////// //
10 
11  Copyright (c) 2016, Triad National Security, LLC
12  All rights reserved.
13  */
14 #pragma once
15 
18 #include <flecsi-config.h>
19 
20 //----------------------------------------------------------------------------//
21 // This section works with the build system to select the correct runtime
22 // implemenation for the task model. If you add to the possible runtimes,
23 // remember to edit config/packages.cmake to include a definition using
24 // the same convention, e.g., -DFLECSI_RUNTIME_MODEL_new_runtime.
25 //----------------------------------------------------------------------------//
26 
27 #if FLECSI_RUNTIME_MODEL == FLECSI_RUNTIME_MODEL_legion
28 
30 
31 #elif FLECSI_RUNTIME_MODEL == FLECSI_RUNTIME_MODEL_mpi
32 
33 #include "mpi/context.hh"
34 
35 #elif FLECSI_RUNTIME_MODEL == FLECSI_RUNTIME_MODEL_hpx
36 
37 #include "hpx/context.hh"
38 
39 #endif // FLECSI_RUNTIME_MODEL
40 
41 namespace flecsi::run {
42 context_t &
43 context::instance() {
44  static context_t context;
45  return context;
46 } // instance
47 } // namespace flecsi::run
Definition: backend.hh:41