Skip to content

Commit

Permalink
Synchronization bugfix in new2all.
Browse files Browse the repository at this point in the history
  • Loading branch information
agudys committed Aug 16, 2021
1 parent c558463 commit abc72db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,8 @@ int Console::runNewVsAll(const std::string& dbFilename, const std::string& multi
while (!loader.isCompleted()) {
int task_id = sample_id.fetch_add(1);
std::shared_ptr<SampleTask> task;
int bufferId2 = 0;

if (freeBuffersQueue.Pop(bufferId2) && (task = loader.popTask(task_id))) {
task->bufferId2 = bufferId2;

if ((task = loader.popTask(task_id)) && freeBuffersQueue.Pop(task->bufferId2)) {
buffers[task->bufferId2].clear();

// only unique k-mers are needed
Expand Down
7 changes: 5 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#pragma once

#define VERSION "1.9.1"
#define DATE "11.08.2021"
#define VERSION "1.9.2"
#define DATE "16.08.2021"

/*
Version history
1.9.2 (11.08.2021)
- Synchronization bugfix in new2all.
1.9.1 (11.08.2021)
- Output matrices can be stored in sparse format (-sparse switch).
- Better workload balancing.
Expand Down

0 comments on commit abc72db

Please sign in to comment.