Skip to content

Commit

Permalink
Add warning if CPU basecalling is requested on TX2
Browse files Browse the repository at this point in the history
  • Loading branch information
malton-ont committed Dec 6, 2023
1 parent e55d645 commit 525e297
Showing 1 changed file with 5 additions and 0 deletions.
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 525e297

Please sign in to comment.