Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing numpy with multiprocessing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gary_uk
n00b
n00b


Joined: 18 Nov 2014
Posts: 3

PostPosted: Tue Nov 18, 2014 1:42 pm    Post subject: Installing numpy with multiprocessing Reply with quote

Hardware: Xeon E5-2640v3 X2
Sofware: Gentoo_AMD64

I was hoping to install Numpy and its LAPACK/BLAS dependencies in a way that makes the most of the many CPU cores. According to Scipy's website ( http://wiki.scipy.org/ParallelProgramming ), this is can be done by compiling with OpenMP turned on. I must admit I'm a little concerned about adding `-fopenmp' to the compiler flags in /etc/portage/make.conf and applying a general update using emerge. Since I'm new to Gentoo I was wondering about the following:

1. Is there a recommended way in Gentoo to install Numpy with OpenMP?
2. If not, is there a way I can tell Portage to use specific compiler flags only to Numpy and it dependencies?
3. If not, is my best solution compiling Numpy and its dependencies manually without Portage?

Thanks.
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2336

PostPosted: Thu Dec 04, 2014 5:17 pm    Post subject: Reply with quote

gary ...

I'm not sure about this specific use case but you might try the following:

Create an 'openmp.conf' in /etc/portage/env with whatever env you need to apply (ie, CFLAG changes)

/etc/portage/env/openmp.conf
Code:
CFLAGS="${CFLAGS} -fopenmp"

In /etc/portage/package.env/ create a file providing the information as to which packages should use this env ...

/etc/portage/package.env/openmp.env
Code:
dev-python/numpy openmp.conf
<category>/<package> openmp.conf

This env should be applied to these packages on re-merge.

HTH & best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum