From: Erik Lindahl <erik@theophys.kth.se>
Subject: Re: Force calculation with neighbourlist
Date: Mon, 8 Mar 1999 10:08:35 +0100 (MET) [thread overview]
Message-ID: <199903080857.JAA07736@medea.theophys.kth.se> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
Hi,
Thanks for all the input.
I've done some test and it seems like vectorizing sqrt is
the way to go.
I'll probably have a try at rewriting it in assembly too -
are there any good/bad things to consider ;-)
For example, it seems like a good idea to unroll the loop
by treating 4 or so elements in each round. But if there
are not enough registers to do this, what's the best alternative:
1) Only treat 2 elements in each round
2) Use the stack
3) Split it in several loops
(i.e. first do 1/sqrt, then update forces)
The code will also make use of a table that is quite a bit larger than
the one in Goto's implementation - is this a good idea or will it
just trash the cache by competing with other data?
(Are there any things to think of to avoid cache trashing in assembly code?)
Regards,
Erik
---------------------------------------------------------------------
Erik Lindahl, MSc erik@theophys.kth.se
Theoretical Physics, Royal Institute of Technology, STOCKHOLM, SWEDEN
Phone: +46 8 7907172 Fax: +46 8 104879
next reply other threads:[~1999-03-08 9:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-08 9:08 Erik Lindahl [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-03-04 19:43 Force calculation with neighbourlist Erik Lindahl
1999-03-04 21:04 ` Joachim Wesner
1999-03-04 21:42 ` Joachim Wesner
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox