Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/run-model/src/run-model/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ static DeviceType decide_and_check_device_type(
ASSERT(!cli_device_type_argument.has_value());

if (gpus_are_available) {
return DeviceType::CPU;
} else {
return DeviceType::GPU;
} else {
return DeviceType::CPU;
}
}

Expand Down Expand Up @@ -130,7 +130,7 @@ int main(int argc, char **argv) {

std::optional<DeviceType> device_type_cli_argument =
parse_device_type_argument(
cli_get_named_argument(parsed, key_mapped_pcg_json).value_or("auto"));
cli_get_named_argument(parsed, key_device_type).value_or("auto"));

std::vector<char *> realm_args = make_realm_args(prog_name);
int realm_argc = realm_args.size();
Expand Down
Loading