[libcxx-commits] [libcxx] [libcxx] Set `_LIBCPP_HAS_CLOCK_GETTIME` for GPU targets (PR #99243)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 16 14:33:04 PDT 2024


philnik777 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?

https://github.com/llvm/llvm-project/pull/99243


More information about the libcxx-commits mailing list