SWDEV-515261 - strip newline from rocm_agent_enumerator output (#222)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ef6c95f6ce
Коммит
ac7c31d49e
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user