2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)最新文献

筛选
英文 中文
Unified Compilation for Lossless Compression and Sparse Computing 无损压缩与稀疏计算的统一编译
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741282
D. Donenfeld, Stephen Chou, S. Amarasinghe
{"title":"Unified Compilation for Lossless Compression and Sparse Computing","authors":"D. Donenfeld, Stephen Chou, S. Amarasinghe","doi":"10.1109/CGO53902.2022.9741282","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741282","url":null,"abstract":"This paper shows how to extend sparse tensor algebra compilers to support lossless compression techniques, including variants of run-length encoding and Lempel-Ziv compression. We develop new abstractions to represent losslessly compressed data as a generalized form of sparse tensors, with repetitions of values (which are compressed out in storage) represented by non-scalar, dynamic fill values. We then show how a compiler can use these abstractions to emit efficient code that computes on losslessly compressed data. By unifying lossless compression with sparse tensor algebra, our technique is able to generate code that computes with both losslessly compressed data and sparse data, as well as generate code that computes directly on compressed data without needing to first decompress it.Our evaluation shows our technique generates efficient image and video processing kernels that compute on losslessly compressed data. We find that the generated kernels are up to 16. 3× faster than equivalent dense kernels generated by TACO, a tensor algebra compiler, and up to 16. 1× faster than OpenCV, a widely used image processing library.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"4 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125024602","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
CGO 2022 Sponsors CGO 2022赞助商
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/cgo53902.2022.9741283
{"title":"CGO 2022 Sponsors","authors":"","doi":"10.1109/cgo53902.2022.9741283","DOIUrl":"https://doi.org/10.1109/cgo53902.2022.9741283","url":null,"abstract":"","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"46 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114938299","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Aggregate Update Problem for Multi-clocked Dataflow Languages 多时钟数据流语言的聚合更新问题
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741275
Hannes Kallwies, M. Leucker, Torben Scheffel, Malte Schmitz, Daniel Thoma
{"title":"Aggregate Update Problem for Multi-clocked Dataflow Languages","authors":"Hannes Kallwies, M. Leucker, Torben Scheffel, Malte Schmitz, Daniel Thoma","doi":"10.1109/CGO53902.2022.9741275","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741275","url":null,"abstract":"Dataflow languages have, as well as functional languages, immutable semantics, which is often implemented by copying values. A common compiler optimization known from functional languages involves analyzing which data structures can be modified in-place instead of copying them. This paper presents a novel algorithm to this so called Aggregate Update Problem for multi-clocked dataflow languages, i.e. those that allow streams to have events at disjoint timestamps, like e.g. Lucid, Lustre and Signal. Unrestricted multi-clocked languages require a static triggering analysis on how events and hence data values are read, written and replicated. We use TeSSLa as a generic stream transformation language with a small set of operators to develop our ideas. We implemented the solution in a TeSSLa compiler targeting the Java VM via Scala code generation which combines persistent data structures and mutable data structures for those data values which allow in-place editing. Our empirical evaluation shows considerable speedup for use cases where queues, maps or sets are dominant data structures.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123513630","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Welcome from the Program Chairs 欢迎各位节目主持人
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/cgo53902.2022.9741271
{"title":"Welcome from the Program Chairs","authors":"","doi":"10.1109/cgo53902.2022.9741271","DOIUrl":"https://doi.org/10.1109/cgo53902.2022.9741271","url":null,"abstract":"","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"24 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"133682094","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
M3V: Multi-modal Multi-view Context Embedding for Repair Operator Prediction M3V:多模态多视图上下文嵌入修复操作员预测
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741261
Xuezheng Xu, Xudong Wang, Jingling Xue
{"title":"M3V: Multi-modal Multi-view Context Embedding for Repair Operator Prediction","authors":"Xuezheng Xu, Xudong Wang, Jingling Xue","doi":"10.1109/CGO53902.2022.9741261","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741261","url":null,"abstract":"We address the problem of finding context embeddings for faulty locations to allow a learning-based APR tool to learn and predict the repair operators used at the faulty locations. We introduce M3V, a new multi-modal multi-view context embedding approach, which represents the context of a faulty location in two modalities: (1) texts that capture its signature in a natural language using the tree-LSTM model, and (2) graphs that capture its structure with two views, data and control dependences, using the GNN model. We then fuse these two modalities to learn a probabilistic classifier from correct code that, once given a faulty location, will produce a probabilistic distribution over a set of repair operators. We have evaluated M3V against the state-of-the-art context embedding approaches in repairing two common types of bugs in Java, null pointer exceptions (NPE) and index out of bounds (OOB). Trained and tested with 75673 code samples from 20 real-world projects, a learning-based APR tool can predict repair operators more effectively with our context embeddings in repairing NPE bugs, by achieving higher accuracies (11% – 41%) and higher F1 scores (16% – 143%). For OOB bugs, these improvements are 9% – 30% and 15% – 79%, respectively.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"36 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127761557","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
A Compiler for Sound Floating-Point Computations using Affine Arithmetic 一个使用仿射算法的声音浮点计算编译器
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741286
Joao Rivera, F. Franchetti, Markus Püschel
{"title":"A Compiler for Sound Floating-Point Computations using Affine Arithmetic","authors":"Joao Rivera, F. Franchetti, Markus Püschel","doi":"10.1109/CGO53902.2022.9741286","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741286","url":null,"abstract":"Floating-point arithmetic is extensively used in scientific and engineering applications to approximate real arithmetic. Unfortunately, floating-point arithmetic is not a sound implementation of real arithmetic, i.e., it may produce different results, does not provide error guarantees, and the errors can become arbitrarily large. In this paper, we introduce SafeGen, a source-to-source compiler that rewrites a given C program using floating-point arithmetic to an efficient C program performing the same computation soundly, i.e., it returns an error bound that is guaranteed to contain the correct result of the program if it had been executed in real arithmetic. Equivalently, it gives a precision certificate on the number of correct bits in the result. SafeGen uses affine arithmetic (AA) that keeps accuracy high compared to interval arithmetic by preserving linear correlations between variables. To mitigate its high cost, SafeGen combines a novel form of static analysis to identify these correlations with a flexible policy-based approach for their selection. SafeGen supports SIMD intrinsics in the input and can output SIMDoptimized code. Our results show that SafeGen-generated code is 30–70 times faster than manually rewritten code using AA libraries. Equivalently, SafeGen can offer many more bits of certified accuracy within a reduced time budget.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"304 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122124205","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
SPNC: An Open-Source MLIR-Based Compiler for Fast Sum-Product Network Inference on CPUs and GPUs SPNC:一个基于mlr的开源编译器,用于cpu和gpu上的快速和积网络推理
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741277
Lukas Sommer, Cristian Axenie, Andreas Koch
{"title":"SPNC: An Open-Source MLIR-Based Compiler for Fast Sum-Product Network Inference on CPUs and GPUs","authors":"Lukas Sommer, Cristian Axenie, Andreas Koch","doi":"10.1109/CGO53902.2022.9741277","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741277","url":null,"abstract":"Sum-Product Networks (SPNs) are an alternative to the widely used Neural Networks (NNs) for machine learning. SPNs can not only reason about (un)certainty by qualifying their output with a probability, they also allow fast (tractable) inference by having run-times that are just linear w.r.t. the network size.We present SPNC, the first tool flow for generating fast native code for SPN inference on both CPUs and GPUs,including the use of vectorized/SIMD execution. To this end, we add two SPN-specific dialects to the MLIR framework and discuss their lowering towards the execution targets.We evaluate our approach on two applications, for which we consider performance, scaling to very large SPNs, and compile vs execution-time trade-offs. In this manner, we achieve multiple orders of magnitude in speed-ups over existing SPN support libraries.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"2 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126525590","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 3
Optimizing GPU Deep Learning Operators with Polyhedral Scheduling Constraint Injection 基于多面体调度约束注入的GPU深度学习算子优化
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741260
C. Bastoul, Zhen Zhang, Harenome Razanajato, Nelson Lossing, Adilla Susungi, Javier de Juan, Etienne Filhol, Baptiste Jarry, Gianpietro Consolaro, Renwei Zhang
{"title":"Optimizing GPU Deep Learning Operators with Polyhedral Scheduling Constraint Injection","authors":"C. Bastoul, Zhen Zhang, Harenome Razanajato, Nelson Lossing, Adilla Susungi, Javier de Juan, Etienne Filhol, Baptiste Jarry, Gianpietro Consolaro, Renwei Zhang","doi":"10.1109/CGO53902.2022.9741260","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741260","url":null,"abstract":"Automatic parallel code generation from high-level abstractions such as those manipulated by artificial intelligence and deep learning (AI/DL) frameworks heavily rely on compiler techniques for automatic parallelization and optimization. Many recent advances rely on the polyhedral framework for this task because of its ability to model and to apply a wide range of loop transformations. However, modeling the complexity of the target architecture and of efficient cost models to decide about the best transformation is in general out of reach for a framework based on linear/affine constraints. In this work, we propose to decouple the polyhedral framework into linear and non-linear components. We introduce the constraint tree abstraction which may be generated by a non-linear optimizer and injected to the polyhedral optimization process to build better solutions. We present how to benefit from such a mechanism to generate efficient codes for GPU in the context of AI/DL operators. Our constraint injection allows to drive the polyhedral scheduler towards efficient solutions for load/store vectorization relying both on memory coalescing and vector types. We implemented our scheduler supporting constraint injection and our constraint construction system within a production AI/DL framework. Experiments on well known neural networks show the efficiency of this approach with respect to state-of-the-art polyhedral scheduling for GPU.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"12 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121806912","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
Solving PBQP-Based Register Allocation using Deep Reinforcement Learning 利用深度强化学习解决基于pbqp的寄存器分配
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741272
Minsu Kim, Jeong-Keun Park, Soo-Mook Moon
{"title":"Solving PBQP-Based Register Allocation using Deep Reinforcement Learning","authors":"Minsu Kim, Jeong-Keun Park, Soo-Mook Moon","doi":"10.1109/CGO53902.2022.9741272","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741272","url":null,"abstract":"Irregularly structured registers are hard to abstract and allocate. Partitioned Boolean quadratic programming (PBQP) is a useful abstraction to represent complex register constraints, even those in highly irregular processors of automated test equipment (ATE) of DRAM memory chips. The PBQP problem is NP-hard, requiring a heuristic solution. If no spill is allowed as in ATE, however, we have to enumerate more to find a solution rather than to approximate, since a spill means a total compilation failure. We propose solving the PBQP problem with deep reinforcement learning (Deep-RL), more specifically, a model-based approach using Monte Carlo tree search and deep neural network as used in Alphazero, a proven Deep-RL technology. Through elaborate training with random PBQP graphs, our Deep-RL solver could cut the search space sharply, making an enumeration-based solution more affordable. Furthermore, by employing backtracking with a proper coloring order, Deep-RL can find a solution with modestly-trained neural networks with even less search space. Our experiments show that Deep-RL can successfully find a solution for 10 product-level ATE programs while searching much fewer (e.g., 1/3,500) states than the previous PBQP enumeration solver. Also, when applied to C programs in llvm-test-suite for regular CPUs, it achieves a competitive performance to the existing PBQP register allocator in LLVM.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"8 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"133776473","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 4
Gadgets Splicing: Dynamic Binary Transformation for Precise Rewriting 小工具拼接:用于精确重写的动态二进制转换
2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Pub Date : 2022-04-02 DOI: 10.1109/CGO53902.2022.9741259
Linan Tian, Yangyang Shi, Liwei Chen, Yanqi Yang, Gang Shi
{"title":"Gadgets Splicing: Dynamic Binary Transformation for Precise Rewriting","authors":"Linan Tian, Yangyang Shi, Liwei Chen, Yanqi Yang, Gang Shi","doi":"10.1109/CGO53902.2022.9741259","DOIUrl":"https://doi.org/10.1109/CGO53902.2022.9741259","url":null,"abstract":"Many systems and applications depend on binary rewriting technology to analyze and retrofit software binaries when source code is not available, including binary instrumentation, profiling and security policy reinforcement. However, the investigations have found that many static binary rewriters still fail to accurately transform all legal instructions in binaries. Dynamic binary rewriters allow for accuracy, but coverage and rewriting efficiency are limited. Therefore, the existing binary rewriting technology cannot meet all the needs of binary rewriting. In this paper, we present GRIN, a novel binary rewriting tool that allows for high-precision instruction identification. In GRIN, we propose a gadget-based entry address analysis technique. It identifies the entry addresses of the basic blocks in the binary by gathering and executing the basic blocks related to the computation of the entry addresses of the basic blocks. By traversing from these entries as the new entries of the program, we guarantee the correctness of the identified instructions. We have implemented the prototype of GRIN and evaluated on the SPEC2006 and the whole set of GNU Coreutils. We demonstrate that the precision of GRIN is improved to 99.92% compared to current state-of the-art techniques.","PeriodicalId":319867,"journal":{"name":"2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO)","volume":"438 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116186141","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
相关产品
×
本文献相关产品
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书