Optimization of Smooth Particle Hydrodynamics

By Promotion | Published on Jun 19 2017
Optimization of Smooth Particle Hydrodynamics

P-Gadget3 is a computational astrophysics tool. Scientists use it to simulate self-gravitating systems with added complex gas physics.

The problems that this code helps to solve include the formation of cosmological large-scale structures, clusters and galaxies,  star formation, and metal enrichment. To model the physics of gas, P-Gadget3 uses smooth particle hydrodynamics (SPH). This mesh-free computational method approximates parcels of gas or fluid as particles. The code scales to hundreds of thousands of cores and has a considerable user base.

Recently we learned about the performance optimization work on the SPH solver in P-Gadget 3. It was carried out by Dr. Fabio Baruffa, a Senior HPC Application Specialist at the Leibniz Supercomputing Centre.

Dr. Baruffa shared his methods of work:

- the isolation of a  kernel code with serialization
- the usage of Intel® VTune™ to spot bottlenecks,  and
- the principle of minimally invasive approach.

He also demonstrated  performance optimization techniques used in this project, such as

- transformation to lockless loops and
- improved vectorization with the help of runtime conversion of an array of structures (AoS) to a  structure of arrays (SoA).

The result of the optimization efforts was a tremendous performance gain. On Intel® Xeon® processors, the optimized SPH kernel works 2.6-4.7x faster. On 68-core Intel® Xeon Phi™ processors, the speedup is 20x.

Dr. Baruffa’s 1-hour presentation was the first of the Modern Code Contributed Talks (MC² Series). Its recording and slides are available at colfaxresearch.com/mc2-001

For more such intel IoT resources and tools from Intel, please visit the Intel® Developer Zone

Source:https://software.intel.com/en-us/blogs/2017/05/09/optimization-of-smooth-particle-hydrodynamics

Videos

Google reportedly working on Brillo OS for IoTs
logo
Promotion

Digit caters to the largest community of tech buyers, users and enthusiasts in India. The all new Digit in continues the legacy of Thinkdigit.com as one of the largest portals in India committed to technology users and buyers. Digit is also one of the most trusted names when it comes to technology reviews and buying advice and is home to the Digit Test Lab, India's most proficient center for testing and reviewing technology products.

We are about leadership-the 9.9 kind! Building a leading media company out of India.And,grooming new leaders for this promising industry.