Skip to content

Commit

Permalink
Also parallelize Molten format
Browse files Browse the repository at this point in the history
  • Loading branch information
tseemann committed Jul 11, 2021
1 parent 8680c64 commit 3e498b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <zlib.h>
#include <omp.h>

#define VERSION "0.8.1"
#define VERSION "0.8.2"
#define EXENAME "snp-dists"
#define GITHUB_URL "https://github.com/tseemann/snp-dists"

Expand Down Expand Up @@ -165,6 +165,7 @@ int main(int argc, char* argv[])
if (molten) {
// "molten" format, one row per pair
for (int j = 0; j < N; j++) {
#pragma omp parallel for
for (int i=0; i < N; i++) {
size_t d = distance(seq[j], seq[i], L);
printf("%s%c%s%c%zu\n", name[j], sep, name[i], sep, d);
Expand Down

0 comments on commit 3e498b3

Please sign in to comment.