restructure libomnitrace + tasking and omnitrace-causal updates (#237)

* restructured libomnitrace

- this is necessary to incorporate some of the binary analysis capabilities into omnitrace exe
- created libomnitrace-core (static)
- created libomnitrace-binary (static)
- created libomnitrace (static)
- omnitrace-avail links to libomnitrace.a
- omnitrace-critical-trace links to libomnitrace.a
- tweaked the testing
  - reduced verbosity on some of MPI tests
  - excluded trace-time-window from tests on Ubuntu 18.04
  - reduced causal e2e iterations
- minor tweak to tasking
  - manually create `PTL::UserTaskQueue` instance instead of relying on `PTL::ThreadPool` to create it

* Update formatting workflow

- source formatting uses ubuntu-22.04
- check-includes doesn't generate false positive for 'include "timemory.hpp"'

* omnitrace-causal --generate-configs

- fix config generation in omnitrace causal
- add test for omnitrace-causal + generating configs

* Fix omnitrace-object-library build

- accidentally included rocm sources in non-rocm builds

* Fix rocm compilation w/o rocprofiler

* update timemory submodule with mpi_get warning messages

* sampling offload file updates

- more verbose messages
- disable offload before stopping

* testing updates

- increase causal e2e iterations to 12
- increase lock_environment verbose to 2 (for sampling offload messages)
- fix return for omnitrace_add_validation_test
This commit is contained in:
Jonathan R. Madsen
2023-02-04 10:59:50 -06:00
committed by GitHub
parent 8feb6bf8b6
commit e7d3125459
164 changed files with 721 additions and 574 deletions
+12 -7
View File
@@ -21,16 +21,17 @@
// SOFTWARE.
#include "library/ptl.hpp"
#include "library/config.hpp"
#include "library/debug.hpp"
#include "library/defines.hpp"
#include "core/config.hpp"
#include "core/debug.hpp"
#include "core/defines.hpp"
#include "core/state.hpp"
#include "library/runtime.hpp"
#include "library/sampling.hpp"
#include "library/state.hpp"
#include "library/thread_data.hpp"
#include "library/thread_info.hpp"
#include <PTL/ThreadPool.hh>
#include <PTL/UserTaskQueue.hh>
#include <timemory/backends/threading.hpp>
#include <timemory/utility/declaration.hpp>
@@ -63,6 +64,9 @@ auto _thread_pool_cfg = []() {
}
}
static char buffer[sizeof(PTL::UserTaskQueue)];
static auto* _task_queue = new((void*) buffer) PTL::UserTaskQueue(_nthreads);
PTL::ThreadPool::Config _v{};
_v.init = true;
_v.use_affinity = false;
@@ -75,9 +79,10 @@ auto _thread_pool_cfg = []() {
set_thread_state(ThreadState::Disabled);
sampling::block_signals();
};
_v.finalizer = []() {};
_v.priority = 5;
_v.pool_size = _nthreads;
_v.finalizer = []() {};
_v.priority = 5;
_v.pool_size = _nthreads;
_v.task_queue = _task_queue;
return _v;
};