| commit | be5075ab8daf58a0e981e6bda9579a86fba9a748 | [log] [tgz] |
|---|---|---|
| author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | Wed May 01 10:24:23 2024 -0400 |
| committer | GitHub <noreply@github.com> | Wed May 01 10:24:23 2024 -0400 |
| tree | abb2dfc3802bf49fbf7545fc02708f4e756a7bfa | |
| parent | f07a2edc64650f44bc592d74bb4c99ddde3772d3 [diff] |
[CUDA] make kernel stub ICF-proof (#90155) MSVC linker merges functions having comdat which have identical set of instructions. CUDA uses kernel stub function as key to look up kernels in device executables. If kernel stub function for different kernels are merged by ICF, incorrect kernels will be launched. To prevent ICF from merging kernel stub functions, an unique global variable is created for each kernel stub function having comdat and a store is added to the kernel stub function. This makes the set of instructions in each kernel function unique. Fixes: https://github.com/llvm/llvm-project/issues/88883
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.