Loop Chaining: A Programming Abstraction for Balancing Locality and Parallelism. Krieger, C D, Strout, M M, Olschanowsky, C, Stone, A, Guzik, S, Gao, X., Bertolli, C, Kelly, P H J, Mudalige, G, Van Straalen, B, & Williams, S In Parallel and Distributed Processing Symposium Workshops PhD Forum (IPDPSW), 2013 IEEE 27th International, pages 375--384, May, 2013.
abstract   bibtex   
There is a significant, established code base in the scientific computing community. Some of these codes have been parallelized already but are now encountering scalability issues due to poor data locality, inefficient data distributions, or load imbalance. In this work, we introduce a new abstraction called loop chaining in which a sequence of parallel and/or reduction loops that explicitly share data are grouped together into a chain. Once specified, a chain of loops can be viewed as a set of iterations under a partial ordering. This partial ordering is dictated by data dependencies that, as part of the abstraction, are exposed, thereby avoiding inter-procedural program analysis. Thus a loop chain is a partially ordered set of iterations that makes scheduling and determining data distributions across loops possible for a compiler and/or run-time system. The flexibility of being able to schedule across loops enables better management of the data locality and parallelism tradeoff. In this paper, we define the loop chaining concept and present three case studies using loop chains in scientific codes: the sparse matrix Jacobi benchmark, a domain-specific library, OP2, used in full applications with unstructured grids, and a domain-specific library, Chombo, used in full applications with structured grids. Preliminary results for the Jacobi benchmark show that a loop chain enabled optimization, full sparse tiling, results in a speedup of as much as 2.68x over a parallelized, blocked implementation on a multicore system with 40 cores.
@inproceedings{Krieger2013-iz,
  abstract = {There is a significant, established code base in the scientific
               computing community. Some of these codes have been parallelized
               already but are now encountering scalability issues due to poor
               data locality, inefficient data distributions, or load
               imbalance. In this work, we introduce a new abstraction called
               loop chaining in which a sequence of parallel and/or reduction
               loops that explicitly share data are grouped together into a
               chain. Once specified, a chain of loops can be viewed as a set
               of iterations under a partial ordering. This partial ordering is
               dictated by data dependencies that, as part of the abstraction,
               are exposed, thereby avoiding inter-procedural program analysis.
               Thus a loop chain is a partially ordered set of iterations that
               makes scheduling and determining data distributions across loops
               possible for a compiler and/or run-time system. The flexibility
               of being able to schedule across loops enables better management
               of the data locality and parallelism tradeoff. In this paper, we
               define the loop chaining concept and present three case studies
               using loop chains in scientific codes: the sparse matrix Jacobi
               benchmark, a domain-specific library, OP2, used in full
               applications with unstructured grids, and a domain-specific
               library, Chombo, used in full applications with structured
               grids. Preliminary results for the Jacobi benchmark show that a
               loop chain enabled optimization, full sparse tiling, results in
               a speedup of as much as 2.68x over a parallelized, blocked
               implementation on a multicore system with 40 cores.},
  added-at = {2016-01-04T14:19:55.000+0100},
  author = {Krieger, C D and Strout, M M and Olschanowsky, C and Stone, A and Guzik, S and Gao, Xinfeng and Bertolli, C and Kelly, P H J and Mudalige, G and Van Straalen, B and Williams, S},
  biburl = {http://www.bibsonomy.org/bibtex/27a60193d36f58264c7ac9311194b0a4d/christophv},
  booktitle = {Parallel and Distributed Processing Symposium Workshops {PhD}
               Forum ({IPDPSW)}, 2013 {IEEE} 27th International},
  interhash = {33586ad1f270d6a7b54695a8ecc3077e},
  intrahash = {7a60193d36f58264c7ac9311194b0a4d},
  keywords = {multicore_system loop_chaining data_dependencies code_base Jacobian_matrices domain_specific_library multiprocessing_systems Expose balancing_locality data_locality Vectors Sparse_matrices sparse_matrix_Jacobi_benchmark interprocedural_program_analysis data_distributions run_time_system parallelism parallel_processing Schedules structured_grids sparse_tiling programming_abstraction Optimization scientific_computing_community Parallel_processing Libraries partial_ordering load_imbalance},
  month = may,
  pages = {375--384},
  timestamp = {2016-01-04T14:22:08.000+0100},
  title = {Loop Chaining: A Programming Abstraction for Balancing Locality
               and Parallelism},
  year = 2013
}

Downloads: 0