FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
64 Bit Blog: Tweaking C for mesh-based physics code
AI
CHIPS 'N DIPS

Musings on Broadbus and Multicore.

by Mike Swaine

by
October 15, 2007

Tweaking C for mesh-based physics code

Jeff Keasler dropped me a line to let me know about a C language extension he's written for mesh-based physics coding. Stuff like finite differences.

He wrote this HPC extension in under 500 lines of ROSE code. The basic idea, he explained, is to "create a single schema file for your program that describes the topological realtionship among fields being used. The schema file is then used to help compile your C code written in 'vector' notation. The compiler takes the 'vector C' code and applies the schema to create either structs or arrays in your compiled code."

It's a C extension, so it'll work alongside your existing C code, and can generate up to a 2X performance improvement, Jeff says. At his website he provides some working examples to show how you use it.

That's a nice thing about being an editor: not all the unsolicited email is spam. Some of it is worth sharing.

Posted by Mike Swaine at 11:18 AM  Permalink




RECENT ENTRIES

January 2008
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    


BLOGROLL
 
INFO-LINK