Skip to content

Commit

Permalink
Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBicknellONT committed Mar 27, 2024
1 parent de7d4bb commit f04abbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dorado/read_pipeline/HtsWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace dorado {
using OutputMode = dorado::utils::HtsFile::OutputMode;

HtsWriter::HtsWriter(utils::HtsFile& file, std::string gpu_names)
: MessageSink(10000, 1), m_file(file), m_gpu_names(gpu_names) {
: MessageSink(10000, 1), m_file(file), m_gpu_names(std::move(gpu_names)) {
if (!m_gpu_names.empty()) {
m_gpu_names = "gpu:" + m_gpu_names;
}
Expand Down
4 changes: 2 additions & 2 deletions dorado/utils/cuda_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ std::string get_cuda_gpu_names(std::string device_string) {
std::set<std::string> gpu_strs;
std::string gpu_names;

for (auto &dev : dev_info) {
for (const auto &dev : dev_info) {
if (dev.in_use) {
gpu_strs.insert(dev.device_properties.name);
}
}

for (auto &gpu_id : gpu_strs) {
for (const auto &gpu_id : gpu_strs) {
if (!gpu_names.empty()) {
gpu_names += "|";
}
Expand Down

0 comments on commit f04abbb

Please sign in to comment.