缓存无关稀疏多项式分解使用漏斗堆

Fatima K. Abu Salem, Khalil El-Harake, Karl Gemayel
{"title":"缓存无关稀疏多项式分解使用漏斗堆","authors":"Fatima K. Abu Salem, Khalil El-Harake, Karl Gemayel","doi":"10.1145/2790282.2790283","DOIUrl":null,"url":null,"abstract":"In [2] we demonstrated that overlapping sums of products arising in the Hensel lifting phase of the polytope factoring method using a Max priority queue reduces expression swell and achieves asymptotic reductions in the Hensel lifting phase. In this paper, we propose to implement the priority queue as a Funnel Heap, when polynomials are in sparse distributed representation. Funnel Heap is a cache oblivious priority queue with optimal cache complexity, and we additionally tailor several of its features to the polynomial arithmetic required. Funnel Heap is able to identify equal order monomials \"for free\" whilst it re-organises itself over sufficiently many updates. We adopt a batched mode for chaining equal order monomials that gets overlapped with Funnel Heap's mechanism for emptying its in-core components. We also develop a customised analysis of performance that captures the overhead due to chaining in terms of the fraction of reduction and replication observed in the queue, and get that batched chaining is sensitive to the number of distinct monomials residing in the queue, as opposed to the number of replicas chained. For sufficiently large input size with respect to the cache-line length, batched chaining that is \"search free\" leads to an implementation of Hensel lifting that exhibits optimal cache complexity in the number of replicas found in the queue. Additionally, we obtain an order of magnitude reduction in space, as well as a reduction in the logarithmic factor in work and cache complexity, when comparing our adaptation against [2]. Also, the resulting Hensel lifting process is cache-oblivious. Our benchmarks of the polytope method using Funnel Heap with chaining demonstrate dramatic improvements over the regular binary heap as well as MAGMA, where the latter fails to process sufficiently high degree but sparse polynomial factorisations.","PeriodicalId":384227,"journal":{"name":"Proceedings of the 2015 International Workshop on Parallel Symbolic Computation","volume":"45 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2015-07-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Cache oblivious sparse polynomial factoring using the funnel heap\",\"authors\":\"Fatima K. Abu Salem, Khalil El-Harake, Karl Gemayel\",\"doi\":\"10.1145/2790282.2790283\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In [2] we demonstrated that overlapping sums of products arising in the Hensel lifting phase of the polytope factoring method using a Max priority queue reduces expression swell and achieves asymptotic reductions in the Hensel lifting phase. In this paper, we propose to implement the priority queue as a Funnel Heap, when polynomials are in sparse distributed representation. Funnel Heap is a cache oblivious priority queue with optimal cache complexity, and we additionally tailor several of its features to the polynomial arithmetic required. Funnel Heap is able to identify equal order monomials \\\"for free\\\" whilst it re-organises itself over sufficiently many updates. We adopt a batched mode for chaining equal order monomials that gets overlapped with Funnel Heap's mechanism for emptying its in-core components. We also develop a customised analysis of performance that captures the overhead due to chaining in terms of the fraction of reduction and replication observed in the queue, and get that batched chaining is sensitive to the number of distinct monomials residing in the queue, as opposed to the number of replicas chained. For sufficiently large input size with respect to the cache-line length, batched chaining that is \\\"search free\\\" leads to an implementation of Hensel lifting that exhibits optimal cache complexity in the number of replicas found in the queue. Additionally, we obtain an order of magnitude reduction in space, as well as a reduction in the logarithmic factor in work and cache complexity, when comparing our adaptation against [2]. Also, the resulting Hensel lifting process is cache-oblivious. Our benchmarks of the polytope method using Funnel Heap with chaining demonstrate dramatic improvements over the regular binary heap as well as MAGMA, where the latter fails to process sufficiently high degree but sparse polynomial factorisations.\",\"PeriodicalId\":384227,\"journal\":{\"name\":\"Proceedings of the 2015 International Workshop on Parallel Symbolic Computation\",\"volume\":\"45 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2015-07-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 2015 International Workshop on Parallel Symbolic Computation\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/2790282.2790283\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2015 International Workshop on Parallel Symbolic Computation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2790282.2790283","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

在[2]中,我们证明了在使用最大优先队列的多面体分解方法的Hensel提升阶段产生的乘积的重叠和减少了表达式膨胀,并在Hensel提升阶段实现了渐近约简。在本文中,当多项式是稀疏分布表示时,我们提出将优先级队列实现为漏斗堆。漏斗堆是一个缓存无关的优先级队列,具有最佳的缓存复杂度,我们还根据所需的多项式算法定制了它的几个特征。漏斗堆能够“免费”识别等次单项式,同时它可以在足够多的更新中重新组织自己。我们采用批处理模式来链接等阶单项,这与漏斗堆清空其核心组件的机制重叠。我们还开发了一个定制的性能分析,根据在队列中观察到的减少和复制的比例来捕获由于链接而产生的开销,并得到批处理链接对驻留在队列中的不同单体的数量敏感,而不是链接的副本的数量。对于相对于缓存行长度足够大的输入大小,“不需要搜索”的批处理链将导致Hensel提升的实现,该实现在队列中找到的副本数量上显示出最佳的缓存复杂性。此外,当将我们的适应与[2]进行比较时,我们在空间上得到了一个数量级的减少,以及在工作和缓存复杂性方面的对数因子的减少。而且,产生的Hensel提升过程是缓参无关的。我们使用链链漏斗堆的多体方法的基准测试表明,与常规二进制堆和MAGMA相比,该方法有了显着的改进,后者无法处理足够高程度但稀疏的多项式分解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Cache oblivious sparse polynomial factoring using the funnel heap
In [2] we demonstrated that overlapping sums of products arising in the Hensel lifting phase of the polytope factoring method using a Max priority queue reduces expression swell and achieves asymptotic reductions in the Hensel lifting phase. In this paper, we propose to implement the priority queue as a Funnel Heap, when polynomials are in sparse distributed representation. Funnel Heap is a cache oblivious priority queue with optimal cache complexity, and we additionally tailor several of its features to the polynomial arithmetic required. Funnel Heap is able to identify equal order monomials "for free" whilst it re-organises itself over sufficiently many updates. We adopt a batched mode for chaining equal order monomials that gets overlapped with Funnel Heap's mechanism for emptying its in-core components. We also develop a customised analysis of performance that captures the overhead due to chaining in terms of the fraction of reduction and replication observed in the queue, and get that batched chaining is sensitive to the number of distinct monomials residing in the queue, as opposed to the number of replicas chained. For sufficiently large input size with respect to the cache-line length, batched chaining that is "search free" leads to an implementation of Hensel lifting that exhibits optimal cache complexity in the number of replicas found in the queue. Additionally, we obtain an order of magnitude reduction in space, as well as a reduction in the logarithmic factor in work and cache complexity, when comparing our adaptation against [2]. Also, the resulting Hensel lifting process is cache-oblivious. Our benchmarks of the polytope method using Funnel Heap with chaining demonstrate dramatic improvements over the regular binary heap as well as MAGMA, where the latter fails to process sufficiently high degree but sparse polynomial factorisations.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
A hybrid symbolic-numeric approach to exceptional sets of generically zero-dimensional systems Parallel sparse multivariate polynomial division 3-ranks for strongly regular graphs Direct solution of the (11,9,8)-MinRank problem by the block Wiedemann algorithm in magma with a tesla GPU A compact parallel implementation of F4
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1