Skip to content

Use prtconf to determine CPU type on AIX - #1868

Merged
martin-frbg merged 3 commits into
OpenMathLib:developfrom
martin-frbg:aix_cpuid
Nov 20, 2018
Merged

martin-frbg merged 3 commits into
OpenMathLib:developfrom
martin-frbg:aix_cpuid

Conversation

@martin-frbg

Copy link
Copy Markdown
Collaborator

for #1803

@ayappanec

Copy link
Copy Markdown
Contributor

Power 9 released recently. We can include that as well.

(already supported by the *BSD version)
@martin-frbg

Copy link
Copy Markdown
Collaborator Author

Good point, thanks. Mind you I have no way to test this.

@sbutcher sbutcher left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm not familiar with the code, but we have a POWER9 and it built successfully with these changes, however i noticed a couple of things i'd like to query.
Also, not in this PR, but perhaps should be: is line 183 also wrong by having 2 returns?
return return CPUTYPE_POWER8;

Comment thread cpuid_power.c Resolved
@sbutcher

Copy link
Copy Markdown

Thanks. Can confirm this builds for me on POWER9, and I was able to compile test_cblas_dgemm.c against this build.

@martin-frbg

Copy link
Copy Markdown
Collaborator Author

Thanks - and just to confirm, your resulting library has "power9" in its name now rather than the earlier "power5" (and the build used the POWER8 target) ?

@sbutcher

Copy link
Copy Markdown

We built using easybuild, and it produces

libopenblas_power8p-r0.3.4.dev.a
libopenblas_power8p-r0.3.4.dev.so

(no longer requires manually adding POWER8 target by hand)

Checkout from git and running make without options produces


  OS               ... Linux             
  Architecture     ... power               
  BINARY           ... 64bit                 
  C compiler       ... GCC  (command line : /usr/bin/gcc)
  Fortran compiler ... GFORTRAN  (command line : /usr/bin/gfortran)
  Library Name     ... libopenblas_power8p-r0.3.4.dev.a (Multi threaded; Max num-threads is 160)

@martin-frbg

Copy link
Copy Markdown
Collaborator Author

Great, thanks again.

@martin-frbg
martin-frbg merged commit 45c3c45 into OpenMathLib:develop Nov 20, 2018
@martin-frbg martin-frbg added this to the 0.3.4 milestone Nov 20, 2018
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.

3 participants