[libcxx-commits] [libcxx] [libcxx] Set `_LIBCPP_HAS_CLOCK_GETTIME` for GPU targets (PR #99243)
Joseph Huber via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 16 14:38:07 PDT 2024
jhuber6 wrote:
> > I may need a more consistent configuration for this in the future, maybe
> > I should put a common macro in a different common header that's just
> > `__GPU__`? I don't know where I would put such a thing however.
>
> Do you expect a lot of places where we need special handling for GPUs? If that's the case, maybe adding a `_LIBCPP_TARGETING_GPU` to `__config` would be the right thing?
Yeah that would be reasonable, though I don't know of how many places need it *yet*. Maybe I should just keep this and refactor that later? Up to you.
https://github.com/llvm/llvm-project/pull/99243
More information about the libcxx-commits
mailing list