You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The io.open_file function uses xopen as its backend to transparently support compressed inputs and outputs. By default, xopen uses multiple threads in a separate process to write some compressed file formats. When processing large files like the full GISAID SARS-CoV-2 database and writing these out to a gzip file, it is easy for xopen's subprocesses (igzip) to use all available CPUs (e.g., on a laptop).
Expected behavior
Augur should always use a single CPU per command unless otherwise requested by the user through an argument like --nthreads.
Possible solution
Add a threads keyword argument to io.open_file with a default value of 1 and pass this argument to the xopen function call.
The text was updated successfully, but these errors were encountered:
As described in a separate Augur issue [1], xopen will attempt to call a
subprocess with multiple threads to write compressed output, depending
on the compression format. To avoid this issue during the ncov workflow,
we explicitly request 1 thread while writing out sanitized sequences.
[1] nextstrain/augur#731
huddlej
added a commit
to nextstrain/ncov
that referenced
this issue
Jun 4, 2021
As described in a separate Augur issue [1], xopen will attempt to call a
subprocess with multiple threads to write compressed output, depending
on the compression format. To avoid this issue during the ncov workflow,
we explicitly request 1 thread while writing out sanitized sequences.
[1] nextstrain/augur#731
Current Behavior
The
io.open_file
function uses xopen as its backend to transparently support compressed inputs and outputs. By default, xopen uses multiple threads in a separate process to write some compressed file formats. When processing large files like the full GISAID SARS-CoV-2 database and writing these out to a gzip file, it is easy for xopen's subprocesses (igzip) to use all available CPUs (e.g., on a laptop).Expected behavior
Augur should always use a single CPU per command unless otherwise requested by the user through an argument like
--nthreads
.Possible solution
Add a
threads
keyword argument toio.open_file
with a default value of1
and pass this argument to thexopen
function call.The text was updated successfully, but these errors were encountered: