| commit | 12aad1a53c7ae70b88e7cb3fa3d04b6a3532f669 | [log] [tgz] |
|---|---|---|
| author | carlobertolli <carlo.bertolli@amd.com> | Tue Feb 06 15:08:32 2024 -0600 |
| committer | GitHub <noreply@github.com> | Tue Feb 06 15:08:32 2024 -0600 |
| tree | 9fa31da0d8fbec24c0f487ed233a12d5f843cec6 | |
| parent | 51a3019e4d096d93820f921af20d7a0bf3fffc48 [diff] |
[OpenMP] Support for global variables when in auto zero-copy. (#80876) When building without unified_shared_memory, global variables are declared in the device binary and allocated upon loading onto GPU memory. However, when running in zero-copy mode (same as with unified_shared_memory) D2H and H2D copies for mapped local and global variables are turned off. This patch turns back on H2D and D2H copies when they refer to global variables, enabling an application built without unified_shared_memory to work correctly with global variables when run under automatic zero-copy. Co-authored-by: Doru Bercea <doru.bercea@amd.com> Co-authored-by: Jan-Patrick Lehr <janpatrick.lehr@amd.com>
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.