{"title":"循环然后任务:杂交OpenMP并行性,以提高大陆规模最长流路径计算的负载平衡和内存效率","authors":"Huidae Cho","doi":"10.1016/j.envsoft.2025.106630","DOIUrl":null,"url":null,"abstract":"<div><div>This study presents a new OpenMP parallel algorithm for Memory-Efficient Longest Flow Path (MELFP) computation for large-scale hydrologic analysis. MELFP hybridizes loop-based and task-based parallelism to improve load balancing and eliminates intermediate read-write matrices to optimize memory usage. Its performance remained insensitive to the threshold parameter for switching from looping to tasking. Compared to the benchmark algorithm, MELFP achieved a 66<!--> <!-->% reduction in computation time while increasing CPU utilization by 33<!--> <!-->%. Its 79<!--> <!-->% lower peak memory usage enables processing larger datasets. These results suggest that MELFP is a fast and memory-efficient solution for longest flow path computations across a large number of watersheds, particularly in high-performance computing environments where rapid execution is prioritized over lower CPU utilization. MELFP’s additional ability to compute longest flow paths for individual subwatersheds provides added benefits for detailed and localized hydrologic modeling.</div></div>","PeriodicalId":310,"journal":{"name":"Environmental Modelling & Software","volume":"193 ","pages":"Article 106630"},"PeriodicalIF":4.6000,"publicationDate":"2025-07-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Loop then task: Hybridizing OpenMP parallelism to improve load balancing and memory efficiency in continental-scale longest flow path computation\",\"authors\":\"Huidae Cho\",\"doi\":\"10.1016/j.envsoft.2025.106630\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>This study presents a new OpenMP parallel algorithm for Memory-Efficient Longest Flow Path (MELFP) computation for large-scale hydrologic analysis. MELFP hybridizes loop-based and task-based parallelism to improve load balancing and eliminates intermediate read-write matrices to optimize memory usage. Its performance remained insensitive to the threshold parameter for switching from looping to tasking. Compared to the benchmark algorithm, MELFP achieved a 66<!--> <!-->% reduction in computation time while increasing CPU utilization by 33<!--> <!-->%. Its 79<!--> <!-->% lower peak memory usage enables processing larger datasets. These results suggest that MELFP is a fast and memory-efficient solution for longest flow path computations across a large number of watersheds, particularly in high-performance computing environments where rapid execution is prioritized over lower CPU utilization. MELFP’s additional ability to compute longest flow paths for individual subwatersheds provides added benefits for detailed and localized hydrologic modeling.</div></div>\",\"PeriodicalId\":310,\"journal\":{\"name\":\"Environmental Modelling & Software\",\"volume\":\"193 \",\"pages\":\"Article 106630\"},\"PeriodicalIF\":4.6000,\"publicationDate\":\"2025-07-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Environmental Modelling & Software\",\"FirstCategoryId\":\"93\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S1364815225003147\",\"RegionNum\":2,\"RegionCategory\":\"环境科学与生态学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Environmental Modelling & Software","FirstCategoryId":"93","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1364815225003147","RegionNum":2,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
Loop then task: Hybridizing OpenMP parallelism to improve load balancing and memory efficiency in continental-scale longest flow path computation
This study presents a new OpenMP parallel algorithm for Memory-Efficient Longest Flow Path (MELFP) computation for large-scale hydrologic analysis. MELFP hybridizes loop-based and task-based parallelism to improve load balancing and eliminates intermediate read-write matrices to optimize memory usage. Its performance remained insensitive to the threshold parameter for switching from looping to tasking. Compared to the benchmark algorithm, MELFP achieved a 66 % reduction in computation time while increasing CPU utilization by 33 %. Its 79 % lower peak memory usage enables processing larger datasets. These results suggest that MELFP is a fast and memory-efficient solution for longest flow path computations across a large number of watersheds, particularly in high-performance computing environments where rapid execution is prioritized over lower CPU utilization. MELFP’s additional ability to compute longest flow paths for individual subwatersheds provides added benefits for detailed and localized hydrologic modeling.
期刊介绍:
Environmental Modelling & Software publishes contributions, in the form of research articles, reviews and short communications, on recent advances in environmental modelling and/or software. The aim is to improve our capacity to represent, understand, predict or manage the behaviour of environmental systems at all practical scales, and to communicate those improvements to a wide scientific and professional audience.