[PATCH] D80897: [OpenMP] Initial support for std::complex in target regions
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 31 13:18:01 PDT 2020
jdoerfert created this revision.
jdoerfert added reviewers: tra, hfinkel, ABataev, JonChesterfield.
Herald added subscribers: sstefan1, guansong, bollu, yaxunl, mgorny.
Herald added a project: clang.
This simply follows the scheme we have for other wrappers. It resolves
the current link problem, e.g., `__muldc3 not found`, when std::complex
operations are used on a device.
In "CUDA mode" this should allow simple complex operations to work in
target regions. Normal mode doesn't work because the globalization in
the std::complex operators is somehow broken. This will most likely not
allow complex make math function calls to work properly, e.g., sin, but
that is more complex (pan intended) anyway.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80897
Files:
clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/__clang_cuda_complex_builtins.h
clang/lib/Headers/openmp_wrappers/complex
clang/test/Headers/Inputs/include/complex
clang/test/Headers/Inputs/include/cstdlib
clang/test/Headers/Inputs/include/math.h
clang/test/Headers/nvptx_device_math_complex.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80897.267521.patch
Type: text/x-patch
Size: 15912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200531/af277938/attachment-0001.bin>
More information about the cfe-commits
mailing list