[all-commits] [llvm/llvm-project] d26000: [openmp][devicertl] Freestanding nvptx via stub pr...
Jon Chesterfield via All-commits
all-commits at lists.llvm.org
Mon Aug 23 15:08:06 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d26000e4cc2bc65e207a84fa26cb6e374d60aa12
https://github.com/llvm/llvm-project/commit/d26000e4cc2bc65e207a84fa26cb6e374d60aa12
Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
Date: 2021-08-23 (Mon, 23 Aug 2021)
Changed paths:
M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
M openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.cu
M openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
Log Message:
-----------
[openmp][devicertl] Freestanding nvptx via stub printf
Compiled nvptx devicertl as freestanding, breaking the
dependency on host glibc and gcc-multilibs. Thus build it by default.
Comes at the cost of #defining out printf. Tried mapping it onto
__builtin_printf but that gets transformed back to printf instead
of hitting the cuda/openmp lowering transform.
Printf could be preserved by one of:
- dropping all the standard headers and ffreestanding
- providing a header only printf implementation
- changing the compiler handling of printf
Reviewed By: grokos
Differential Revision: https://reviews.llvm.org/D108349
More information about the All-commits
mailing list