Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop useless definition of NLSPATH in IntelBase, fix ipp library paths #1442

Merged
merged 9 commits into from Aug 30, 2018

Conversation

damianam
Copy link
Member

NLSPATH with idb has been an useless variable for a long time. At least since 2015. More importantly, the ipp easyblock has never set correctly the library paths, as the ipp libraries are in ipp/lib/intel64, not in lib/intel64 (which also exists and has some extra libraries)

else:
nlspath = os.path.join('idb', 'intel64', 'locale', '%l_%t', '%N')
txt += self.module_generator.prepend_paths('NLSPATH', nlspath)

Copy link
Contributor

Choose a reason for hiding this comment

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

The debugger is nowadays a version of gdb and the locale is under
debugger_2018/gdb/intel64/share/locale/

But I think we can scrap the NLSPATH completely as above for debugger.

@boegel @damianam Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree

@@ -109,12 +109,12 @@ def make_module_req_guess(self):
guesses = super(EB_ipp, self).make_module_req_guess()

if LooseVersion(self.version) >= LooseVersion('9.0'):
lib_path = os.path.join('lib', self.arch)
lib_path = [os.path.join('ipp/lib', self.arch), os.path.join('lib', self.arch)]
include_path = 'ipp/include'
Copy link
Contributor

Choose a reason for hiding this comment

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

While we're at it. Use os.path.join all the way, i.e.
lib_path = [os.path.join('ipp', 'lib', self.arch), os.path.join('lib', self.arch)]
include_path = os.path.join('ipp', 'include')

'files': ['ipp/lib/intel64/libipp%s' % y for x in ipp_libs for y in ['%s.a' % x, '%s.%s' % (x, shlib_ext)]],
'files': [
os.path.join('ipp', 'lib', 'intel64', 'libipp%s') % y for x in ipp_libs
for y in ['%s.a' % x, '%s.%s' % (x, shlib_ext)]

Choose a reason for hiding this comment

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

continuation line unaligned for hanging indent

os.path.join('ipp', 'bin'),
os.path.join('ipp', 'include'),
os.path.join('ipp', 'tools', 'intel64')
]
Copy link
Contributor

Choose a reason for hiding this comment

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

I would write this slightly different. Something like
dirs = []
ipp_dir_list = ['bin', 'include', os.path.join('tools', 'intel64')]
if LooseVersion ...
add the version specific ones to dirs and ipp_dir_list
dirs.extend(os.path.join('ipp', d)) for d in ipp_dir_list
(At least i think it is extend one should use, but i usually never get that right)

@@ -82,21 +83,26 @@ def sanity_check_step(self):
"""Custom sanity check paths for IPP."""
shlib_ext = get_shared_lib_ext()

dirs = [ os.path.join('ipp', x) for x in ['bin', 'include', os.path.join('tools', 'intel64')]]

Choose a reason for hiding this comment

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

whitespace after '['

@damianam damianam added this to the 3.7.0 milestone Aug 29, 2018
@akesandgren akesandgren dismissed their stale review August 30, 2018 06:00

Agreement reached about removing NLSPATH

Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

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

LGTM

@akesandgren akesandgren merged commit ea249ba into easybuilders:develop Aug 30, 2018
@boegel boegel changed the title Ipp drop useless definition of NLSPATH in IntelBase, fix ipp library paths Sep 2, 2018
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.

None yet

3 participants