Update lib/rocprofiler-sdk-tool (#755)

- questionable data race within std::regex in CI
- simplify rocprofiler::tool::format
- set config::tmp_directory to default to output_path
- fs::create_directories for tmp_file
- rework get_file_name(...) and compose_tmp_file_name(...) in tool.cpp

[ROCm/rocprofiler-sdk commit: 87490d0018]
This commit is contained in:
Jonathan R. Madsen
2024-04-12 03:48:02 -05:00
committed by GitHub
parent 3c680fdca8
commit 26b17b6f11
6 changed files with 41 additions and 40 deletions
@@ -30,6 +30,9 @@ namespace fs = ::rocprofiler::common::filesystem;
bool
tmp_file::fopen(const char* _mode)
{
auto fpath = fs::path{filename}.parent_path();
if(!fs::exists(fpath)) fs::create_directories(fpath);
if(!fs::exists(filename))
{
// if the filepath does not exist, open in out mode to create it
@@ -101,6 +104,9 @@ tmp_file::close()
bool
tmp_file::open(std::ios::openmode _mode)
{
auto fpath = fs::path{filename}.parent_path();
if(!fs::exists(fpath)) fs::create_directories(fpath);
if(!fs::exists(filename))
{
// if the filepath does not exist, open in out mode to create it