HomePhabricator

[CUDA] Unbreak CUDA compilation with -std=c++20

Authored by tra on Nov 19 2020, 10:06 AM.

Description

[CUDA] Unbreak CUDA compilation with -std=c++20

Standard libc++ headers in stdc++ mode include <new> which picks up
cuda_wrappers/new before any of the CUDA macros have been defined.

We can not include CUDA headers that early, so the work-around is to define
device in the wrapper header itself.

Differential Revision: https://reviews.llvm.org/D91807

Details

Committed
traNov 19 2020, 10:35 AM
Differential Revision
D91807: [CUDA] Unbreak CUDA compilation with -std=c++20
Parents
rG332710e70428: [mlir] Add a missing dependency to LinalgToLLVM
Branches
Unknown
Tags
Unknown