Usman
10/13/2025, 10:54 PMGATK4_HAPLOTYPECALLER module from nf-core. The error says,
OMP: Error #15: Initializing libomp.so, but found unknown library already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see <http://openmp.llvm.org/>
Anyone seen this one before? Any suggestion? I am using the nf-core module which is using a Seqera container now.Maxime Garcia
10/14/2025, 1:54 PMMaxime Garcia
10/14/2025, 1:54 PMUsman
10/14/2025, 4:12 PMXavier Besseron
03/18/2026, 1:36 PMUsman
03/18/2026, 5:53 PMXavier Besseron
03/18/2026, 6:52 PMMaxime Garcia
03/18/2026, 7:15 PMMaxime Garcia
03/18/2026, 7:15 PMUsman
03/18/2026, 8:31 PMXavier Besseron
03/20/2026, 3:50 PM--tools haplotypecaller .
But so far, I did not manage to reproduce it with -profile testKarim Hamed
04/07/2026, 6:33 PMKarim Hamed
04/07/2026, 6:35 PMXavier Besseron
04/08/2026, 7:22 AMKMP_DUPLICATE_LIB_OK=TRUE in my container environment.
I'm using something like this in my Nextflow configuration file:
process {
withName: 'GATK4_HAPLOTYPECALLER' {
// Avoid bug related to double initialization of OpenMP library with GATK4_HAPLOTYPECALLER
// Full error message is:
// > OMP: Error #15: Initializing libomp.so, but found unknown library already initialized.
// > OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance
// > or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking
// > of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to
// > allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see <http://openmp.llvm.org/>
containerOptions = "--env KMP_DUPLICATE_LIB_OK='TRUE'"
}
}
I don't know if it is safe to use this in this case, but I did not meet any issue so far.Karim Hamed
04/08/2026, 10:20 AM