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
{"_id":"FJYd5c3otWEtpLH4e","bibbaseid":"krieger-strout-olschanowsky-stone-guzik-gao-bertolli-kelly-etal-loopchainingaprogrammingabstractionforbalancinglocalityandparallelism-2013","downloads":0,"creationDate":"2016-01-08T22:33:15.018Z","title":"Loop Chaining: A Programming Abstraction for Balancing Locality and Parallelism","author_short":["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"],"year":2013,"bibtype":"inproceedings","biburl":"http://www.bibsonomy.org/bib/author/john m peloquin?items=1000","bibdata":{"bibtype":"inproceedings","type":"inproceedings","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":[{"propositions":[],"lastnames":["Krieger"],"firstnames":["C","D"],"suffixes":[]},{"propositions":[],"lastnames":["Strout"],"firstnames":["M","M"],"suffixes":[]},{"propositions":[],"lastnames":["Olschanowsky"],"firstnames":["C"],"suffixes":[]},{"propositions":[],"lastnames":["Stone"],"firstnames":["A"],"suffixes":[]},{"propositions":[],"lastnames":["Guzik"],"firstnames":["S"],"suffixes":[]},{"propositions":[],"lastnames":["Gao"],"firstnames":["Xinfeng"],"suffixes":[]},{"propositions":[],"lastnames":["Bertolli"],"firstnames":["C"],"suffixes":[]},{"propositions":[],"lastnames":["Kelly"],"firstnames":["P","H","J"],"suffixes":[]},{"propositions":[],"lastnames":["Mudalige"],"firstnames":["G"],"suffixes":[]},{"propositions":[],"lastnames":["Van","Straalen"],"firstnames":["B"],"suffixes":[]},{"propositions":[],"lastnames":["Williams"],"firstnames":["S"],"suffixes":[]}],"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","bibtex":"@inproceedings{Krieger2013-iz,\n abstract = {There is a significant, established code base in the scientific\n computing community. Some of these codes have been parallelized\n already but are now encountering scalability issues due to poor\n data locality, inefficient data distributions, or load\n imbalance. In this work, we introduce a new abstraction called\n loop chaining in which a sequence of parallel and/or reduction\n loops that explicitly share data are grouped together into a\n chain. Once specified, a chain of loops can be viewed as a set\n of iterations under a partial ordering. This partial ordering is\n dictated by data dependencies that, as part of the abstraction,\n are exposed, thereby avoiding inter-procedural program analysis.\n Thus a loop chain is a partially ordered set of iterations that\n makes scheduling and determining data distributions across loops\n possible for a compiler and/or run-time system. The flexibility\n of being able to schedule across loops enables better management\n of the data locality and parallelism tradeoff. In this paper, we\n define the loop chaining concept and present three case studies\n using loop chains in scientific codes: the sparse matrix Jacobi\n benchmark, a domain-specific library, OP2, used in full\n applications with unstructured grids, and a domain-specific\n library, Chombo, used in full applications with structured\n grids. Preliminary results for the Jacobi benchmark show that a\n loop chain enabled optimization, full sparse tiling, results in\n a speedup of as much as 2.68x over a parallelized, blocked\n implementation on a multicore system with 40 cores.},\n added-at = {2016-01-04T14:19:55.000+0100},\n 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},\n biburl = {http://www.bibsonomy.org/bibtex/27a60193d36f58264c7ac9311194b0a4d/christophv},\n booktitle = {Parallel and Distributed Processing Symposium Workshops {PhD}\n Forum ({IPDPSW)}, 2013 {IEEE} 27th International},\n interhash = {33586ad1f270d6a7b54695a8ecc3077e},\n intrahash = {7a60193d36f58264c7ac9311194b0a4d},\n 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},\n month = may,\n pages = {375--384},\n timestamp = {2016-01-04T14:22:08.000+0100},\n title = {Loop Chaining: A Programming Abstraction for Balancing Locality\n and Parallelism},\n year = 2013\n}\n\n","author_short":["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"],"key":"Krieger2013-iz","id":"Krieger2013-iz","bibbaseid":"krieger-strout-olschanowsky-stone-guzik-gao-bertolli-kelly-etal-loopchainingaprogrammingabstractionforbalancinglocalityandparallelism-2013","role":"author","urls":{},"keyword":["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"],"downloads":0},"search_terms":["loop","chaining","programming","abstraction","balancing","locality","parallelism","krieger","strout","olschanowsky","stone","guzik","gao","bertolli","kelly","mudalige","van straalen","williams"],"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"],"authorIDs":[],"dataSources":["7iBjTDWSdK27C35dP"]}