Change-Id: I6a7a5bc93f80c9285c1eb7a4b2e97015c1598b0e


[ROCm/rocprofiler commit: 0b21b2dd7d]
This commit is contained in:
gobhardw
2024-07-29 20:19:16 +05:30
zatwierdzone przez Gopesh Bhardwaj
rodzic d8ab9e0c02
commit 977fd3861d
@@ -46,7 +46,7 @@ namespace {
struct shmd_t {
int command;
};
struct shmd_t* shmd;
struct shmd_t* shmd = nullptr;
} // namespace
namespace fs = rocprofiler::common::filesystem;
@@ -193,12 +193,12 @@ int main(int argc, char* argv[]) {
int argindex = i;
std::vector<std::string> env_vars;
env_vars.emplace_back("");
if (strncmp(argv[i], "rocprofv2", 8) == 0) {
if (std::string(argv[i]).find("rocprofv2") != std::string::npos) {
env_vars.emplace_back("--roc-sys");
env_vars.emplace_back(std::to_string(session_id));
}
for (argindex++; argindex < argc; argindex++) {
if (strncmp(argv[argindex], "rocprofv2", 8) == 0) {
if (std::string(argv[argindex]).find("rocprofv2") != std::string::npos) {
fs::path command = bin_path;
command.append("rocprofv2");
env_vars.emplace_back(command.c_str());