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:
committed by
GitHub
parent
3c680fdca8
commit
26b17b6f11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user