Workflow, submodules, and thread info Updates (#352)

* Update CI workflows

- use node20 workflow packages

* Update tests/source/CMakeLists.txt

- Use OMNITRACE_TRACE and OMNTRACE_PROFILE instead of perfetto/timemory

* Update timemory submodule

- argparse: requires -> required
- parse callbacks

* Update thread_info.cpp

- fix causal::delay::get_local usage

* Update timemory submodule

* Update kokkos submodule

- release 3.7.02

* Revert opensuse.yml and ubuntu-bionic.yml to use node16 workflows

* Update docs.yml
Este commit está contenido en:
Jonathan R. Madsen
2024-06-20 17:47:31 -05:00
cometido por GitHub
padre f8d52a6dbf
commit 219b2e988e
Se han modificado 7 ficheros con 24 adiciones y 16 borrados
+11 -3
Ver fichero
@@ -35,6 +35,8 @@
#include <timemory/components/timing/backends.hpp>
#include <timemory/process/threading.hpp>
#include <cstdint>
namespace omnitrace
{
namespace
@@ -105,8 +107,9 @@ init_index_data(int64_t _tid, bool _offset = false)
return itr;
}
const auto unknown_thread = std::optional<thread_info>{};
int64_t peak_num_threads = max_supported_threads;
thread_local int64_t offset_causal_count = 0;
const auto unknown_thread = std::optional<thread_info>{};
int64_t peak_num_threads = max_supported_threads;
} // namespace
std::string
@@ -187,8 +190,13 @@ thread_info::init(bool _offset)
_info = thread_info{};
_info->is_offset = threading::offset_this_id();
_info->index_data = init_index_data(_tid, _info->is_offset);
_info->causal_count = &causal::delay::get_local();
_info->lifetime.first = tim::get_clock_real_now<uint64_t, std::nano>();
const auto _sequent_tid = _info->index_data->sequent_value;
_info->causal_count = (!_info->is_offset && _sequent_tid < peak_num_threads)
? &causal::delay::get_local(_sequent_tid)
: &offset_causal_count;
if(_info->is_offset) set_thread_state(ThreadState::Disabled);
}