Skip to content

Commit

Permalink
[Feature](mlu-ops): fix driver-process error. (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrelYy authored Jan 22, 2024
1 parent 3f5b4ff commit c4821a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/mlu_op_gtest/pb_gtest/src/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void Executor::setup(std::string file,
deviceRestSpaceMalloc();

// when get MLUOP_GTEST_FILL_RAM env,
// fill nram/sram/warm for nan or inf beore compute for each case
// fill nram/sram/warm for nan or inf before compute for each case
fillRam();

VLOG(4) << "Algorithm Search.";
Expand Down
5 changes: 3 additions & 2 deletions test/mlu_op_gtest/pb_gtest/src/gtest/test_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,9 @@ void TestEnvironment::setDevice() {
device_id = sorted_device_ids[i].device_id;
process_count = sorted_device_ids[i].process_count;
std::string bus_id = sorted_device_ids[i].bus_id;
if ((process_count == 0 &&
(global_var.run_on_jenkins_ || setComputeMode(bus_id, '0'))) ||
if ((process_count == 0 && (global_var.run_on_jenkins_ ||
sorted_device_ids[i].compute_mode == '0' ||
setComputeMode(bus_id, '0'))) ||
process_count > 0) {
is_picked = true;
break;
Expand Down

0 comments on commit c4821a1

Please sign in to comment.