SWDEV-465520: RHEL9 toolchain doesnt seem to support experimental filesystem
Change-Id: I6b1e7f42c49b1c7af412c0b68851724861c9970a
[ROCm/rocprofiler commit: 1e69b3e2f6]
Este commit está contenido en:
@@ -27,7 +27,6 @@ Copyright (c) 2022 Advanced Micro Devices, Inc.
|
||||
#include <atomic>
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -39,8 +38,10 @@ Copyright (c) 2022 Advanced Micro Devices, Inc.
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/color.h>
|
||||
|
||||
#include "src/utils/filesystem.hpp"
|
||||
|
||||
// filesystem for path resolutions
|
||||
namespace fs = std::filesystem;
|
||||
namespace fs = rocprofiler::common::filesystem;
|
||||
|
||||
namespace rocprofiler {
|
||||
namespace src {
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <experimental/filesystem>
|
||||
|
||||
#include "src/utils/filesystem.hpp"
|
||||
|
||||
/*
|
||||
mpiexec -n 16 rocsys --session-new test launch python app.py
|
||||
@@ -47,7 +48,7 @@ struct shmd_t {
|
||||
struct shmd_t* shmd;
|
||||
} // namespace
|
||||
|
||||
namespace fs = std::experimental::filesystem;
|
||||
namespace fs = rocprofiler::common::filesystem;
|
||||
|
||||
void report(const char* msg, int terminate) {
|
||||
std::cerr << msg << ": " << errno << std::endl;
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include <cstdlib>
|
||||
#include <csetjmp>
|
||||
#include <exception>
|
||||
#include <experimental/filesystem>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
@@ -60,6 +59,7 @@
|
||||
#include "utils/helper.h"
|
||||
#include "trace_buffer.h"
|
||||
#include "core/session/att/att.h"
|
||||
#include "src/utils/filesystem.hpp"
|
||||
|
||||
|
||||
struct PluginHeaderPacket {
|
||||
@@ -69,7 +69,7 @@ struct PluginHeaderPacket {
|
||||
|
||||
#define SLEEP_CYCLE_LENGTH 100l
|
||||
|
||||
namespace fs = std::experimental::filesystem;
|
||||
namespace fs = rocprofiler::common::filesystem;
|
||||
|
||||
// Macro to check ROCProfiler calls status
|
||||
#define CHECK_ROCPROFILER(call) \
|
||||
@@ -439,7 +439,7 @@ void plugins_load(void* userdata) {
|
||||
|
||||
if (out_path.size() && !bIsATT) {
|
||||
try {
|
||||
std::experimental::filesystem::create_directories(out_path);
|
||||
rocprofiler::common::filesystem::create_directories(out_path);
|
||||
} catch (...) {
|
||||
}
|
||||
out_path = out_path + '/';
|
||||
|
||||
Referencia en una nueva incidencia
Block a user