-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NFC] Modularize <exception>
#199
Conversation
7aec454
to
8965977
Compare
Note: Those headers and features are currently not exported thorugh libcu++ so running tests is not necessary |
8965977
to
2aa31b3
Compare
6453a92
to
cf6394a
Compare
fe2608b
to
0b483f2
Compare
6fc4b95
to
1da1db0
Compare
libcudacxx/include/cuda/std/detail/libcxx/include/__exception/terminate.h
Outdated
Show resolved
Hide resolved
libcudacxx/include/cuda/std/detail/libcxx/include/__exception/terminate.h
Outdated
Show resolved
Hide resolved
#if !defined(__cpp_sized_deallocation) || __cpp_sized_deallocation < 201309L | ||
#define _LIBCUDACXX_HAS_NO_LANGUAGE_SIZED_DEALLOCATION | ||
#endif | ||
|
||
#if !defined(_LIBCUDACXX_BUILDING_LIBRARY) && _CCCL_STD_VER < 2014 && \ | ||
defined(_LIBCUDACXX_HAS_NO_LANGUAGE_SIZED_DEALLOCATION) | ||
# define _LIBCUDACXX_HAS_NO_LIBRARY_SIZED_DEALLOCATION | ||
#endif | ||
|
||
#if defined(_LIBCUDACXX_HAS_NO_LIBRARY_SIZED_DEALLOCATION) || \ | ||
defined(_LIBCUDACXX_HAS_NO_LANGUAGE_SIZED_DEALLOCATION) | ||
# define _LIBCUDACXX_HAS_NO_SIZED_DEALLOCATION | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should go in __config
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is only ever used here and we cannot generically overload operator new
on device anyway, so I would prefer to keep that located here
1da1db0
to
0284bc9
Compare
8251934
to
beab332
Compare
beab332
to
e62f45a
Compare
e62f45a
to
a67ea89
Compare
/ok to test |
This PR modularizes header that are currently only used internally.
Those are
<exception>
,<new>
and<stdexcept>
. With the changes here, we can include those headers even in__cuda_std__
mode without breaking anything