TCE-IP

From HPCRL Wiki
(Difference between revisions)
Jump to: navigation, search
(KgBQOrSDtxO)
 
(908 intermediate revisions by 4 users not shown)
Line 1: Line 1:
http://velicolev6.fizwig.com/ clear liquid diet
+
=== Introduction ===
http://fredee47.sitebooth.com/ chinese food culture
+
The IP-TCE library is a set of C functions designed to provide
http://fredie67.phreesite.com/ banco popular online
+
high-performance array index permutation (index sorting), an important
http://drive45.yourfreehosting.net/ define popular culture
+
group of kernels used in many scientific applications and compilation
http://kenzo670.110mb.com/ weather forecast for chicago illinois
+
techniques. The generation of the library code combines analytical and
http://drive04.700megs.com/ baby names and meanings
+
empirical approaches. The details of how to generate the efficient 2-D IP
http://grego76.mycyberway.com/ avatar book chapter 17
+
(Matrix Transposition) code can be found in [1]. For high-dimensional arrays,
http://velicolev6.fizwig.com/what-is-a-liquid-diet.html liquid diet &
+
with challenges such as high indexing costs and short dimensions, we employ
http://fredee47.sitebooth.com/african-food-and-culture.html food culture and religion
+
optimizations such as restricting code versions, using one-level tiling and
http://fredie67.phreesite.com/banco-popular-rep.html banco popular home
+
generating indexing code to achieve high performance without code size
http://drive45.yourfreehosting.net/popular-culture-review.html study of popular culture
+
explosion.
http://kenzo670.110mb.com/chicago-weather-7-day-forecast.html chicago weather in october
+
 
http://drive04.700megs.com/black-ghetto-baby-names.html top ten baby names
+
The source code we provide does index permutation on 2-D,4-D and 6-D
http://grego76.mycyberway.com/watch-avatar-book-3-chapter-16.html avatar book 3 chapter 21
+
64-bit floating point arrays on IA-32 machines. Except for the 2-D functions that
http://velicolev6.fizwig.com/what-is-a-clear-liquid-diet.html liquid diet com
+
have more complicated optimizations than the others, the library employs SSE2
http://fredee47.sitebooth.com/food-culture-museum.html and culture of food
+
instructions when the fastest varying dimensions of source and destination
http://fredie67.phreesite.com/banco-popular-music.html banco popular contact
+
arrays are multiples of vector sizes in elements, otherwise a scalar version
http://drive45.yourfreehosting.net/john-fiske-understanding-popular-culture.html popular culture no longer
+
is chosen. The user should be able to modify our code to get IP code working for
http://kenzo670.110mb.com/www-chicago-weather.html chicago weather advisory
+
other dimension numbers.
http://drive04.700megs.com/trendy-baby-names.html names of baby
+
 
http://grego76.mycyberway.com/avatar-book-3-chapter-14-boiling-rock.html avatar book 3 chapter 01
+
The IP-TCE library implements two variants of index permutation. One variant
http://velicolev6.fizwig.com/liquid-diet-side.html food for liquid diet
+
implements B = factor * Permute(A, permutation) and the other one is the
http://fredee47.sitebooth.com/bahrain-culture-food.html food and culture tour
+
accumulative version B = B + factor * Permute(A, permutation). Doing so makes
http://fredie67.phreesite.com/banco-popular-check.html banco popular annual
+
our code compatible with the index permutation routines in nwchem/tce. We have
http://drive45.yourfreehosting.net/current-popular-culture.html far west popular culture
+
been able to plug our code into nwchem/tce and obtained overall performance
http://kenzo670.110mb.com/chicago-weather-c.html chicago weather video
+
improvements ranging from 74% to 253% with different methods and inputs.
http://drive04.700megs.com/great-baby-names.html baby name poll
+
 
