Skip to content

Commit

Permalink
QuantumESPRESSO: Let internal EasyBlock not create a log file
Browse files Browse the repository at this point in the history
This fixes the increased memory usage when running the EasyConfig test suite
as log files would stay open.

Signed-off-by: Jan André Reuter <[email protected]>
  • Loading branch information
Thyre committed Nov 14, 2024
1 parent 28b2084 commit 3736885
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions easybuild/easyblocks/q/quantumespresso.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
@author: Kenneth Hoste (Ghent University)
@author: Ake Sandgren (HPC2N, Umea University)
@author: Davide Grassano (CECAM, EPFL)
@author: Jan Reuter (Juelich Supercomputing Centre)
"""

import fileinput
Expand Down Expand Up @@ -84,6 +85,8 @@ def __init__(self, ec, *args, **kwargs):

# Required to avoid CMakeMake default extra_opts to override the ConfigMake ones
new_ec = EasyConfig(ec.path, extra_options=eb.extra_options())
# Disable log file for nested EasyBlock
kwargs['logfile'] = super(EB_QuantumESPRESSO, self).logfile
self.ebclass = eb(new_ec, *args, **kwargs)

class EB_QuantumESPRESSOcmake(CMakeMake):
Expand Down

0 comments on commit 3736885

Please sign in to comment.