fixes bug when setting env variable (#170)

[ROCm/rocdecode commit: 2a1f1d7dff]
이 커밋은 다음에 포함됨:
Lakshmi Kumar
2024-01-12 11:04:47 -08:00
커밋한 사람 GitHub
부모 9670ca5423
커밋 d8c4040967
2개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
+1 -1
파일 보기
@@ -160,7 +160,7 @@ int main(int argc, char **argv) {
std::string gcn_arch_name_base = (pos != std::string::npos) ? gcn_arch_name.substr(0, pos) : gcn_arch_name;
// gfx90a has two GCDs as two separate devices
if (!gcn_arch_name_base.compare("gfx90a")) {
if (!gcn_arch_name_base.compare("gfx90a") && num_devices > 1) {
sd = 1;
}
+1 -1
파일 보기
@@ -163,7 +163,7 @@ int main(int argc, char **argv) {
std::string gcn_arch_name_base = (pos != std::string::npos) ? gcn_arch_name.substr(0, pos) : gcn_arch_name;
// gfx90a has two GCDs as two separate devices
if (!gcn_arch_name_base.compare("gfx90a")) {
if (!gcn_arch_name_base.compare("gfx90a") && num_devices > 1) {
sd = 1;
}