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
|