ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] ATLAS vs BLAS performance
Date: Mon, 5 Jun 2006 02:26:30 +0400
Message-ID: <20060604222630.GB18120@localhost.localdomain> (raw)
In-Reply-To: <200606041804.54270.iadzhubey@rics.bwh.harvard.edu>

[-- Attachment #1: Type: text/plain, Size: 1805 bytes --]

On Sun, Jun 04, 2006 at 06:04:54PM -0400, Ivan Adzhubey wrote:
> On Sunday 04 June 2006 17:05, Alexey Tourbin wrote:
> > Я разобрался, как надо собирать ATLAS.
> > Вот предварительный benchmark.
> >
> > Fortran BLAS:
> > > mm <- matrix(rnorm(10^6), ncol = 10^3)
> > > system.time(crossprod(mm))
> >
> > [1] 1.572 0.004 1.580 0.000 0.000
> >
> > ATLAS w/ SSE2:
> > > mm <- matrix(rnorm(10^6), ncol = 10^3)
> > > system.time(crossprod(mm))
> >
> > [1] 0.344 0.020 0.369 0.000 0.000
> 
> А вот с GotoBLAS 1.2 (P4 2.8GHz, R 2.3.0):
> 
> > mm <- matrix(rnorm(10^6), ncol = 10^3)
> > system.time(crossprod(mm))
> [1] 0.232 0.012 0.270 0.000 0.000

model name      : AMD Athlon(tm) 64 Processor 3200+
cpu MHz         : 2050.186
cache size      : 512 KB

R-2.3.1

Похоже, что процессор у Вас помощнее.  Суть в том, что разница будет
если и заментной, то не значительной.  Учитывая то, что ATLAS -- это
free software, а GotoBLAS -- проприетарный софт, то агитирую за ATLAS. :)

Осталось только в сизиф это собрать, что непросто, потому что ATLAS
пытается всеми силами собираться под процессор хост-системы.  Я уже
понял, что там нужно отровать.  Пока идея такая: в /usr/lib собрать
библиотеки с generic-оптимизацией на основе пресетов от PII; а в
/usr/lib/sse2 собрать библиотеки с оптимизацией на основе пресетов
от P4SSE2.  По идее, ldconfig и/или ld-linux.so.2 смогут разрулить такую
ситуацию как надо, примерно так же, как в случае с /lib и /lib/i686.
Ну да это уже мои проблемы.

В общем, если это будет работать из коробки как надо и если по сравнению
с GotoBLAS разница будет не хуже, чем в полтора раза, тогда я буду
доволелен.  Потому что основной разрыв по сравнению с фортраном всё
равно ликвидирован, а 10-20% на практике редко что решают.

Посмотрим...

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

  reply	other threads:[~2006-06-04 22:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-04 21:05 Alexey Tourbin
2006-06-04 22:04 ` Ivan Adzhubey
2006-06-04 22:26   ` Alexey Tourbin [this message]
2006-06-05  1:17     ` Alexey Tourbin
2006-06-05  2:41       ` Alexey Tourbin
2006-06-05  4:22     ` Valery Pipin
2006-06-05  7:30       ` Alexey Tourbin
2006-06-05  7:45         ` Ivan Adzhubey
2006-06-05  6:19     ` Andrey Khavryuchenko
2006-06-05  7:50       ` Alexey Tourbin
2006-06-05  7:58         ` Andrey Khavryuchenko
2006-06-05 10:11         ` Alexey Tourbin
2006-06-06 11:14           ` Alexey Tourbin
2006-11-24 23:58             ` Alexey Tourbin
2006-06-05  7:53       ` Ivan Adzhubey
2006-06-05  7:57         ` Ivan Adzhubey
2006-06-05  9:36         ` Andrey Khavryuchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060604222630.GB18120@localhost.localdomain \
    --to=at@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git