SWDEV-515261 - strip newline from rocm_agent_enumerator output (#222)
[ROCm/hip-tests commit: ac7c31d49e]
This commit is contained in:
committed by
GitHub
parent
c8a720088f
commit
ec247739d0
@@ -38,7 +38,8 @@ std::string TestContext::substringFound(std::vector<std::string> list, std::stri
|
||||
std::string TestContext::getCurrentArch() {
|
||||
#if HT_LINUX
|
||||
const char* cmd =
|
||||
"/opt/rocm/bin/rocm_agent_enumerator | awk '$0 != \"gfx000\"' | xargs | sed -e 's/ /;/g'";
|
||||
"/opt/rocm/bin/rocm_agent_enumerator | awk '$0 != \"gfx000\"' | xargs | sed -e 's/ /;/g' | "
|
||||
"tr -d '\n'";
|
||||
std::array<char, 1024> buffer;
|
||||
std::string result;
|
||||
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
|
||||
|
||||
Reference in New Issue
Block a user