fixes bug when setting env variable (#170)

[ROCm/rocdecode commit: 2a1f1d7dff]
Αυτή η υποβολή περιλαμβάνεται σε:
Lakshmi Kumar authored and GitHub committed 2024-01-12 14:04:47 -05:00
1 γονέας 9670ca5423
υποβολή d8c4040967
2 files changed
+2 -2

No files matched your search

@@ -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;
}
@@ -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;
}