We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 613d69e commit b407512Copy full SHA for b407512
workflow/rules/somatic.smk
@@ -797,6 +797,21 @@ rule deepsomatic:
797
tmp=$(mktemp -d -p "{params.tmpdir}")
798
trap 'du -sh "${{tmp}}"; rm -rf "${{tmp}}"' EXIT
799
800
+ # Export OpenBLAS variable to
801
+ # control the number of threads
802
+ # in a thread pool. By setting
803
+ # this variable to 1, work is
804
+ # done in the thread that ran
805
+ # the operation, rather than
806
+ # disbatching the work to a
807
+ # thread pool. If this option
808
+ # is not provided, it can lead
809
+ # to nested parallelism.
810
+ # See this issue for more info:
811
+ # https://github.com/google/deepsomatic/issues/28
812
+ export OPENBLAS_NUM_THREADS=1
813
+
814
+ # Run deepsomatic
815
run_deepsomatic \\
816
--model_type={params.dv_model_type} \\
817
--ref={params.genome} \\
0 commit comments