Skip to content

implement get_cpu_features function in systemtools#2074

Merged
boegel merged 4 commits intoeasybuilders:developfrom
boegel:get_cpu_features
Jan 6, 2017
Merged

implement get_cpu_features function in systemtools#2074
boegel merged 4 commits intoeasybuilders:developfrom
boegel:get_cpu_features

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Jan 5, 2017

This could be used to implement an FFTW easyblock that auto-detects which configure flags can be specified to optimise performance (e.g. --enable-avx, --enable-avx2, etc.), rather than hardcoding configure flags in the FFTW easyconfigs (which is an issue already, since --enable-sse2 doesn't work on Linux/POWER for example).

@boegel boegel added this to the 3.1.0 milestone Jan 5, 2017
@boegel boegel requested a review from JensTimmerman January 5, 2017 16:03
Copy link
Copy Markdown

@JensTimmerman JensTimmerman left a comment

Choose a reason for hiding this comment

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

this function isn't used anywhere?

Comment thread easybuild/tools/systemtools.py Outdated
_log.debug("Trying to determine CPU features on Darwin via cmd '%s'", cmd)
out, ec = run_cmd(cmd, force_in_dry_run=True)
if ec == 0:
# returns clock frequency in cycles/sec, but we want MHz
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this doesn't look right at all

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

woops, will fix, thanks

@JensTimmerman
Copy link
Copy Markdown

lgtm

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jan 6, 2017

Thanks for the review @JensTimmerman!

@boegel boegel merged commit f11cfe5 into easybuilders:develop Jan 6, 2017
@boegel boegel deleted the get_cpu_features branch January 6, 2017 19:47
boegel added a commit to boegel/easybuild-framework that referenced this pull request Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants