Skip to content

Commit

Permalink
Merge branch 'smalton/DOR-463-bionic-cpu-warning' into 'master'
Browse files Browse the repository at this point in the history
DOR-463: Bionic cpu warning

Closes DOR-463

See merge request machine-learning/dorado!756
  • Loading branch information
malton-ont committed Dec 7, 2023
2 parents 0d932c0 + 525e297 commit 936d408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dorado/nn/ModelRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "decode/Decoder.h"
#include "utils/stats.h"

#include <spdlog/spdlog.h>
#include <toml.hpp>
#include <torch/nn.h>

#include <atomic>
Expand Down
5 changes: 5 additions & 0 deletions dorado/nn/Runners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#endif // DORADO_GPU_BUILD

#include <cxxpool.h>
#include <spdlog/spdlog.h>

#include <thread>

Expand All @@ -39,6 +40,10 @@ std::pair<std::vector<dorado::Runner>, size_t> create_basecall_runners(
size_t num_devices = 1;

if (device == "cpu") {
#ifdef DORADO_TX2
spdlog::warn("CPU basecalling is not supported on this platform. Results may be incorrect");
#endif // #ifdef DORADO_TX2

if (batch_size == 0) {
batch_size = 128;
}
Expand Down

0 comments on commit 936d408

Please sign in to comment.