FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
runtime.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7
8// includes, FEAT
10
11namespace FEAT
12{
18 class Runtime
19 {
20 private:
22 static bool _initialized;
23
25 static bool _finalized;
26
27 public:
32 {
33 public:
42 explicit ScopeGuard(int& argc, char**& argv)
43 {
44 Runtime::initialize(argc, argv);
45 }
46
53 {
55 }
56 }; // class Runtime::Guard
57
70 static void initialize(int& argc, char**& argv);
71
82 [[noreturn]] static void abort(bool dump_call_stack = true);
83
103 static int finalize();
104
108 static void* get_cudss_handle();
109
113 static void synchronize_devices();
114 }; // class Runtime
115} // namespace FEAT
FEAT Kernel base header.
Runtime scope guard class.
Definition: runtime.hpp:32
ScopeGuard(int &argc, char **&argv)
Runtime scope guard constructor.
Definition: runtime.hpp:42
~ScopeGuard()
Runtime scope guard destructor.
Definition: runtime.hpp:52
FEAT Runtime management class.
Definition: runtime.hpp:19
static int finalize()
FEAT finalization.
Definition: runtime.cpp:463
static void synchronize_devices()
Synchronizes with all available devices (CUDA, HIP, etc...)
Definition: runtime.cpp:522
static bool _finalized
signals, if finalize was called
Definition: runtime.hpp:25
static void * get_cudss_handle()
Returns the unique cuDSS third-party library handle.
Definition: runtime.cpp:513
static bool _initialized
signals, if initialize was called
Definition: runtime.hpp:22
static void initialize(int &argc, char **&argv)
FEAT initialization.
Definition: runtime.cpp:50
static void abort(bool dump_call_stack=true)
FEAT abortion.
Definition: runtime.cpp:431
FEAT namespace.
Definition: adjactor.hpp:12