http://grego76.mycyberway.com/avatar-316-book-3-chapter-16.html avatar book 3 chapter 54
+
=== Compilation ===
http://fredee47.sitebooth.com/food-culture-religion.html hawaii culture food
+
The library code can be compiled by either the Intel C compiler or the GNU C
http://fredie67.phreesite.com/banco-popular-north-american.html banco popular north american
+
compiler. We used icc 10.1 and gcc 4.1.2 when testing the code. If other
http://drive45.yourfreehosting.net/latino-a-popular-culture.html popular culture websites
+
compilers such as pgcc is used, the user is responsible for finding the
http://kenzo670.110mb.com/chicago-weather-2008.html weather happy chicago
+
alignment directives used by the compiler and changing the library code
http://drive04.700megs.com/american-baby-name.html baby name a
+
correspondingly.
http://grego76.mycyberway.com/avatar-book-3-chapter-14-airing.html avatar book one chapter 5
+
 
 +
=== Library Usage ===
 +
The interface of the IP-TCE library is compatible with the index permutation
 +
routines in nwchem/tce and is mainly for Fortran used. For example,
 +
the prototype of the 4-D non-accumulative permutation routine is:
 +
 
 +
                  tce_sort_4_(double* unsorted,double* sorted,
 +
                              int* a_in, int* b_in, int* c_in, int* d_in,
 +
                              int* i_in, int* j_in, int* k_in, int* l_in,
 +
                              double* factor_in)
 +
 
 +
Where all the arguments are pointers and function names are in the lowercase
 +
and end with "_". If needed,  the user can write a wrapper or directly modify
 +
the function (which is actually a wrapper to the SIMD and scalar IP functions)
 +
to obtain a desired interface.
 +
 
 +
=== Contact Info ===
 +
Please contact Qingda Lu(luq@cse.ohio-state.edu) for questions.
 +
 
 +
=== Reference ===
 +
[1] Qingda Lu, Sriram Krishnamoorthy, P. Sadayappan: Combining analytical and
 +
empirical approaches in tuning matrix transposition. 15th International
 +
Conference on Parallel Architecture and Compilation Techniques(PACT 2006):233-242

Latest revision as of 23:34, 20 February 2009

Contents

Introduction

The IP-TCE library is a set of C functions designed to provide high-performance array index permutation (index sorting), an important group of kernels used in many scientific applications and compilation techniques. The generation of the library code combines analytical and empirical approaches. The details of how to generate the efficient 2-D IP (Matrix Transposition) code can be found in [1]. For high-dimensional arrays, with challenges such as high indexing costs and short dimensions, we employ optimizations such as restricting code versions, using one-level tiling and generating indexing code to achieve high performance without code size explosion.

The source code we provide does index permutation on 2-D,4-D and 6-D 64-bit floating point arrays on IA-32 machines. Except for the 2-D functions that have more complicated optimizations than the others, the library employs SSE2 instructions when the fastest varying dimensions of source and destination arrays are multiples of vector sizes in elements, otherwise a scalar version is chosen. The user should be able to modify our code to get IP code working for other dimension numbers.

The IP-TCE library implements two variants of index permutation. One variant implements B = factor * Permute(A, permutation) and the other one is the accumulative version B = B + factor * Permute(A, permutation). Doing so makes our code compatible with the index permutation routines in nwchem/tce. We have been able to plug our code into nwchem/tce and obtained overall performance improvements ranging from 74% to 253% with different methods and inputs.

Compilation

The library code can be compiled by either the Intel C compiler or the GNU C compiler. We used icc 10.1 and gcc 4.1.2 when testing the code. If other compilers such as pgcc is used, the user is responsible for finding the alignment directives used by the compiler and changing the library code correspondingly.

Library Usage

The interface of the IP-TCE library is compatible with the index permutation routines in nwchem/tce and is mainly for Fortran used. For example, the prototype of the 4-D non-accumulative permutation routine is:

                  tce_sort_4_(double* unsorted,double* sorted,
                              int* a_in, int* b_in, int* c_in, int* d_in,
                              int* i_in, int* j_in, int* k_in, int* l_in,
                              double* factor_in)

Where all the arguments are pointers and function names are in the lowercase and end with "_". If needed, the user can write a wrapper or directly modify the function (which is actually a wrapper to the SIMD and scalar IP functions) to obtain a desired interface.

Contact Info

Please contact Qingda Lu(luq@cse.ohio-state.edu) for questions.

Reference

[1] Qingda Lu, Sriram Krishnamoorthy, P. Sadayappan: Combining analytical and empirical approaches in tuning matrix transposition. 15th International Conference on Parallel Architecture and Compilation Techniques(PACT 2006):233-242