Skip to content

new easyblock for darshan#2548

Open
satishskamath wants to merge 1 commit intoeasybuilders:developfrom
satishskamath:20210818113603_new_pr_PlWgHZKRRa
Open

new easyblock for darshan#2548
satishskamath wants to merge 1 commit intoeasybuilders:developfrom
satishskamath:20210818113603_new_pr_PlWgHZKRRa

Conversation

@satishskamath
Copy link
Copy Markdown
Contributor

(created using eb --new-pr)


#txt += self.module_generator.prepend_paths('PE_PKGCONFIG_LIBS', 'darshan-util', expand_relpaths=False)
#txt += self.module_generator.prepend_paths('PE_PKGCONFIG_PRODUCTS', 'DARSHAN', expand_relpaths=False)
#txt += self.module_generator.prepend_paths('DARSHAN_PKGCONFIG_LIBS', 'darshan', expand_relpaths=False)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

block comment should start with '# '

txt += self.module_generator.prepend_paths('PE_PKGCONFIG_LIBS', 'darshan-runtime', expand_relpaths=False)

#txt += self.module_generator.prepend_paths('PE_PKGCONFIG_LIBS', 'darshan-util', expand_relpaths=False)
#txt += self.module_generator.prepend_paths('PE_PKGCONFIG_PRODUCTS', 'DARSHAN', expand_relpaths=False)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

block comment should start with '# '

if self.toolchain.toolchain_family() == toolchain.CRAYPE:
txt += self.module_generator.prepend_paths('PE_PKGCONFIG_LIBS', 'darshan-runtime', expand_relpaths=False)

#txt += self.module_generator.prepend_paths('PE_PKGCONFIG_LIBS', 'darshan-util', expand_relpaths=False)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

block comment should start with '# '

super(EB_Darshan, self).sanity_check_step(custom_paths)


def make_module_extra(self, *args, **kwargs):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many blank lines (2)

'bin/dxt_analyzer.py',
'lib/libdarshan-util.a',
],
'dirs' : [ 'bin', 'lib', 'share' ],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace after '['
whitespace before ':'
whitespace before ']'


# environment variable may be defined but empty
if os.getenv('MPICC', None) is None:
raise EasyBuildError("Required environment variable %s not found (no toolchain used?).", envvar)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined name 'envvar'

extra_vars = {
'mem_align': ["8", "determines if the buffer for a read or write operation is aligned in memory.", CUSTOM],
'logpath_env': ["DARSHAN_LOG_DIR_PATH", "specifies an environment variable to use to determine the log path at run time", CUSTOM],
'jobid_env': ['SLURM_JOB_ID', "specifies the environment variable that Darshan should check to determine the jobid of a job", CUSTOM],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (148 > 120 characters)

def extra_options():
extra_vars = {
'mem_align': ["8", "determines if the buffer for a read or write operation is aligned in memory.", CUSTOM],
'logpath_env': ["DARSHAN_LOG_DIR_PATH", "specifies an environment variable to use to determine the log path at run time", CUSTOM],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (142 > 120 characters)

from easybuild.easyblocks.generic.configuremake import ConfigureMake
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import get_module_syntax
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'easybuild.tools.config.get_module_syntax' imported but unused

"""

import os
import shutil
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'shutil' imported but unused

@boegel boegel added the new label Sep 1, 2021
@boegel boegel added this to the 4.x milestone Sep 1, 2021
# along with EasyBuild. If not, see <http://www.gnu.org/licenses/>.
##
"""
EasyBuild support for building and installing HPL, implemented as an easyblock
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@satishskamath This is clearly incorrect, please fix (replace HPL with Darshan), and mention yourself + your affiliation as an author

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 15, 2021

@satishskamath Are you up for cleaning up the reported code style issues?

@satishskamath
Copy link
Copy Markdown
Contributor Author

@satishskamath Are you up for cleaning up the reported code style issues?

Hi @boegel ,

I am up for making the changes but am currently on vacation until Sept 27th. Can I take make the changes right after my vacation?

@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 29, 2021

@satishskamath Are you up for cleaning up the reported code style issues?

Hi @boegel ,

I am up for making the changes but am currently on vacation until Sept 27th. Can I take make the changes right after my vacation?

Of course, no rush! Do let us know if you need any help with this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants