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

build multithreaded version of ATLAS #9151

Closed
sagetrac-kilian mannequin opened this issue Jun 5, 2010 · 4 comments
Closed

build multithreaded version of ATLAS #9151

sagetrac-kilian mannequin opened this issue Jun 5, 2010 · 4 comments

Comments

@sagetrac-kilian
Copy link
Mannequin

sagetrac-kilian mannequin commented Jun 5, 2010

Hi,

I noted that multi-threading in ATLAS is switched off by default (switch -t 0). I was wondering if it wouldn't be better to make a multi-threaded build the default, since it results in big performance increases on most modern computers.

I attached a patch that enables threading. It works fine for me on a multi-core Linux machine. I tried to make it work for single-core machines (for which atlas might turn of threading automatically) by testing for the presence of the threaded version of the BLAS library before running the make command that builds the shared atlas library. However I haven't tested it on a single-core machine.

Kilian

CC: @jdemeyer

Component: build

Keywords: ATLAS BLAS LAPACK multi-threading pthreads

Reviewer: Jean-Pierre Flori

Issue created by migration from https://trac.sagemath.org/ticket/9151

@sagetrac-kilian
Copy link
Mannequin Author

sagetrac-kilian mannequin commented Jun 5, 2010

Attachment: atlas_pthread.patch.gz

enables multi-threaded build in atlas-3.8.3.p12.spkg

@sagetrac-kilian
Copy link
Mannequin Author

sagetrac-kilian mannequin commented Jun 8, 2010

comment:1

Hi,

It would be great if this patch would make it into the next release. I tested it on Linux 32bit and 64bit, single and multi core, Intel and AMD. On the 8 core machine, it increased the speed of e.g. a matrix dot product about 4-fold, and it didn't break the single-threaded build on the one-core machine.

Kilian

@jpflori
Copy link

jpflori commented Apr 5, 2013

comment:2

Superseded by #10508.

@jpflori
Copy link

jpflori commented Apr 5, 2013

Reviewer: Jean-Pierre Flori

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants