[pythran] Re: First test on macOS: Pb with OMPg

  • From: serge guelton <serge.guelton@xxxxxxxxxxxxxxxxxxx>
  • To: pythran@xxxxxxxxxxxxx
  • Date: Mon, 10 Dec 2018 14:07:35 +0100

On Mon, Dec 10, 2018 at 11:55:03AM +0100, Olivier Borderies wrote:

Ok, looking forward to jedi master's advice ! :)

By the way, I installed and ran the same project on (1) another macOS system,
my laptop, and (2) a Google Cloud 'HiCPU' Ubuntu VM. I added the setup 
commands
in the same repo under 'gcp_commands.sh'. It is quite simple in fact. I wanted
to compare the perfs: Added the result at the bottom of the README.

A few feedbacks:

you're pointing at an obsolete pythran.cfg as base reference which leads to a 
few unnecessary lines. It's usually not needed to customize all fields, only 
the one you change. In your case

    [compiler]
    cflags=-std=c++11 -fno-math-errno -w -I/usr/local/opt/llvm/include # not 
quite sure why you need that though
    ldflags=-L/usr/local/opt/llvm/lib # added
    CC=/usr/local/opt/llvm/bin/clang # added
    CXX=/usr/local/opt/llvm/bin/clang++ # added

should be enough

Concerning your #pythran export, a quick look at the call site makes me think 
you could use a numpy array instead of a list, thus saving extra conversion 
time.
I'm curious about the openmp crash... I'll try to reproduce it on Linux.

Other related posts: