jasonfan commited on
Commit
fd7738a
·
verified ·
1 Parent(s): d4b9489

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/remove_volatile.h +47 -0
  2. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/result_of.h +43 -0
  3. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/type_identity.h +36 -0
  4. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/type_list.h +48 -0
  5. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/underlying_type.h +59 -0
  6. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/void_t.h +32 -0
  7. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/as_const.h +35 -0
  8. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/auto_cast.h +26 -0
  9. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/cmp.h +118 -0
  10. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/convert_to_integral.h +76 -0
  11. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/declval.h +37 -0
  12. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/exception_guard.h +149 -0
  13. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/exchange.h +42 -0
  14. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/forward.h +43 -0
  15. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/forward_like.h +50 -0
  16. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/in_place.h +63 -0
  17. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/integer_sequence.h +148 -0
  18. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/move.h +48 -0
  19. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/pair.h +864 -0
  20. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/piecewise_construct.h +32 -0
  21. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/priority_tag.h +30 -0
  22. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/rel_ops.h +65 -0
  23. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/swap.h +53 -0
  24. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/to_underlying.h +44 -0
  25. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/unreachable.h +40 -0
  26. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/__config +79 -0
  27. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/__memory +89 -0
  28. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/algorithm +59 -0
  29. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/coroutine +334 -0
  30. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/deque +46 -0
  31. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/filesystem +256 -0
  32. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/forward_list +46 -0
  33. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/functional +458 -0
  34. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/iterator +113 -0
  35. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/list +46 -0
  36. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/map +56 -0
  37. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/memory_resource +426 -0
  38. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/propagate_const +578 -0
  39. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/regex +61 -0
  40. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/set +56 -0
  41. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/simd +1569 -0
  42. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/string +61 -0
  43. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/type_traits +154 -0
  44. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/unordered_map +64 -0
  45. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/unordered_set +58 -0
  46. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/utility +46 -0
  47. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/vector +46 -0
  48. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/ext/__hash +133 -0
  49. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/ext/hash_map +984 -0
  50. miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/ext/hash_set +659 -0
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/remove_volatile.h ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___TYPE_TRAITS_REMOVE_VOLATILE_H
11
+ #define _LIBCUDACXX___TYPE_TRAITS_REMOVE_VOLATILE_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
18
+ #pragma GCC system_header
19
+ #endif
20
+
21
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
22
+
23
+ #if defined(_LIBCUDACXX_REMOVE_VOLATILE) && !defined(_LIBCUDACXX_USE_REMOVE_VOLATILE_FALLBACK)
24
+ template <class _Tp>
25
+ struct remove_volatile {
26
+ using type _LIBCUDACXX_NODEBUG_TYPE = _LIBCUDACXX_REMOVE_VOLATILE(_Tp);
27
+ };
28
+
29
+ template <class _Tp>
30
+ using __remove_volatile_t = _LIBCUDACXX_REMOVE_VOLATILE(_Tp);
31
+
32
+ #else
33
+ template <class _Tp> struct _LIBCUDACXX_TEMPLATE_VIS remove_volatile {typedef _Tp type;};
34
+ template <class _Tp> struct _LIBCUDACXX_TEMPLATE_VIS remove_volatile<volatile _Tp> {typedef _Tp type;};
35
+
36
+ template <class _Tp>
37
+ using __remove_volatile_t = typename remove_volatile<_Tp>::type;
38
+
39
+ #endif // defined(_LIBCUDACXX_REMOVE_VOLATILE) && !defined(_LIBCUDACXX_USE_REMOVE_VOLATILE_FALLBACK)
40
+
41
+ #if _LIBCUDACXX_STD_VER > 11
42
+ template <class _Tp> using remove_volatile_t = __remove_volatile_t<_Tp>;
43
+ #endif
44
+
45
+ _LIBCUDACXX_END_NAMESPACE_STD
46
+
47
+ #endif // _LIBCUDACXX___TYPE_TRAITS_REMOVE_VOLATILE_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/result_of.h ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___TYPE_TRAITS_RESULT_OF_H
11
+ #define _LIBCUDACXX___TYPE_TRAITS_RESULT_OF_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__functional/invoke.h"
18
+
19
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
20
+ #pragma GCC system_header
21
+ #endif
22
+
23
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
24
+
25
+ // result_of
26
+
27
+ #if _LIBCUDACXX_STD_VER <= 17 || defined(_LIBCUDACXX_ENABLE_CXX20_REMOVED_TYPE_TRAITS)
28
+ template <class _Callable> class _LIBCUDACXX_DEPRECATED_IN_CXX17 result_of;
29
+
30
+ template <class _Fp, class ..._Args>
31
+ class _LIBCUDACXX_TEMPLATE_VIS result_of<_Fp(_Args...)>
32
+ : public __invoke_of<_Fp, _Args...>
33
+ {
34
+ };
35
+
36
+ #if _LIBCUDACXX_STD_VER > 11
37
+ template <class _Tp> using result_of_t _LIBCUDACXX_DEPRECATED_IN_CXX17 = typename result_of<_Tp>::type;
38
+ #endif // _LIBCUDACXX_STD_VER > 11
39
+ #endif // _LIBCUDACXX_STD_VER <= 17 || defined(_LIBCUDACXX_ENABLE_CXX20_REMOVED_TYPE_TRAITS)
40
+
41
+ _LIBCUDACXX_END_NAMESPACE_STD
42
+
43
+ #endif // _LIBCUDACXX___TYPE_TRAITS_RESULT_OF_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/type_identity.h ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___TYPE_TRAITS_TYPE_IDENTITY_H
11
+ #define _LIBCUDACXX___TYPE_TRAITS_TYPE_IDENTITY_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
18
+ #pragma GCC system_header
19
+ #endif
20
+
21
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
22
+
23
+ template <class _Tp>
24
+ struct __type_identity { typedef _Tp type; };
25
+
26
+ template <class _Tp>
27
+ using __type_identity_t _LIBCUDACXX_NODEBUG_TYPE = typename __type_identity<_Tp>::type;
28
+
29
+ #if _LIBCUDACXX_STD_VER > 11
30
+ template<class _Tp> struct type_identity { typedef _Tp type; };
31
+ template<class _Tp> using type_identity_t = typename type_identity<_Tp>::type;
32
+ #endif
33
+
34
+ _LIBCUDACXX_END_NAMESPACE_STD
35
+
36
+ #endif // _LIBCUDACXX___TYPE_TRAITS_TYPE_IDENTITY_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/type_list.h ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___TYPE_TRAITS_TYPE_LIST_H
11
+ #define _LIBCUDACXX___TYPE_TRAITS_TYPE_LIST_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../cstddef"
18
+
19
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
20
+ #pragma GCC system_header
21
+ #endif
22
+
23
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
24
+
25
+ template <class _Hp, class _Tp>
26
+ struct __type_list
27
+ {
28
+ typedef _Hp _Head;
29
+ typedef _Tp _Tail;
30
+ };
31
+
32
+ template <class _TypeList, size_t _Size, bool = _Size <= sizeof(typename _TypeList::_Head)> struct __find_first;
33
+
34
+ template <class _Hp, class _Tp, size_t _Size>
35
+ struct __find_first<__type_list<_Hp, _Tp>, _Size, true>
36
+ {
37
+ typedef _LIBCUDACXX_NODEBUG_TYPE _Hp type;
38
+ };
39
+
40
+ template <class _Hp, class _Tp, size_t _Size>
41
+ struct __find_first<__type_list<_Hp, _Tp>, _Size, false>
42
+ {
43
+ typedef _LIBCUDACXX_NODEBUG_TYPE typename __find_first<_Tp, _Size>::type type;
44
+ };
45
+
46
+ _LIBCUDACXX_END_NAMESPACE_STD
47
+
48
+ #endif // _LIBCUDACXX___TYPE_TRAITS_TYPE_LIST_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/underlying_type.h ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___TYPE_TRAITS_UNDERLYING_TYPE_H
11
+ #define _LIBCUDACXX___TYPE_TRAITS_UNDERLYING_TYPE_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__type_traits/is_enum.h"
18
+
19
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
20
+ #pragma GCC system_header
21
+ #endif
22
+
23
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
24
+
25
+ #if defined(_LIBCUDACXX_UNDERLYING_TYPE) && !defined(_LIBCUDACXX_USE_UNDERLYING_TYPE_FALLBACK)
26
+
27
+ template <class _Tp, bool = is_enum<_Tp>::value> struct __underlying_type_impl;
28
+
29
+ template <class _Tp>
30
+ struct __underlying_type_impl<_Tp, false> {};
31
+
32
+ template <class _Tp>
33
+ struct __underlying_type_impl<_Tp, true>
34
+ {
35
+ typedef _LIBCUDACXX_UNDERLYING_TYPE(_Tp) type;
36
+ };
37
+
38
+ template <class _Tp>
39
+ struct underlying_type : __underlying_type_impl<_Tp, is_enum<_Tp>::value> {};
40
+
41
+ #if _LIBCUDACXX_STD_VER > 11
42
+ template <class _Tp> using underlying_type_t = typename underlying_type<_Tp>::type;
43
+ #endif
44
+
45
+ #else
46
+
47
+ template <class _Tp, bool _Support = false>
48
+ struct underlying_type
49
+ {
50
+ static_assert(_Support, "The underyling_type trait requires compiler "
51
+ "support. Either no such support exists or "
52
+ "libc++ does not know how to use it.");
53
+ };
54
+
55
+ #endif // defined(_LIBCUDACXX_UNDERLYING_TYPE) && !defined(_LIBCUDACXX_USE_UNDERLYING_TYPE_FALLBACK)
56
+
57
+ _LIBCUDACXX_END_NAMESPACE_STD
58
+
59
+ #endif // _LIBCUDACXX___TYPE_TRAITS_UNDERLYING_TYPE_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__type_traits/void_t.h ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___TYPE_TRAITS_VOID_T_H
11
+ #define _LIBCUDACXX___TYPE_TRAITS_VOID_T_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
18
+ #pragma GCC system_header
19
+ #endif
20
+
21
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
22
+
23
+ #if _LIBCUDACXX_STD_VER > 11
24
+ template <class...> using void_t = void;
25
+ #endif
26
+
27
+ template <class...>
28
+ using __void_t = void;
29
+
30
+ _LIBCUDACXX_END_NAMESPACE_STD
31
+
32
+ #endif // _LIBCUDACXX___TYPE_TRAITS_VOID_T_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/as_const.h ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_AS_CONST_H
11
+ #define _LIBCUDACXX___UTILITY_AS_CONST_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__type_traits/add_const.h"
18
+
19
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
20
+ #pragma GCC system_header
21
+ #endif
22
+
23
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
24
+
25
+ #if _LIBCUDACXX_STD_VER > 11
26
+ template <class _Tp>
27
+ _LIBCUDACXX_NODISCARD_EXT _LIBCUDACXX_INLINE_VISIBILITY constexpr add_const_t<_Tp>& as_const(_Tp& __t) noexcept { return __t; }
28
+
29
+ template <class _Tp>
30
+ void as_const(const _Tp&&) = delete;
31
+ #endif
32
+
33
+ _LIBCUDACXX_END_NAMESPACE_STD
34
+
35
+ #endif // _LIBCUDACXX___UTILITY_AS_CONST_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/auto_cast.h ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------------------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
8
+ //
9
+ //===----------------------------------------------------------------------===//
10
+
11
+ #ifndef _LIBCUDACXX___UTILITY_AUTO_CAST_H
12
+ #define _LIBCUDACXX___UTILITY_AUTO_CAST_H
13
+
14
+ #ifndef __cuda_std__
15
+ #include <__config>
16
+ #endif // __cuda_std__
17
+
18
+ #include "../__type_traits/decay.h"
19
+
20
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
21
+ #pragma GCC system_header
22
+ #endif
23
+
24
+ #define _LIBCUDACXX_AUTO_CAST(expr) static_cast<_CUDA_VSTD::decay_t<decltype((expr))>>(expr)
25
+
26
+ #endif // _LIBCUDACXX___UTILITY_AUTO_CAST_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/cmp.h ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_CMP_H
11
+ #define _LIBCUDACXX___UTILITY_CMP_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__utility/forward.h"
18
+ #include "../__utility/move.h"
19
+ #include "../__type_traits/disjunction.h"
20
+ #include "../__type_traits/is_integral.h"
21
+ #include "../__type_traits/is_same.h"
22
+ #include "../__type_traits/is_signed.h"
23
+ #include "../__type_traits/make_unsigned.h"
24
+ #include "../limits"
25
+
26
+ #ifndef __cuda_std__
27
+ #include <__pragma_push>
28
+ #endif // __cuda_std__
29
+
30
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
31
+ #pragma GCC system_header
32
+ #endif
33
+
34
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
35
+
36
+ #if _LIBCUDACXX_STD_VER > 17
37
+ template<class _Tp, class... _Up>
38
+ struct _IsSameAsAny : _Or<_IsSame<_Tp, _Up>...> {};
39
+
40
+ template<class _Tp>
41
+ concept __is_safe_integral_cmp = is_integral_v<_Tp> &&
42
+ !_IsSameAsAny<_Tp, bool, char, char16_t, char32_t
43
+ #ifndef _LIBCUDACXX_NO_HAS_CHAR8_T
44
+ , char8_t
45
+ #endif
46
+ #ifndef _LIBCUDACXX_HAS_NO_WIDE_CHARACTERS
47
+ , wchar_t
48
+ #endif
49
+ >::value;
50
+
51
+ template<__is_safe_integral_cmp _Tp, __is_safe_integral_cmp _Up>
52
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr
53
+ bool cmp_equal(_Tp __t, _Up __u) noexcept
54
+ {
55
+ if constexpr (is_signed_v<_Tp> == is_signed_v<_Up>)
56
+ return __t == __u;
57
+ else if constexpr (is_signed_v<_Tp>)
58
+ return __t < 0 ? false : make_unsigned_t<_Tp>(__t) == __u;
59
+ else
60
+ return __u < 0 ? false : __t == make_unsigned_t<_Up>(__u);
61
+ }
62
+
63
+ template<__is_safe_integral_cmp _Tp, __is_safe_integral_cmp _Up>
64
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr
65
+ bool cmp_not_equal(_Tp __t, _Up __u) noexcept
66
+ {
67
+ return !_CUDA_VSTD::cmp_equal(__t, __u);
68
+ }
69
+
70
+ template<__is_safe_integral_cmp _Tp, __is_safe_integral_cmp _Up>
71
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr
72
+ bool cmp_less(_Tp __t, _Up __u) noexcept
73
+ {
74
+ if constexpr (is_signed_v<_Tp> == is_signed_v<_Up>)
75
+ return __t < __u;
76
+ else if constexpr (is_signed_v<_Tp>)
77
+ return __t < 0 ? true : make_unsigned_t<_Tp>(__t) < __u;
78
+ else
79
+ return __u < 0 ? false : __t < make_unsigned_t<_Up>(__u);
80
+ }
81
+
82
+ template<__is_safe_integral_cmp _Tp, __is_safe_integral_cmp _Up>
83
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr
84
+ bool cmp_greater(_Tp __t, _Up __u) noexcept
85
+ {
86
+ return _CUDA_VSTD::cmp_less(__u, __t);
87
+ }
88
+
89
+ template<__is_safe_integral_cmp _Tp, __is_safe_integral_cmp _Up>
90
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr
91
+ bool cmp_less_equal(_Tp __t, _Up __u) noexcept
92
+ {
93
+ return !_CUDA_VSTD::cmp_greater(__t, __u);
94
+ }
95
+
96
+ template<__is_safe_integral_cmp _Tp, __is_safe_integral_cmp _Up>
97
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr
98
+ bool cmp_greater_equal(_Tp __t, _Up __u) noexcept
99
+ {
100
+ return !_CUDA_VSTD::cmp_less(__t, __u);
101
+ }
102
+
103
+ template<__is_safe_integral_cmp _Tp, __is_safe_integral_cmp _Up>
104
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr
105
+ bool in_range(_Up __u) noexcept
106
+ {
107
+ return _CUDA_VSTD::cmp_less_equal(__u, numeric_limits<_Tp>::max()) &&
108
+ _CUDA_VSTD::cmp_greater_equal(__u, numeric_limits<_Tp>::min());
109
+ }
110
+ #endif // _LIBCUDACXX_STD_VER > 17
111
+
112
+ _LIBCUDACXX_END_NAMESPACE_STD
113
+
114
+ #ifndef __cuda_std__
115
+ #include <__pragma_pop>
116
+ #endif // __cuda_std__
117
+
118
+ #endif // _LIBCUDACXX___UTILITY_CMP_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/convert_to_integral.h ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_CONVERT_TO_INTEGRAL_H
11
+ #define _LIBCUDACXX___UTILITY_CONVERT_TO_INTEGRAL_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__type_traits/enable_if.h"
18
+ #include "../__type_traits/is_enum.h"
19
+ #include "../__type_traits/is_floating_point.h"
20
+ #include "../__type_traits/underlying_type.h"
21
+
22
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
23
+ #pragma GCC system_header
24
+ #endif
25
+
26
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
27
+
28
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
29
+ int __convert_to_integral(int __val) { return __val; }
30
+
31
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
32
+ unsigned __convert_to_integral(unsigned __val) { return __val; }
33
+
34
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
35
+ long __convert_to_integral(long __val) { return __val; }
36
+
37
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
38
+ unsigned long __convert_to_integral(unsigned long __val) { return __val; }
39
+
40
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
41
+ long long __convert_to_integral(long long __val) { return __val; }
42
+
43
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
44
+ unsigned long long __convert_to_integral(unsigned long long __val) {return __val; }
45
+
46
+ template<typename _Fp>
47
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
48
+ __enable_if_t<is_floating_point<_Fp>::value, long long>
49
+ __convert_to_integral(_Fp __val) { return __val; }
50
+
51
+ #ifndef _LIBCUDACXX_HAS_NO_INT128
52
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
53
+ __int128_t __convert_to_integral(__int128_t __val) { return __val; }
54
+
55
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
56
+ __uint128_t __convert_to_integral(__uint128_t __val) { return __val; }
57
+ #endif
58
+
59
+ template <class _Tp, bool = is_enum<_Tp>::value>
60
+ struct __sfinae_underlying_type
61
+ {
62
+ typedef typename underlying_type<_Tp>::type type;
63
+ typedef decltype(((type)1) + 0) __promoted_type;
64
+ };
65
+
66
+ template <class _Tp>
67
+ struct __sfinae_underlying_type<_Tp, false> {};
68
+
69
+ template <class _Tp>
70
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
71
+ typename __sfinae_underlying_type<_Tp>::__promoted_type
72
+ __convert_to_integral(_Tp __val) { return __val; }
73
+
74
+ _LIBCUDACXX_END_NAMESPACE_STD
75
+
76
+ #endif // _LIBCUDACXX___UTILITY_CONVERT_TO_INTEGRAL_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/declval.h ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_DECLVAL_H
11
+ #define _LIBCUDACXX___UTILITY_DECLVAL_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
18
+ #pragma GCC system_header
19
+ #endif
20
+
21
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
22
+
23
+ // Suppress deprecation notice for volatile-qualified return type resulting
24
+ // from volatile-qualified types _Tp.
25
+ _LIBCUDACXX_SUPPRESS_DEPRECATED_PUSH
26
+ template <class _Tp>
27
+ _LIBCUDACXX_INLINE_VISIBILITY _Tp&& __declval(int);
28
+ template <class _Tp>
29
+ _LIBCUDACXX_INLINE_VISIBILITY _Tp __declval(long);
30
+ _LIBCUDACXX_SUPPRESS_DEPRECATED_POP
31
+
32
+ template <class _Tp>
33
+ _LIBCUDACXX_INLINE_VISIBILITY decltype(_CUDA_VSTD::__declval<_Tp>(0)) declval() _NOEXCEPT;
34
+
35
+ _LIBCUDACXX_END_NAMESPACE_STD
36
+
37
+ #endif // _LIBCUDACXX___UTILITY_DECLVAL_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/exception_guard.h ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_EXCEPTION_GUARD_H
11
+ #define _LIBCUDACXX___UTILITY_EXCEPTION_GUARD_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__assert"
18
+ #include "../__type_traits/is_nothrow_move_constructible.h"
19
+ #include "../__utility/exchange.h"
20
+ #include "../__utility/move.h"
21
+
22
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
23
+ #pragma GCC system_header
24
+ #endif
25
+
26
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
27
+
28
+ // __exception_guard is a helper class for writing code with the strong exception guarantee.
29
+ //
30
+ // When writing code that can throw an exception, one can store rollback instructions in an
31
+ // exception guard so that if an exception is thrown at any point during the lifetime of the
32
+ // exception guard, it will be rolled back automatically. When the exception guard is done, one
33
+ // must mark it as being complete so it isn't rolled back when the exception guard is destroyed.
34
+ //
35
+ // Exception guards are not default constructible, they can't be copied or assigned to, but
36
+ // they can be moved around for convenience.
37
+ //
38
+ // __exception_guard is a no-op in -fno-exceptions mode to produce better code-gen. This means
39
+ // that we don't provide the strong exception guarantees. However, Clang doesn't generate cleanup
40
+ // code with exceptions disabled, so even if we wanted to provide the strong exception guarantees
41
+ // we couldn't. This is also only relevant for constructs with a stack of
42
+ // -fexceptions > -fno-exceptions > -fexceptions code, since the exception can't be caught where
43
+ // exceptions are disabled. While -fexceptions > -fno-exceptions is quite common
44
+ // (e.g. libc++.dylib > -fno-exceptions), having another layer with exceptions enabled seems a lot
45
+ // less common, especially one that tries to catch an exception through -fno-exceptions code.
46
+ //
47
+ // __exception_guard can help greatly simplify code that would normally be cluttered by
48
+ // `#if _LIBCUDACXX_NO_EXCEPTIONS`. For example:
49
+ //
50
+ // template <class Iterator, class Size, class OutputIterator>
51
+ // Iterator uninitialized_copy_n(Iterator iter, Size n, OutputIterator out) {
52
+ // typedef typename iterator_traits<Iterator>::value_type value_type;
53
+ // __exception_guard guard([start=out, &out] {
54
+ // _CUDA_VSTD::destroy(start, out);
55
+ // });
56
+ //
57
+ // for (; n > 0; ++iter, ++out, --n) {
58
+ // ::new ((void*)_CUDA_VSTD::addressof(*out)) value_type(*iter);
59
+ // }
60
+ // guard.__complete();
61
+ // return out;
62
+ // }
63
+ //
64
+
65
+ template <class _Rollback>
66
+ struct __exception_guard_exceptions {
67
+ __exception_guard_exceptions() = delete;
68
+
69
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
70
+ explicit __exception_guard_exceptions(_Rollback __rollback)
71
+ : __rollback_(_CUDA_VSTD::move(__rollback)), __completed_(false) {}
72
+
73
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
74
+ __exception_guard_exceptions(__exception_guard_exceptions&& __other)
75
+ noexcept(_LIBCUDACXX_TRAIT(is_nothrow_move_constructible, _Rollback))
76
+ : __rollback_(_CUDA_VSTD::move(__other.__rollback_)), __completed_(__other.__completed_) {
77
+ __other.__completed_ = true;
78
+ }
79
+
80
+ __exception_guard_exceptions(__exception_guard_exceptions const&) = delete;
81
+ __exception_guard_exceptions& operator=(__exception_guard_exceptions const&) = delete;
82
+ __exception_guard_exceptions& operator=(__exception_guard_exceptions&&) = delete;
83
+
84
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
85
+ void __complete() noexcept { __completed_ = true; }
86
+
87
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
88
+ ~__exception_guard_exceptions() {
89
+ if (!__completed_)
90
+ __rollback_();
91
+ }
92
+
93
+ private:
94
+ _Rollback __rollback_;
95
+ bool __completed_;
96
+ };
97
+
98
+ _LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE(__exception_guard_exceptions);
99
+
100
+ template <class _Rollback>
101
+ struct __exception_guard_noexceptions {
102
+ __exception_guard_noexceptions() = delete;
103
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17 _LIBCUDACXX_NODEBUG
104
+ explicit __exception_guard_noexceptions(_Rollback) {}
105
+
106
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17 _LIBCUDACXX_NODEBUG
107
+ __exception_guard_noexceptions(__exception_guard_noexceptions&& __other)
108
+ noexcept(_LIBCUDACXX_TRAIT(is_nothrow_move_constructible, _Rollback))
109
+ : __completed_(__other.__completed_) {
110
+ __other.__completed_ = true;
111
+ }
112
+
113
+ __exception_guard_noexceptions(__exception_guard_noexceptions const&) = delete;
114
+ __exception_guard_noexceptions& operator=(__exception_guard_noexceptions const&) = delete;
115
+ __exception_guard_noexceptions& operator=(__exception_guard_noexceptions&&) = delete;
116
+
117
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17 _LIBCUDACXX_NODEBUG
118
+ void __complete() _NOEXCEPT {
119
+ __completed_ = true;
120
+ }
121
+
122
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17 _LIBCUDACXX_NODEBUG
123
+ ~__exception_guard_noexceptions() {
124
+ _LIBCUDACXX_ASSERT(__completed_, "__exception_guard not completed with exceptions disabled");
125
+ }
126
+
127
+ private:
128
+ bool __completed_ = false;
129
+ };
130
+
131
+ _LIBCUDACXX_CTAD_SUPPORTED_FOR_TYPE(__exception_guard_noexceptions);
132
+
133
+ #ifdef _LIBCUDACXX_NO_EXCEPTIONS
134
+ template <class _Rollback>
135
+ using __exception_guard = __exception_guard_noexceptions<_Rollback>;
136
+ #else
137
+ template <class _Rollback>
138
+ using __exception_guard = __exception_guard_exceptions<_Rollback>;
139
+ #endif
140
+
141
+ template <class _Rollback>
142
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
143
+ __exception_guard<_Rollback> __make_exception_guard(_Rollback __rollback) {
144
+ return __exception_guard<_Rollback>(_CUDA_VSTD::move(__rollback));
145
+ }
146
+
147
+ _LIBCUDACXX_END_NAMESPACE_STD
148
+
149
+ #endif // _LIBCUDACXX___UTILITY_EXCEPTION_GUARD_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/exchange.h ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_EXCHANGE_H
11
+ #define _LIBCUDACXX___UTILITY_EXCHANGE_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__type_traits/is_nothrow_assignable.h"
18
+ #include "../__type_traits/is_nothrow_move_constructible.h"
19
+ #include "../__utility/forward.h"
20
+ #include "../__utility/move.h"
21
+
22
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
23
+ #pragma GCC system_header
24
+ #endif
25
+
26
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
27
+
28
+ #if _LIBCUDACXX_STD_VER > 11
29
+ template<class _T1, class _T2 = _T1>
30
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
31
+ _T1 exchange(_T1& __obj, _T2&& __new_value)
32
+ noexcept(is_nothrow_move_constructible<_T1>::value && is_nothrow_assignable<_T1&, _T2>::value)
33
+ {
34
+ _T1 __old_value = _CUDA_VSTD::move(__obj);
35
+ __obj = _CUDA_VSTD::forward<_T2>(__new_value);
36
+ return __old_value;
37
+ }
38
+ #endif // _LIBCUDACXX_STD_VER > 11
39
+
40
+ _LIBCUDACXX_END_NAMESPACE_STD
41
+
42
+ #endif // _LIBCUDACXX___UTILITY_EXCHANGE_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/forward.h ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------------------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
8
+ //
9
+ //===----------------------------------------------------------------------===//
10
+
11
+ #ifndef _LIBCUDACXX___UTILITY_FORWARD_H
12
+ #define _LIBCUDACXX___UTILITY_FORWARD_H
13
+
14
+ #ifndef __cuda_std__
15
+ #include <__config>
16
+ #endif // __cuda_std__
17
+
18
+ #include "../__type_traits/is_reference.h"
19
+ #include "../__type_traits/remove_reference.h"
20
+ #include "../cstddef"
21
+
22
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
23
+ #pragma GCC system_header
24
+ #endif
25
+
26
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
27
+
28
+ template <class _Tp>
29
+ _LIBCUDACXX_NODISCARD_EXT inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR _Tp&&
30
+ forward(__libcpp_remove_reference_t<_Tp>& __t) _NOEXCEPT {
31
+ return static_cast<_Tp&&>(__t);
32
+ }
33
+
34
+ template <class _Tp>
35
+ _LIBCUDACXX_NODISCARD_EXT inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR _Tp&&
36
+ forward(__libcpp_remove_reference_t<_Tp>&& __t) _NOEXCEPT {
37
+ static_assert(!is_lvalue_reference<_Tp>::value, "cannot forward an rvalue as an lvalue");
38
+ return static_cast<_Tp&&>(__t);
39
+ }
40
+
41
+ _LIBCUDACXX_END_NAMESPACE_STD
42
+
43
+ #endif // _LIBCUDACXX___UTILITY_FORWARD_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/forward_like.h ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------------------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
8
+ //
9
+ //===----------------------------------------------------------------------===//
10
+
11
+ #ifndef _LIBCUDACXX___UTILITY_FORWARD_LIKE_H
12
+ #define _LIBCUDACXX___UTILITY_FORWARD_LIKE_H
13
+
14
+ #ifndef __cuda_std__
15
+ #include <__config>
16
+ #endif // __cuda_std__
17
+
18
+ #include "../__type_traits/conditional.h"
19
+ #include "../__type_traits/is_const.h"
20
+ #include "../__type_traits/is_reference.h"
21
+ #include "../__type_traits/remove_reference.h"
22
+
23
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
24
+ #pragma GCC system_header
25
+ #endif
26
+
27
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
28
+
29
+ #if _LIBCUDACXX_STD_VER > 20
30
+
31
+ template <class _Ap, class _Bp>
32
+ using _CopyConst = _If<is_const_v<_Ap>, const _Bp, _Bp>;
33
+
34
+ template <class _Ap, class _Bp>
35
+ using _OverrideRef = _If<is_rvalue_reference_v<_Ap>, remove_reference_t<_Bp>&&, _Bp&>;
36
+
37
+ template <class _Ap, class _Bp>
38
+ using _ForwardLike = _OverrideRef<_Ap&&, _CopyConst<remove_reference_t<_Ap>, remove_reference_t<_Bp>>>;
39
+
40
+ template <class _Tp, class _Up>
41
+ _LIBCUDACXX_NODISCARD_ATTRIBUTE _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY
42
+ constexpr auto forward_like(_Up&& __ux) noexcept -> _ForwardLike<_Tp, _Up> {
43
+ return static_cast<_ForwardLike<_Tp, _Up>>(__ux);
44
+ }
45
+
46
+ #endif // _LIBCUDACXX_STD_VER > 20
47
+
48
+ _LIBCUDACXX_END_NAMESPACE_STD
49
+
50
+ #endif // _LIBCUDACXX___UTILITY_FORWARD_LIKE_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/in_place.h ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_IN_PLACE_H
11
+ #define _LIBCUDACXX___UTILITY_IN_PLACE_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__type_traits/is_reference.h"
18
+ #include "../__type_traits/remove_reference.h"
19
+
20
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
21
+ #pragma GCC system_header
22
+ #endif
23
+
24
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
25
+
26
+ #if _LIBCUDACXX_STD_VER > 11
27
+
28
+ struct _LIBCUDACXX_TYPE_VIS in_place_t {
29
+ explicit in_place_t() = default;
30
+ };
31
+ _LIBCUDACXX_CPO_ACCESSIBILITY in_place_t in_place{};
32
+
33
+ template <class _Tp>
34
+ struct _LIBCUDACXX_TEMPLATE_VIS in_place_type_t {
35
+ explicit in_place_type_t() = default;
36
+ };
37
+ template <class _Tp>
38
+ _LIBCUDACXX_INLINE_VAR constexpr in_place_type_t<_Tp> in_place_type{};
39
+
40
+ template <size_t _Idx>
41
+ struct _LIBCUDACXX_TEMPLATE_VIS in_place_index_t {
42
+ explicit in_place_index_t() = default;
43
+ };
44
+ template <size_t _Idx>
45
+ _LIBCUDACXX_INLINE_VAR constexpr in_place_index_t<_Idx> in_place_index{};
46
+
47
+ template <class _Tp> struct __is_inplace_type_imp : false_type {};
48
+ template <class _Tp> struct __is_inplace_type_imp<in_place_type_t<_Tp>> : true_type {};
49
+
50
+ template <class _Tp>
51
+ using __is_inplace_type = __is_inplace_type_imp<__remove_cvref_t<_Tp>>;
52
+
53
+ template <class _Tp> struct __is_inplace_index_imp : false_type {};
54
+ template <size_t _Idx> struct __is_inplace_index_imp<in_place_index_t<_Idx>> : true_type {};
55
+
56
+ template <class _Tp>
57
+ using __is_inplace_index = __is_inplace_index_imp<__remove_cvref_t<_Tp>>;
58
+
59
+ #endif // _LIBCUDACXX_STD_VER > 11
60
+
61
+ _LIBCUDACXX_END_NAMESPACE_STD
62
+
63
+ #endif // _LIBCUDACXX___UTILITY_IN_PLACE_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/integer_sequence.h ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_INTEGER_SEQUENCE_H
11
+ #define _LIBCUDACXX___UTILITY_INTEGER_SEQUENCE_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__type_traits/is_integral.h"
18
+
19
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
20
+ #pragma GCC system_header
21
+ #endif
22
+
23
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
24
+
25
+ template <size_t...> struct __tuple_indices {};
26
+
27
+ template <class _IdxType, _IdxType... _Values>
28
+ struct __integer_sequence {
29
+ template <template <class _OIdxType, _OIdxType...> class _ToIndexSeq, class _ToIndexType>
30
+ using __convert = _ToIndexSeq<_ToIndexType, _Values...>;
31
+
32
+ template <size_t _Sp>
33
+ using __to_tuple_indices = __tuple_indices<(_Values + _Sp)...>;
34
+ };
35
+
36
+ #if !__has_builtin(__make_integer_seq) || defined(_LIBCUDACXX_TESTING_FALLBACK_MAKE_INTEGER_SEQUENCE)
37
+
38
+ namespace __detail {
39
+
40
+ template<typename _Tp, size_t ..._Extra> struct __repeat;
41
+ template<typename _Tp, _Tp ..._Np, size_t ..._Extra> struct __repeat<__integer_sequence<_Tp, _Np...>, _Extra...> {
42
+ typedef _LIBCUDACXX_NODEBUG_TYPE __integer_sequence<_Tp,
43
+ _Np...,
44
+ sizeof...(_Np) + _Np...,
45
+ 2 * sizeof...(_Np) + _Np...,
46
+ 3 * sizeof...(_Np) + _Np...,
47
+ 4 * sizeof...(_Np) + _Np...,
48
+ 5 * sizeof...(_Np) + _Np...,
49
+ 6 * sizeof...(_Np) + _Np...,
50
+ 7 * sizeof...(_Np) + _Np...,
51
+ _Extra...> type;
52
+ };
53
+
54
+ template<size_t _Np> struct __parity;
55
+ template<size_t _Np> struct __make : __parity<_Np % 8>::template __pmake<_Np> {};
56
+
57
+ template<> struct __make<0> { typedef __integer_sequence<size_t> type; };
58
+ template<> struct __make<1> { typedef __integer_sequence<size_t, 0> type; };
59
+ template<> struct __make<2> { typedef __integer_sequence<size_t, 0, 1> type; };
60
+ template<> struct __make<3> { typedef __integer_sequence<size_t, 0, 1, 2> type; };
61
+ template<> struct __make<4> { typedef __integer_sequence<size_t, 0, 1, 2, 3> type; };
62
+ template<> struct __make<5> { typedef __integer_sequence<size_t, 0, 1, 2, 3, 4> type; };
63
+ template<> struct __make<6> { typedef __integer_sequence<size_t, 0, 1, 2, 3, 4, 5> type; };
64
+ template<> struct __make<7> { typedef __integer_sequence<size_t, 0, 1, 2, 3, 4, 5, 6> type; };
65
+
66
+ template<> struct __parity<0> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type> {}; };
67
+ template<> struct __parity<1> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type, _Np - 1> {}; };
68
+ template<> struct __parity<2> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type, _Np - 2, _Np - 1> {}; };
69
+ template<> struct __parity<3> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type, _Np - 3, _Np - 2, _Np - 1> {}; };
70
+ template<> struct __parity<4> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
71
+ template<> struct __parity<5> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type, _Np - 5, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
72
+ template<> struct __parity<6> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type, _Np - 6, _Np - 5, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
73
+ template<> struct __parity<7> { template<size_t _Np> struct __pmake : __repeat<typename __make<_Np / 8>::type, _Np - 7, _Np - 6, _Np - 5, _Np - 4, _Np - 3, _Np - 2, _Np - 1> {}; };
74
+
75
+ } // namespace detail
76
+
77
+ #endif // !__has_builtin(__make_integer_seq) || defined(_LIBCUDACXX_TESTING_FALLBACK_MAKE_INTEGER_SEQUENCE)
78
+
79
+ #if __has_builtin(__make_integer_seq)
80
+ template <size_t _Ep, size_t _Sp>
81
+ using __make_indices_imp =
82
+ typename __make_integer_seq<__integer_sequence, size_t, _Ep - _Sp>::template
83
+ __to_tuple_indices<_Sp>;
84
+ #else
85
+ template <size_t _Ep, size_t _Sp>
86
+ using __make_indices_imp =
87
+ typename __detail::__make<_Ep - _Sp>::type::template __to_tuple_indices<_Sp>;
88
+
89
+ #endif
90
+
91
+ #if _LIBCUDACXX_STD_VER > 11
92
+
93
+ template<class _Tp, _Tp... _Ip>
94
+ struct _LIBCUDACXX_TEMPLATE_VIS integer_sequence
95
+ {
96
+ typedef _Tp value_type;
97
+ static_assert( is_integral<_Tp>::value,
98
+ "std::integer_sequence can only be instantiated with an integral type" );
99
+ static
100
+ _LIBCUDACXX_INLINE_VISIBILITY
101
+ constexpr
102
+ size_t
103
+ size() noexcept { return sizeof...(_Ip); }
104
+ };
105
+
106
+ template<size_t... _Ip>
107
+ using index_sequence = integer_sequence<size_t, _Ip...>;
108
+
109
+ #if __has_builtin(__make_integer_seq) && !defined(_LIBCUDACXX_TESTING_FALLBACK_MAKE_INTEGER_SEQUENCE)
110
+
111
+ template <class _Tp, _Tp _Ep>
112
+ using __make_integer_sequence _LIBCUDACXX_NODEBUG_TYPE = __make_integer_seq<integer_sequence, _Tp, _Ep>;
113
+
114
+ #else
115
+
116
+ template<typename _Tp, _Tp _Np> using __make_integer_sequence_unchecked _LIBCUDACXX_NODEBUG_TYPE =
117
+ typename __detail::__make<_Np>::type::template __convert<integer_sequence, _Tp>;
118
+
119
+ template <class _Tp, _Tp _Ep>
120
+ struct __make_integer_sequence_checked
121
+ {
122
+ static_assert(is_integral<_Tp>::value,
123
+ "std::make_integer_sequence can only be instantiated with an integral type" );
124
+ static_assert(0 <= _Ep, "std::make_integer_sequence must have a non-negative sequence length");
125
+ // Workaround GCC bug by preventing bad installations when 0 <= _Ep
126
+ // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68929
127
+ typedef _LIBCUDACXX_NODEBUG_TYPE __make_integer_sequence_unchecked<_Tp, 0 <= _Ep ? _Ep : 0> type;
128
+ };
129
+
130
+ template <class _Tp, _Tp _Ep>
131
+ using __make_integer_sequence _LIBCUDACXX_NODEBUG_TYPE = typename __make_integer_sequence_checked<_Tp, _Ep>::type;
132
+
133
+ #endif
134
+
135
+ template<class _Tp, _Tp _Np>
136
+ using make_integer_sequence = __make_integer_sequence<_Tp, _Np>;
137
+
138
+ template<size_t _Np>
139
+ using make_index_sequence = make_integer_sequence<size_t, _Np>;
140
+
141
+ template<class... _Tp>
142
+ using index_sequence_for = make_index_sequence<sizeof...(_Tp)>;
143
+
144
+ #endif // _LIBCUDACXX_STD_VER > 11
145
+
146
+ _LIBCUDACXX_END_NAMESPACE_STD
147
+
148
+ #endif // _LIBCUDACXX___UTILITY_INTEGER_SEQUENCE_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/move.h ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------------------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
8
+ //
9
+ //===----------------------------------------------------------------------===//
10
+
11
+ #ifndef _LIBCUDACXX___UTILITY_MOVE_H
12
+ #define _LIBCUDACXX___UTILITY_MOVE_H
13
+
14
+ #ifndef __cuda_std__
15
+ #include <__config>
16
+ #endif // __cuda_std__
17
+
18
+ #include "../__type_traits/conditional.h"
19
+ #include "../__type_traits/is_copy_constructible.h"
20
+ #include "../__type_traits/is_nothrow_move_constructible.h"
21
+ #include "../__type_traits/remove_reference.h"
22
+
23
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
24
+ #pragma GCC system_header
25
+ #endif
26
+
27
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
28
+
29
+ template <class _Tp>
30
+ _LIBCUDACXX_NODISCARD_EXT inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR __libcpp_remove_reference_t<_Tp>&&
31
+ move(_Tp&& __t) _NOEXCEPT {
32
+ typedef _LIBCUDACXX_NODEBUG_TYPE __libcpp_remove_reference_t<_Tp> _Up;
33
+ return static_cast<_Up&&>(__t);
34
+ }
35
+
36
+ template <class _Tp>
37
+ using __move_if_noexcept_result_t =
38
+ __conditional_t<!is_nothrow_move_constructible<_Tp>::value && is_copy_constructible<_Tp>::value, const _Tp&, _Tp&&>;
39
+
40
+ template <class _Tp>
41
+ _LIBCUDACXX_NODISCARD_EXT inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11 __move_if_noexcept_result_t<_Tp>
42
+ move_if_noexcept(_Tp& __x) _NOEXCEPT {
43
+ return _CUDA_VSTD::move(__x);
44
+ }
45
+
46
+ _LIBCUDACXX_END_NAMESPACE_STD
47
+
48
+ #endif // _LIBCUDACXX___UTILITY_MOVE_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/pair.h ADDED
@@ -0,0 +1,864 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_PAIR_H
11
+ #define _LIBCUDACXX___UTILITY_PAIR_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #ifndef _LIBCUDACXX_HAS_NO_SPACESHIP_OPERATOR
18
+ #include "../__compare/common_comparison_category.h"
19
+ #include "../__compare/synth_three_way.h"
20
+ #endif // _LIBCUDACXX_HAS_NO_SPACESHIP_OPERATOR
21
+
22
+ #include "../__functional/unwrap_ref.h"
23
+ #include "../__fwd/get.h"
24
+ #include "../__fwd/tuple.h"
25
+ #include "../__tuple_dir/sfinae_helpers.h"
26
+ #include "../__tuple_dir/structured_bindings.h"
27
+ #include "../__tuple_dir/tuple_element.h"
28
+ #include "../__tuple_dir/tuple_indices.h"
29
+ #include "../__tuple_dir/tuple_size.h"
30
+ #include "../__type_traits/common_reference.h"
31
+ #include "../__type_traits/conditional.h"
32
+ #include "../__type_traits/decay.h"
33
+ #include "../__type_traits/enable_if.h"
34
+ #include "../__type_traits/integral_constant.h"
35
+ #include "../__type_traits/is_assignable.h"
36
+ #include "../__type_traits/is_constructible.h"
37
+ #include "../__type_traits/is_convertible.h"
38
+ #include "../__type_traits/is_copy_assignable.h"
39
+ #include "../__type_traits/is_default_constructible.h"
40
+ #include "../__type_traits/is_implicitly_default_constructible.h"
41
+ #include "../__type_traits/is_move_assignable.h"
42
+ #include "../__type_traits/is_nothrow_assignable.h"
43
+ #include "../__type_traits/is_nothrow_constructible.h"
44
+ #include "../__type_traits/is_nothrow_copy_assignable.h"
45
+ #include "../__type_traits/is_nothrow_copy_constructible.h"
46
+ #include "../__type_traits/is_nothrow_default_constructible.h"
47
+ #include "../__type_traits/is_nothrow_move_assignable.h"
48
+ #include "../__type_traits/is_nothrow_move_constructible.h"
49
+ #include "../__type_traits/is_same.h"
50
+ #include "../__type_traits/is_swappable.h"
51
+ #include "../__type_traits/make_const_lvalue_ref.h"
52
+ #include "../__utility/forward.h"
53
+ #include "../__utility/move.h"
54
+ #include "../__utility/piecewise_construct.h"
55
+ #include "../cstddef"
56
+
57
+ // Provide compatability between `std::pair` and `cuda::std::pair`
58
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
59
+ #include <utility>
60
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
61
+
62
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
63
+ #pragma GCC system_header
64
+ #endif
65
+
66
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
67
+
68
+ #if defined(_LIBCUDACXX_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR)
69
+ template <class, class>
70
+ struct __non_trivially_copyable_base {
71
+ _LIBCUDACXX_CONSTEXPR _LIBCUDACXX_INLINE_VISIBILITY
72
+ __non_trivially_copyable_base() _NOEXCEPT {}
73
+ _LIBCUDACXX_CONSTEXPR_AFTER_CXX11 _LIBCUDACXX_INLINE_VISIBILITY
74
+ __non_trivially_copyable_base(__non_trivially_copyable_base const&) _NOEXCEPT {}
75
+ };
76
+ #endif
77
+
78
+ template <class _T1, class _T2>
79
+ struct _LIBCUDACXX_TEMPLATE_VIS pair
80
+ #if defined(_LIBCUDACXX_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR)
81
+ : private __non_trivially_copyable_base<_T1, _T2>
82
+ #endif
83
+ {
84
+ typedef _T1 first_type;
85
+ typedef _T2 second_type;
86
+
87
+ _T1 first;
88
+ _T2 second;
89
+
90
+ pair(pair const&) = default;
91
+ pair(pair&&) = default;
92
+
93
+ struct _CheckArgs {
94
+ struct __enable_implicit_default : public integral_constant<bool,
95
+ __is_implicitly_default_constructible<_T1>::value
96
+ && __is_implicitly_default_constructible<_T2>::value>
97
+ {};
98
+
99
+ struct __enable_explicit_default : public integral_constant<bool,
100
+ is_default_constructible<_T1>::value
101
+ && is_default_constructible<_T2>::value
102
+ && !__enable_implicit_default::value>
103
+ {};
104
+
105
+ template <class _U1, class _U2>
106
+ struct __is_pair_constructible : public integral_constant<bool,
107
+ is_constructible<first_type, _U1>::value
108
+ && is_constructible<second_type, _U2>::value>
109
+ {};
110
+
111
+ template <class _U1, class _U2>
112
+ struct __is_implicit : public integral_constant<bool,
113
+ is_convertible<_U1, first_type>::value
114
+ && is_convertible<_U2, second_type>::value>
115
+ {};
116
+
117
+ template <class _U1, class _U2>
118
+ struct __enable_explicit : public integral_constant<bool,
119
+ __is_pair_constructible<_U1, _U2>::value
120
+ && !__is_implicit<_U1, _U2>::value>
121
+ {};
122
+
123
+ template <class _U1, class _U2>
124
+ struct __enable_implicit : public integral_constant<bool,
125
+ __is_pair_constructible<_U1, _U2>::value
126
+ && __is_implicit<_U1, _U2>::value>
127
+ {};
128
+ };
129
+
130
+ template <bool _MaybeEnable>
131
+ using _CheckArgsDep _LIBCUDACXX_NODEBUG_TYPE = __conditional_t<
132
+ _MaybeEnable, _CheckArgs, __check_tuple_constructor_fail>;
133
+
134
+ struct _CheckTupleLikeConstructor {
135
+ template <class _Tuple>
136
+ struct __enable_implicit : public integral_constant<bool,
137
+ __tuple_convertible<_Tuple, pair>::value>
138
+ {};
139
+ template <class _Tuple>
140
+ struct __enable_explicit : public integral_constant<bool,
141
+ __tuple_constructible<_Tuple, pair>::value
142
+ && !__tuple_convertible<_Tuple, pair>::value>
143
+ {};
144
+ template <class _Tuple>
145
+ struct __enable_assign : public integral_constant<bool,
146
+ __tuple_assignable<_Tuple, pair>::value>
147
+ {};
148
+ };
149
+
150
+ template <class _Tuple>
151
+ using _CheckTLC _LIBCUDACXX_NODEBUG_TYPE = __conditional_t<
152
+ __tuple_like_with_size<_Tuple, 2>::value
153
+ && !is_same<__decay_t<_Tuple>, pair>::value,
154
+ _CheckTupleLikeConstructor,
155
+ __check_tuple_constructor_fail
156
+ >;
157
+
158
+ template<bool _Dummy = true, __enable_if_t<
159
+ _CheckArgsDep<_Dummy>::__enable_explicit_default::value
160
+ >* = nullptr>
161
+ explicit _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
162
+ pair() _NOEXCEPT_(is_nothrow_default_constructible<first_type>::value &&
163
+ is_nothrow_default_constructible<second_type>::value)
164
+ : first(), second() {}
165
+
166
+ template<bool _Dummy = true, __enable_if_t<
167
+ _CheckArgsDep<_Dummy>::__enable_implicit_default::value
168
+ >* = nullptr>
169
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
170
+ pair() _NOEXCEPT_(is_nothrow_default_constructible<first_type>::value &&
171
+ is_nothrow_default_constructible<second_type>::value)
172
+ : first(), second() {}
173
+
174
+ template <bool _Dummy = true, __enable_if_t<
175
+ _CheckArgsDep<_Dummy>::template __enable_explicit<__make_const_lvalue_ref<_T1>, __make_const_lvalue_ref<_T2>>::value
176
+ >* = nullptr>
177
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
178
+ explicit pair(_T1 const& __t1, _T2 const& __t2)
179
+ _NOEXCEPT_(is_nothrow_copy_constructible<first_type>::value &&
180
+ is_nothrow_copy_constructible<second_type>::value)
181
+ : first(__t1), second(__t2) {}
182
+
183
+ template<bool _Dummy = true, __enable_if_t<
184
+ _CheckArgsDep<_Dummy>::template __enable_implicit<__make_const_lvalue_ref<_T1>, __make_const_lvalue_ref<_T2>>::value
185
+ >* = nullptr>
186
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
187
+ pair(_T1 const& __t1, _T2 const& __t2)
188
+ _NOEXCEPT_(is_nothrow_copy_constructible<first_type>::value &&
189
+ is_nothrow_copy_constructible<second_type>::value)
190
+ : first(__t1), second(__t2) {}
191
+
192
+ template <
193
+ #if _LIBCUDACXX_STD_VER > 20 // http://wg21.link/P1951
194
+ class _U1 = _T1, class _U2 = _T2,
195
+ #else
196
+ class _U1, class _U2,
197
+ #endif
198
+ __enable_if_t<_CheckArgs::template __enable_explicit<_U1, _U2>::value>* = nullptr
199
+ >
200
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
201
+ explicit pair(_U1&& __u1, _U2&& __u2)
202
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1>::value &&
203
+ is_nothrow_constructible<second_type, _U2>::value))
204
+ : first(_CUDA_VSTD::forward<_U1>(__u1)), second(_CUDA_VSTD::forward<_U2>(__u2)) {}
205
+
206
+ template <
207
+ #if _LIBCUDACXX_STD_VER > 20 // http://wg21.link/P1951
208
+ class _U1 = _T1, class _U2 = _T2,
209
+ #else
210
+ class _U1, class _U2,
211
+ #endif
212
+ __enable_if_t<_CheckArgs::template __enable_implicit<_U1, _U2>::value>* = nullptr
213
+ >
214
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
215
+ pair(_U1&& __u1, _U2&& __u2)
216
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1>::value &&
217
+ is_nothrow_constructible<second_type, _U2>::value))
218
+ : first(_CUDA_VSTD::forward<_U1>(__u1)), second(_CUDA_VSTD::forward<_U2>(__u2)) {}
219
+
220
+ #if _LIBCUDACXX_STD_VER > 20
221
+ template<class _U1, class _U2, __enable_if_t<
222
+ _CheckArgs::template __is_pair_constructible<_U1&, _U2&>::value
223
+ >* = nullptr>
224
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
225
+ explicit(!_CheckArgs::template __is_implicit<_U1&, _U2&>()) pair(pair<_U1, _U2>& __p)
226
+ noexcept((is_nothrow_constructible<first_type, _U1&>::value &&
227
+ is_nothrow_constructible<second_type, _U2&>::value))
228
+ : first(__p.first), second(__p.second) {}
229
+
230
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
231
+ template<class _U1, class _U2, __enable_if_t<
232
+ _CheckArgs::template __is_pair_constructible<_U1&, _U2&>::value
233
+ >* = nullptr>
234
+ _LIBCUDACXX_HOST _LIBCUDACXX_INLINE_VISIBILITY constexpr
235
+ explicit(!_CheckArgs::template __is_implicit<_U1&, _U2&>()) pair(::std::pair<_U1, _U2>& __p)
236
+ noexcept((is_nothrow_constructible<first_type, _U1&>::value &&
237
+ is_nothrow_constructible<second_type, _U2&>::value))
238
+ : first(__p.first), second(__p.second) {}
239
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
240
+ #endif // _LIBCUDACXX_STD_VER > 20
241
+
242
+ template<class _U1, class _U2, __enable_if_t<
243
+ _CheckArgs::template __enable_explicit<_U1 const&, _U2 const&>::value
244
+ >* = nullptr>
245
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
246
+ explicit pair(pair<_U1, _U2> const& __p)
247
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1 const&>::value &&
248
+ is_nothrow_constructible<second_type, _U2 const&>::value))
249
+ : first(__p.first), second(__p.second) {}
250
+
251
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
252
+ template<class _U1, class _U2, __enable_if_t<
253
+ _CheckArgs::template __enable_explicit<_U1 const&, _U2 const&>::value
254
+ >* = nullptr>
255
+ _LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
256
+ explicit pair(::std::pair<_U1, _U2> const& __p)
257
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1 const&>::value &&
258
+ is_nothrow_constructible<second_type, _U2 const&>::value))
259
+ : first(__p.first), second(__p.second) {}
260
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
261
+
262
+ template<class _U1, class _U2, __enable_if_t<
263
+ _CheckArgs::template __enable_implicit<_U1 const&, _U2 const&>::value
264
+ >* = nullptr>
265
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
266
+ pair(pair<_U1, _U2> const& __p)
267
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1 const&>::value &&
268
+ is_nothrow_constructible<second_type, _U2 const&>::value))
269
+ : first(__p.first), second(__p.second) {}
270
+
271
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
272
+ template<class _U1, class _U2, __enable_if_t<
273
+ _CheckArgs::template __enable_implicit<_U1 const&, _U2 const&>::value
274
+ >* = nullptr>
275
+ _LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
276
+ pair(::std::pair<_U1, _U2> const& __p)
277
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1 const&>::value &&
278
+ is_nothrow_constructible<second_type, _U2 const&>::value))
279
+ : first(__p.first), second(__p.second) {}
280
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
281
+
282
+ template<class _U1, class _U2, __enable_if_t<
283
+ _CheckArgs::template __enable_explicit<_U1, _U2>::value
284
+ >* = nullptr>
285
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
286
+ explicit pair(pair<_U1, _U2>&&__p)
287
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1&&>::value &&
288
+ is_nothrow_constructible<second_type, _U2&&>::value))
289
+ : first(_CUDA_VSTD::forward<_U1>(__p.first)), second(_CUDA_VSTD::forward<_U2>(__p.second)) {}
290
+
291
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
292
+ template<class _U1, class _U2, __enable_if_t<
293
+ _CheckArgs::template __enable_explicit<_U1, _U2>::value
294
+ >* = nullptr>
295
+ _LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
296
+ explicit pair(::std::pair<_U1, _U2>&&__p)
297
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1&&>::value &&
298
+ is_nothrow_constructible<second_type, _U2&&>::value))
299
+ : first(_CUDA_VSTD::forward<_U1>(__p.first)), second(_CUDA_VSTD::forward<_U2>(__p.second)) {}
300
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
301
+
302
+ template<class _U1, class _U2, __enable_if_t<
303
+ _CheckArgs::template __enable_implicit<_U1, _U2>::value
304
+ >* = nullptr>
305
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
306
+ pair(pair<_U1, _U2>&& __p)
307
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1&&>::value &&
308
+ is_nothrow_constructible<second_type, _U2&&>::value))
309
+ : first(_CUDA_VSTD::forward<_U1>(__p.first)), second(_CUDA_VSTD::forward<_U2>(__p.second)) {}
310
+
311
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
312
+ template<class _U1, class _U2, __enable_if_t<
313
+ _CheckArgs::template __enable_implicit<_U1, _U2>::value
314
+ >* = nullptr>
315
+ _LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
316
+ pair(::std::pair<_U1, _U2>&& __p)
317
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _U1&&>::value &&
318
+ is_nothrow_constructible<second_type, _U2&&>::value))
319
+ : first(_CUDA_VSTD::forward<_U1>(__p.first)), second(_CUDA_VSTD::forward<_U2>(__p.second)) {}
320
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
321
+
322
+ #if _LIBCUDACXX_STD_VER > 20
323
+ template<class _U1, class _U2, __enable_if_t<
324
+ _CheckArgs::template __is_pair_constructible<const _U1&&, const _U2&&>::value
325
+ >* = nullptr>
326
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
327
+ explicit(!_CheckArgs::template __is_implicit<const _U1&&, const _U2&&>::value)
328
+ pair(const pair<_U1, _U2>&& __p)
329
+ noexcept(is_nothrow_constructible<first_type, const _U1&&>::value &&
330
+ is_nothrow_constructible<second_type, const _U2&&>::value)
331
+ : first(_CUDA_VSTD::move(__p.first)), second(_CUDA_VSTD::move(__p.second)) {}
332
+
333
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
334
+ template<class _U1, class _U2, __enable_if_t<
335
+ _CheckArgs::template __is_pair_constructible<const _U1&&, const _U2&&>::value
336
+ >* = nullptr>
337
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_HOST constexpr
338
+ explicit(!_CheckArgs::template __is_implicit<const _U1&&, const _U2&&>::value)
339
+ pair(const ::std::pair<_U1, _U2>&& __p)
340
+ noexcept(is_nothrow_constructible<first_type, const _U1&&>::value &&
341
+ is_nothrow_constructible<second_type, const _U2&&>::value)
342
+ : first(_CUDA_VSTD::move(__p.first)), second(_CUDA_VSTD::move(__p.second)) {}
343
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
344
+ #endif // _LIBCUDACXX_STD_VER > 20
345
+
346
+ template<class _Tuple, __enable_if_t<
347
+ _CheckTLC<_Tuple>::template __enable_explicit<_Tuple>::value
348
+ >* = nullptr>
349
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
350
+ explicit pair(_Tuple&& __p)
351
+ : first(_CUDA_VSTD::get<0>(_CUDA_VSTD::forward<_Tuple>(__p))),
352
+ second(_CUDA_VSTD::get<1>(_CUDA_VSTD::forward<_Tuple>(__p))) {}
353
+
354
+ template<class _Tuple, __enable_if_t<
355
+ _CheckTLC<_Tuple>::template __enable_implicit<_Tuple>::value
356
+ >* = nullptr>
357
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
358
+ pair(_Tuple&& __p)
359
+ : first(_CUDA_VSTD::get<0>(_CUDA_VSTD::forward<_Tuple>(__p))),
360
+ second(_CUDA_VSTD::get<1>(_CUDA_VSTD::forward<_Tuple>(__p))) {}
361
+
362
+ template <class... _Args1, class... _Args2>
363
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
364
+ pair(piecewise_construct_t __pc,
365
+ tuple<_Args1...> __first_args, tuple<_Args2...> __second_args)
366
+ _NOEXCEPT_((is_nothrow_constructible<first_type, _Args1...>::value &&
367
+ is_nothrow_constructible<second_type, _Args2...>::value))
368
+ : pair(__pc, __first_args, __second_args,
369
+ typename __make_tuple_indices<sizeof...(_Args1)>::type(),
370
+ typename __make_tuple_indices<sizeof...(_Args2) >::type()) {}
371
+
372
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
373
+ pair& operator=(__conditional_t<
374
+ is_copy_assignable<first_type>::value &&
375
+ is_copy_assignable<second_type>::value,
376
+ pair, __nat> const& __p)
377
+ _NOEXCEPT_(is_nothrow_copy_assignable<first_type>::value &&
378
+ is_nothrow_copy_assignable<second_type>::value)
379
+ {
380
+ first = __p.first;
381
+ second = __p.second;
382
+ return *this;
383
+ }
384
+
385
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
386
+ template<class _UT1 = _T1, __enable_if_t<is_copy_assignable<_UT1>::value &&
387
+ is_copy_assignable<_T2>::value, int> = 0>
388
+ _LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
389
+ pair& operator=(::std::pair<_T1, _T2> const& __p)
390
+ _NOEXCEPT_(is_nothrow_copy_assignable<first_type>::value &&
391
+ is_nothrow_copy_assignable<second_type>::value)
392
+ {
393
+ first = __p.first;
394
+ second = __p.second;
395
+ return *this;
396
+ }
397
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
398
+
399
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
400
+ pair& operator=(__conditional_t<
401
+ is_move_assignable<first_type>::value &&
402
+ is_move_assignable<second_type>::value,
403
+ pair, __nat>&& __p)
404
+ _NOEXCEPT_(is_nothrow_move_assignable<first_type>::value &&
405
+ is_nothrow_move_assignable<second_type>::value)
406
+ {
407
+ first = _CUDA_VSTD::forward<first_type>(__p.first);
408
+ second = _CUDA_VSTD::forward<second_type>(__p.second);
409
+ return *this;
410
+ }
411
+
412
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
413
+ template<class _UT1 = _T1, __enable_if_t<is_move_assignable<_UT1>::value &&
414
+ is_move_assignable<_T2>::value, int> = 0>
415
+ _LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
416
+ pair& operator=(::std::pair<_T1, _T2>&& __p)
417
+ _NOEXCEPT_(is_nothrow_move_assignable<first_type>::value &&
418
+ is_nothrow_move_assignable<second_type>::value)
419
+ {
420
+ first = _CUDA_VSTD::forward<first_type>(__p.first);
421
+ second = _CUDA_VSTD::forward<second_type>(__p.second);
422
+ return *this;
423
+ }
424
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
425
+
426
+ #if _LIBCUDACXX_STD_VER > 20
427
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
428
+ const pair& operator=(pair const& __p) const
429
+ noexcept(is_nothrow_copy_assignable_v<const first_type> &&
430
+ is_nothrow_copy_assignable_v<const second_type>)
431
+ requires(is_copy_assignable_v<const first_type> &&
432
+ is_copy_assignable_v<const second_type>) {
433
+ first = __p.first;
434
+ second = __p.second;
435
+ return *this;
436
+ }
437
+
438
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
439
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_HOST constexpr
440
+ const pair& operator=(::std::pair<_T1, _T2> const& __p) const
441
+ noexcept(is_nothrow_copy_assignable_v<const first_type> &&
442
+ is_nothrow_copy_assignable_v<const second_type>)
443
+ requires(is_copy_assignable_v<const first_type> &&
444
+ is_copy_assignable_v<const second_type>) {
445
+ first = __p.first;
446
+ second = __p.second;
447
+ return *this;
448
+ }
449
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
450
+
451
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
452
+ const pair& operator=(pair&& __p) const
453
+ noexcept(is_nothrow_assignable_v<const first_type&, first_type> &&
454
+ is_nothrow_assignable_v<const second_type&, second_type>)
455
+ requires(is_assignable_v<const first_type&, first_type> &&
456
+ is_assignable_v<const second_type&, second_type>) {
457
+ first = _CUDA_VSTD::forward<first_type>(__p.first);
458
+ second = _CUDA_VSTD::forward<second_type>(__p.second);
459
+ return *this;
460
+ }
461
+
462
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
463
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_HOST constexpr
464
+ const pair& operator=(::std::pair<_T1, _T2>&& __p) const
465
+ noexcept(is_nothrow_assignable_v<const first_type&, first_type> &&
466
+ is_nothrow_assignable_v<const second_type&, second_type>)
467
+ requires(is_assignable_v<const first_type&, first_type> &&
468
+ is_assignable_v<const second_type&, second_type>) {
469
+ first = _CUDA_VSTD::forward<first_type>(__p.first);
470
+ second = _CUDA_VSTD::forward<second_type>(__p.second);
471
+ return *this;
472
+ }
473
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
474
+
475
+ template<class _U1, class _U2>
476
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
477
+ const pair& operator=(const pair<_U1, _U2>& __p) const
478
+ requires(is_assignable_v<const first_type&, const _U1&> &&
479
+ is_assignable_v<const second_type&, const _U2&>) {
480
+ first = __p.first;
481
+ second = __p.second;
482
+ return *this;
483
+ }
484
+
485
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
486
+ template<class _U1, class _U2>
487
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_HOST constexpr
488
+ const pair& operator=(const ::std::pair<_U1, _U2>& __p) const
489
+ requires(is_assignable_v<const first_type&, const _U1&> &&
490
+ is_assignable_v<const second_type&, const _U2&>) {
491
+ first = __p.first;
492
+ second = __p.second;
493
+ return *this;
494
+ }
495
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
496
+
497
+ template<class _U1, class _U2>
498
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
499
+ const pair& operator=(pair<_U1, _U2>&& __p) const
500
+ requires(is_assignable_v<const first_type&, _U1> &&
501
+ is_assignable_v<const second_type&, _U2>) {
502
+ first = _CUDA_VSTD::forward<_U1>(__p.first);
503
+ second = _CUDA_VSTD::forward<_U2>(__p.second);
504
+ return *this;
505
+ }
506
+
507
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
508
+ template<class _U1, class _U2>
509
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_HOST constexpr
510
+ const pair& operator=(::std::pair<_U1, _U2>&& __p) const
511
+ requires(is_assignable_v<const first_type&, _U1> &&
512
+ is_assignable_v<const second_type&, _U2>) {
513
+ first = _CUDA_VSTD::forward<_U1>(__p.first);
514
+ second = _CUDA_VSTD::forward<_U2>(__p.second);
515
+ return *this;
516
+ }
517
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
518
+ #endif // _LIBCUDACXX_STD_VER > 20
519
+
520
+ template <class _Tuple, __enable_if_t<
521
+ _CheckTLC<_Tuple>::template __enable_assign<_Tuple>::value
522
+ >* = nullptr>
523
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
524
+ pair& operator=(_Tuple&& __p) {
525
+ first = _CUDA_VSTD::get<0>(_CUDA_VSTD::forward<_Tuple>(__p));
526
+ second = _CUDA_VSTD::get<1>(_CUDA_VSTD::forward<_Tuple>(__p));
527
+ return *this;
528
+ }
529
+
530
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
531
+ void swap(pair& __p) _NOEXCEPT_(__is_nothrow_swappable<first_type>::value &&
532
+ __is_nothrow_swappable<second_type>::value)
533
+ {
534
+ using _CUDA_VSTD::swap;
535
+ swap(first, __p.first);
536
+ swap(second, __p.second);
537
+ }
538
+
539
+ #if _LIBCUDACXX_STD_VER > 20
540
+ _LIBCUDACXX_HIDE_FROM_ABI constexpr
541
+ void swap(const pair& __p) const
542
+ noexcept(__is_nothrow_swappable<const first_type>::value &&
543
+ __is_nothrow_swappable<const second_type>::value)
544
+ {
545
+ using _CUDA_VSTD::swap;
546
+ swap(first, __p.first);
547
+ swap(second, __p.second);
548
+ }
549
+ #endif // _LIBCUDACXX_STD_VER > 20
550
+
551
+ #if defined(__cuda_std__) && !defined(__CUDACC_RTC__)
552
+ _LIBCUDACXX_HOST _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
553
+ operator ::std::pair<_T1, _T2>() const { return { first, second }; }
554
+ #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__)
555
+
556
+ private:
557
+
558
+ template <class... _Args1, class... _Args2, size_t... _I1, size_t... _I2>
559
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
560
+ pair(piecewise_construct_t,
561
+ tuple<_Args1...>& __first_args, tuple<_Args2...>& __second_args,
562
+ __tuple_indices<_I1...>, __tuple_indices<_I2...>);
563
+ };
564
+
565
+ #if _LIBCUDACXX_STD_VER > 14 && !defined(_LIBCUDACXX_HAS_NO_DEDUCTION_GUIDES)
566
+ template<class _T1, class _T2>
567
+ pair(_T1, _T2) -> pair<_T1, _T2>;
568
+ #endif // _LIBCUDACXX_STD_VER > 14 && !defined(_LIBCUDACXX_HAS_NO_DEDUCTION_GUIDES)
569
+
570
+ // [pairs.spec], specialized algorithms
571
+
572
+ template <class _T1, class _T2>
573
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
574
+ bool
575
+ operator==(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
576
+ {
577
+ return __x.first == __y.first && __x.second == __y.second;
578
+ }
579
+
580
+ #ifndef _LIBCUDACXX_HAS_NO_SPACESHIP_OPERATOR
581
+
582
+ template <class _T1, class _T2>
583
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
584
+ common_comparison_category_t<
585
+ __synth_three_way_result<_T1>,
586
+ __synth_three_way_result<_T2> >
587
+ operator<=>(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
588
+ {
589
+ if (auto __c = _CUDA_VSTD::__synth_three_way(__x.first, __y.first); __c != 0) {
590
+ return __c;
591
+ }
592
+ return _CUDA_VSTD::__synth_three_way(__x.second, __y.second);
593
+ }
594
+
595
+ #else // _LIBCUDACXX_HAS_NO_SPACESHIP_OPERATOR
596
+
597
+ template <class _T1, class _T2>
598
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
599
+ bool
600
+ operator!=(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
601
+ {
602
+ return !(__x == __y);
603
+ }
604
+
605
+ template <class _T1, class _T2>
606
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
607
+ bool
608
+ operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
609
+ {
610
+ return __x.first < __y.first || (!(__y.first < __x.first) && __x.second < __y.second);
611
+ }
612
+
613
+ template <class _T1, class _T2>
614
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
615
+ bool
616
+ operator> (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
617
+ {
618
+ return __y < __x;
619
+ }
620
+
621
+ template <class _T1, class _T2>
622
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
623
+ bool
624
+ operator>=(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
625
+ {
626
+ return !(__x < __y);
627
+ }
628
+
629
+ template <class _T1, class _T2>
630
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
631
+ bool
632
+ operator<=(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
633
+ {
634
+ return !(__y < __x);
635
+ }
636
+
637
+ #endif // _LIBCUDACXX_HAS_NO_SPACESHIP_OPERATOR
638
+
639
+ #if _LIBCUDACXX_STD_VER > 17
640
+ template <class _T1, class _T2, class _U1, class _U2, template<class> class _TQual, template<class> class _UQual>
641
+ requires requires { typename pair<common_reference_t<_TQual<_T1>, _UQual<_U1>>,
642
+ common_reference_t<_TQual<_T2>, _UQual<_U2>>>; }
643
+ struct basic_common_reference<pair<_T1, _T2>, pair<_U1, _U2>, _TQual, _UQual> {
644
+ using type = pair<common_reference_t<_TQual<_T1>, _UQual<_U1>>,
645
+ common_reference_t<_TQual<_T2>, _UQual<_U2>>>;
646
+ };
647
+
648
+ template <class _T1, class _T2, class _U1, class _U2>
649
+ requires requires { typename pair<common_type_t<_T1, _U1>, common_type_t<_T2, _U2>>; }
650
+ struct common_type<pair<_T1, _T2>, pair<_U1, _U2>> {
651
+ using type = pair<common_type_t<_T1, _U1>, common_type_t<_T2, _U2>>;
652
+ };
653
+ #endif // _LIBCUDACXX_STD_VER > 17
654
+
655
+ template <class _T1, class _T2>
656
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX17
657
+ __enable_if_t
658
+ <
659
+ __is_swappable<_T1>::value &&
660
+ __is_swappable<_T2>::value,
661
+ void
662
+ >
663
+ swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
664
+ _NOEXCEPT_((__is_nothrow_swappable<_T1>::value &&
665
+ __is_nothrow_swappable<_T2>::value))
666
+ {
667
+ __x.swap(__y);
668
+ }
669
+
670
+ #if _LIBCUDACXX_STD_VER > 20
671
+ template <class _T1, class _T2>
672
+ requires (__is_swappable<const _T1>::value &&
673
+ __is_swappable<const _T2>::value)
674
+ _LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr
675
+ void swap(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
676
+ noexcept(noexcept(__x.swap(__y)))
677
+ {
678
+ __x.swap(__y);
679
+ }
680
+ #endif // _LIBCUDACXX_STD_VER > 20
681
+
682
+ template <class _T1, class _T2>
683
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
684
+ pair<typename __unwrap_ref_decay<_T1>::type, typename __unwrap_ref_decay<_T2>::type>
685
+ make_pair(_T1&& __t1, _T2&& __t2)
686
+ {
687
+ return pair<typename __unwrap_ref_decay<_T1>::type, typename __unwrap_ref_decay<_T2>::type>
688
+ (_CUDA_VSTD::forward<_T1>(__t1), _CUDA_VSTD::forward<_T2>(__t2));
689
+ }
690
+
691
+ template <class _T1, class _T2>
692
+ struct _LIBCUDACXX_TEMPLATE_VIS tuple_size<pair<_T1, _T2> >
693
+ : public integral_constant<size_t, 2> {};
694
+
695
+ template <size_t _Ip, class _T1, class _T2>
696
+ struct _LIBCUDACXX_TEMPLATE_VIS tuple_element<_Ip, pair<_T1, _T2> >
697
+ {
698
+ static_assert(_Ip < 2, "Index out of bounds in std::tuple_element<std::pair<T1, T2>>");
699
+ };
700
+
701
+ template <class _T1, class _T2>
702
+ struct _LIBCUDACXX_TEMPLATE_VIS tuple_element<0, pair<_T1, _T2> >
703
+ {
704
+ typedef _LIBCUDACXX_NODEBUG_TYPE _T1 type;
705
+ };
706
+
707
+ template <class _T1, class _T2>
708
+ struct _LIBCUDACXX_TEMPLATE_VIS tuple_element<1, pair<_T1, _T2> >
709
+ {
710
+ typedef _LIBCUDACXX_NODEBUG_TYPE _T2 type;
711
+ };
712
+
713
+ template <size_t _Ip> struct __get_pair;
714
+
715
+ template <>
716
+ struct __get_pair<0>
717
+ {
718
+ template <class _T1, class _T2>
719
+ static
720
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
721
+ _T1&
722
+ get(pair<_T1, _T2>& __p) _NOEXCEPT {return __p.first;}
723
+
724
+ template <class _T1, class _T2>
725
+ static
726
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
727
+ const _T1&
728
+ get(const pair<_T1, _T2>& __p) _NOEXCEPT {return __p.first;}
729
+
730
+ template <class _T1, class _T2>
731
+ static
732
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
733
+ _T1&&
734
+ get(pair<_T1, _T2>&& __p) _NOEXCEPT {return _CUDA_VSTD::forward<_T1>(__p.first);}
735
+
736
+ template <class _T1, class _T2>
737
+ static
738
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
739
+ const _T1&&
740
+ get(const pair<_T1, _T2>&& __p) _NOEXCEPT {return _CUDA_VSTD::forward<const _T1>(__p.first);}
741
+ };
742
+
743
+ template <>
744
+ struct __get_pair<1>
745
+ {
746
+ template <class _T1, class _T2>
747
+ static
748
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
749
+ _T2&
750
+ get(pair<_T1, _T2>& __p) _NOEXCEPT {return __p.second;}
751
+
752
+ template <class _T1, class _T2>
753
+ static
754
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
755
+ const _T2&
756
+ get(const pair<_T1, _T2>& __p) _NOEXCEPT {return __p.second;}
757
+
758
+ template <class _T1, class _T2>
759
+ static
760
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
761
+ _T2&&
762
+ get(pair<_T1, _T2>&& __p) _NOEXCEPT {return _CUDA_VSTD::forward<_T2>(__p.second);}
763
+
764
+ template <class _T1, class _T2>
765
+ static
766
+ _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
767
+ const _T2&&
768
+ get(const pair<_T1, _T2>&& __p) _NOEXCEPT {return _CUDA_VSTD::forward<const _T2>(__p.second);}
769
+ };
770
+
771
+ template <size_t _Ip, class _T1, class _T2>
772
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
773
+ typename tuple_element<_Ip, pair<_T1, _T2> >::type&
774
+ get(pair<_T1, _T2>& __p) _NOEXCEPT
775
+ {
776
+ return __get_pair<_Ip>::get(__p);
777
+ }
778
+
779
+ template <size_t _Ip, class _T1, class _T2>
780
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
781
+ const typename tuple_element<_Ip, pair<_T1, _T2> >::type&
782
+ get(const pair<_T1, _T2>& __p) _NOEXCEPT
783
+ {
784
+ return __get_pair<_Ip>::get(__p);
785
+ }
786
+
787
+ template <size_t _Ip, class _T1, class _T2>
788
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
789
+ typename tuple_element<_Ip, pair<_T1, _T2> >::type&&
790
+ get(pair<_T1, _T2>&& __p) _NOEXCEPT
791
+ {
792
+ return __get_pair<_Ip>::get(_CUDA_VSTD::move(__p));
793
+ }
794
+
795
+ template <size_t _Ip, class _T1, class _T2>
796
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
797
+ const typename tuple_element<_Ip, pair<_T1, _T2> >::type&&
798
+ get(const pair<_T1, _T2>&& __p) _NOEXCEPT
799
+ {
800
+ return __get_pair<_Ip>::get(_CUDA_VSTD::move(__p));
801
+ }
802
+
803
+ #if _LIBCUDACXX_STD_VER > 11
804
+ template <class _T1, class _T2>
805
+ inline _LIBCUDACXX_INLINE_VISIBILITY
806
+ constexpr _T1 & get(pair<_T1, _T2>& __p) _NOEXCEPT
807
+ {
808
+ return __get_pair<0>::get(__p);
809
+ }
810
+
811
+ template <class _T1, class _T2>
812
+ inline _LIBCUDACXX_INLINE_VISIBILITY
813
+ constexpr _T1 const & get(pair<_T1, _T2> const& __p) _NOEXCEPT
814
+ {
815
+ return __get_pair<0>::get(__p);
816
+ }
817
+
818
+ template <class _T1, class _T2>
819
+ inline _LIBCUDACXX_INLINE_VISIBILITY
820
+ constexpr _T1 && get(pair<_T1, _T2>&& __p) _NOEXCEPT
821
+ {
822
+ return __get_pair<0>::get(_CUDA_VSTD::move(__p));
823
+ }
824
+
825
+ template <class _T1, class _T2>
826
+ inline _LIBCUDACXX_INLINE_VISIBILITY
827
+ constexpr _T1 const && get(pair<_T1, _T2> const&& __p) _NOEXCEPT
828
+ {
829
+ return __get_pair<0>::get(_CUDA_VSTD::move(__p));
830
+ }
831
+
832
+ template <class _T1, class _T2>
833
+ inline _LIBCUDACXX_INLINE_VISIBILITY
834
+ constexpr _T1 & get(pair<_T2, _T1>& __p) _NOEXCEPT
835
+ {
836
+ return __get_pair<1>::get(__p);
837
+ }
838
+
839
+ template <class _T1, class _T2>
840
+ inline _LIBCUDACXX_INLINE_VISIBILITY
841
+ constexpr _T1 const & get(pair<_T2, _T1> const& __p) _NOEXCEPT
842
+ {
843
+ return __get_pair<1>::get(__p);
844
+ }
845
+
846
+ template <class _T1, class _T2>
847
+ inline _LIBCUDACXX_INLINE_VISIBILITY
848
+ constexpr _T1 && get(pair<_T2, _T1>&& __p) _NOEXCEPT
849
+ {
850
+ return __get_pair<1>::get(_CUDA_VSTD::move(__p));
851
+ }
852
+
853
+ template <class _T1, class _T2>
854
+ inline _LIBCUDACXX_INLINE_VISIBILITY
855
+ constexpr _T1 const && get(pair<_T2, _T1> const&& __p) _NOEXCEPT
856
+ {
857
+ return __get_pair<1>::get(_CUDA_VSTD::move(__p));
858
+ }
859
+
860
+ #endif // _LIBCUDACXX_STD_VER > 11
861
+
862
+ _LIBCUDACXX_END_NAMESPACE_STD
863
+
864
+ #endif // _LIBCUDACXX___UTILITY_PAIR_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/piecewise_construct.h ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_PIECEWISE_CONSTRUCT_H
11
+ #define _LIBCUDACXX___UTILITY_PIECEWISE_CONSTRUCT_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
18
+ #pragma GCC system_header
19
+ #endif
20
+
21
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
22
+
23
+ struct _LIBCUDACXX_TEMPLATE_VIS piecewise_construct_t { explicit piecewise_construct_t() = default; };
24
+ #if defined(_LIBCUDACXX_CXX03_LANG) || defined(_LIBCUDACXX_BUILDING_LIBRARY)
25
+ extern _LIBCUDACXX_EXPORTED_FROM_ABI const piecewise_construct_t piecewise_construct;// = piecewise_construct_t();
26
+ #else
27
+ /* _LIBCUDACXX_INLINE_VAR */ constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t();
28
+ #endif
29
+
30
+ _LIBCUDACXX_END_NAMESPACE_STD
31
+
32
+ #endif // _LIBCUDACXX___UTILITY_PIECEWISE_CONSTRUCT_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/priority_tag.h ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_PRIORITY_TAG_H
11
+ #define _LIBCUDACXX___UTILITY_PRIORITY_TAG_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../cstddef"
18
+
19
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
20
+ #pragma GCC system_header
21
+ #endif
22
+
23
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
24
+
25
+ template<size_t _Ip> struct __priority_tag : __priority_tag<_Ip - 1> {};
26
+ template<> struct __priority_tag<0> {};
27
+
28
+ _LIBCUDACXX_END_NAMESPACE_STD
29
+
30
+ #endif // _LIBCUDACXX___UTILITY_PRIORITY_TAG_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/rel_ops.h ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_REL_OPS_H
11
+ #define _LIBCUDACXX___UTILITY_REL_OPS_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__utility/forward.h"
18
+ #include "../__utility/move.h"
19
+
20
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
21
+ #pragma GCC system_header
22
+ #endif
23
+
24
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
25
+
26
+ namespace rel_ops
27
+ {
28
+
29
+ template<class _Tp>
30
+ inline _LIBCUDACXX_INLINE_VISIBILITY
31
+ bool
32
+ operator!=(const _Tp& __x, const _Tp& __y)
33
+ {
34
+ return !(__x == __y);
35
+ }
36
+
37
+ template<class _Tp>
38
+ inline _LIBCUDACXX_INLINE_VISIBILITY
39
+ bool
40
+ operator> (const _Tp& __x, const _Tp& __y)
41
+ {
42
+ return __y < __x;
43
+ }
44
+
45
+ template<class _Tp>
46
+ inline _LIBCUDACXX_INLINE_VISIBILITY
47
+ bool
48
+ operator<=(const _Tp& __x, const _Tp& __y)
49
+ {
50
+ return !(__y < __x);
51
+ }
52
+
53
+ template<class _Tp>
54
+ inline _LIBCUDACXX_INLINE_VISIBILITY
55
+ bool
56
+ operator>=(const _Tp& __x, const _Tp& __y)
57
+ {
58
+ return !(__x < __y);
59
+ }
60
+
61
+ } // namespace rel_ops
62
+
63
+ _LIBCUDACXX_END_NAMESPACE_STD
64
+
65
+ #endif // _LIBCUDACXX___UTILITY_REL_OPS_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/swap.h ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_SWAP_H
11
+ #define _LIBCUDACXX___UTILITY_SWAP_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../__type_traits/enable_if.h"
18
+ #include "../__type_traits/is_move_assignable.h"
19
+ #include "../__type_traits/is_move_constructible.h"
20
+ #include "../__type_traits/is_nothrow_move_assignable.h"
21
+ #include "../__type_traits/is_nothrow_move_constructible.h"
22
+ #include "../__type_traits/is_swappable.h"
23
+ #include "../__utility/move.h"
24
+ #include "../cstddef"
25
+
26
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
27
+ #pragma GCC system_header
28
+ #endif
29
+
30
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
31
+
32
+ template <class _Tp>
33
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
34
+ __swap_result_t<_Tp>
35
+ swap(_Tp& __x, _Tp& __y) noexcept(_LIBCUDACXX_TRAIT(is_nothrow_move_constructible, _Tp)
36
+ && _LIBCUDACXX_TRAIT(is_nothrow_move_assignable, _Tp)) {
37
+ _Tp __t(_CUDA_VSTD::move(__x));
38
+ __x = _CUDA_VSTD::move(__y);
39
+ __y = _CUDA_VSTD::move(__t);
40
+ }
41
+
42
+ template <class _Tp, size_t _Np>
43
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR_AFTER_CXX11
44
+ __enable_if_t<__is_swappable<_Tp>::value>
45
+ swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) noexcept(__is_nothrow_swappable<_Tp>::value) {
46
+ for (size_t __i = 0; __i != _Np; ++__i) {
47
+ swap(__a[__i], __b[__i]);
48
+ }
49
+ }
50
+
51
+ _LIBCUDACXX_END_NAMESPACE_STD
52
+
53
+ #endif // _LIBCUDACXX___UTILITY_SWAP_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/to_underlying.h ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------------------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
8
+ //
9
+ //===----------------------------------------------------------------------===//
10
+
11
+ #ifndef _LIBCUDACXX___UTILITY_TO_UNDERLYING_H
12
+ #define _LIBCUDACXX___UTILITY_TO_UNDERLYING_H
13
+
14
+ #ifndef __cuda_std__
15
+ #include <__config>
16
+ #endif // __cuda_std__
17
+
18
+ #include "../__type_traits/underlying_type.h"
19
+
20
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
21
+ #pragma GCC system_header
22
+ #endif
23
+
24
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
25
+
26
+ #ifndef _LIBCUDACXX_CXX03_LANG
27
+ template <class _Tp>
28
+ _LIBCUDACXX_INLINE_VISIBILITY constexpr typename underlying_type<_Tp>::type
29
+ __to_underlying(_Tp __val) noexcept {
30
+ return static_cast<typename underlying_type<_Tp>::type>(__val);
31
+ }
32
+ #endif // !_LIBCUDACXX_CXX03_LANG
33
+
34
+ #if _LIBCUDACXX_STD_VER > 20
35
+ template <class _Tp>
36
+ _LIBCUDACXX_NODISCARD_EXT _LIBCUDACXX_INLINE_VISIBILITY constexpr underlying_type_t<_Tp>
37
+ to_underlying(_Tp __val) noexcept {
38
+ return _CUDA_VSTD::__to_underlying(__val);
39
+ }
40
+ #endif
41
+
42
+ _LIBCUDACXX_END_NAMESPACE_STD
43
+
44
+ #endif // _LIBCUDACXX___UTILITY_TO_UNDERLYING_H
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/__utility/unreachable.h ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ // SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX___UTILITY_UNREACHABLE_H
11
+ #define _LIBCUDACXX___UTILITY_UNREACHABLE_H
12
+
13
+ #ifndef __cuda_std__
14
+ #include <__config>
15
+ #endif // __cuda_std__
16
+
17
+ #include "../cstdlib"
18
+
19
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
20
+ #pragma GCC system_header
21
+ #endif
22
+
23
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
24
+
25
+ _LIBCUDACXX_NORETURN _LIBCUDACXX_INLINE_VISIBILITY
26
+ inline void __libcpp_unreachable()
27
+ {
28
+ _LIBCUDACXX_UNREACHABLE();
29
+ }
30
+
31
+ #if _LIBCUDACXX_STD_VER > 20
32
+
33
+ [[noreturn]] _LIBCUDACXX_INLINE_VISIBILITY
34
+ inline void unreachable() { _LIBCUDACXX_UNREACHABLE(); }
35
+
36
+ #endif // _LIBCUDACXX_STD_VER > 20
37
+
38
+ _LIBCUDACXX_END_NAMESPACE_STD
39
+
40
+ #endif
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/__config ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- __config ---------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_CONFIG
11
+ #define _LIBCUDACXX_EXPERIMENTAL_CONFIG
12
+
13
+ #include <__config>
14
+
15
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
16
+ #pragma GCC system_header
17
+ #endif
18
+
19
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL namespace std { namespace experimental {
20
+ #define _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL } }
21
+ #define _CUDA_VSTD_EXPERIMENTAL std::experimental
22
+
23
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_LFTS _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace fundamentals_v1 {
24
+ #define _LIBCUDACXX_END_NAMESPACE_LFTS } } }
25
+ #define _CUDA_VSTD_LFTS _CUDA_VSTD_EXPERIMENTAL::fundamentals_v1
26
+
27
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_V2 _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace fundamentals_v2 {
28
+ #define _LIBCUDACXX_END_NAMESPACE_LFTS_V2 } } }
29
+ #define _CUDA_VSTD_LFTS_V2 _CUDA_VSTD_EXPERIMENTAL::fundamentals_v2
30
+
31
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR _LIBCUDACXX_BEGIN_NAMESPACE_LFTS namespace pmr {
32
+ #define _LIBCUDACXX_END_NAMESPACE_LFTS_PMR _LIBCUDACXX_END_NAMESPACE_LFTS }
33
+ #define _CUDA_VSTD_LFTS_PMR _CUDA_VSTD_LFTS::pmr
34
+
35
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_CHRONO_LFTS _LIBCUDACXX_BEGIN_NAMESPACE_STD \
36
+ namespace chrono { namespace experimental { inline namespace fundamentals_v1 {
37
+ #define _LIBCUDACXX_END_NAMESPACE_CHRONO_LFTS _LIBCUDACXX_END_NAMESPACE_STD } } }
38
+
39
+ #if defined(_LIBCUDACXX_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM)
40
+ # define _LIBCUDACXX_DEPRECATED_EXPERIMENTAL_FILESYSTEM /* nothing */
41
+ #else
42
+ # define _LIBCUDACXX_DEPRECATED_EXPERIMENTAL_FILESYSTEM __attribute__((deprecated("std::experimental::filesystem has now been deprecated in favor of C++17's std::filesystem. Please stop using it and start using std::filesystem. This experimental version will be removed in LLVM 11. You can remove this warning by defining the _LIBCUDACXX_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM macro.")))
43
+ #endif
44
+
45
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_FILESYSTEM \
46
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL namespace filesystem _LIBCUDACXX_DEPRECATED_EXPERIMENTAL_FILESYSTEM { \
47
+ inline namespace v1 {
48
+
49
+ #define _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_FILESYSTEM \
50
+ } } _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL
51
+
52
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_COROUTINES \
53
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace coroutines_v1 {
54
+
55
+ #define _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_COROUTINES \
56
+ } _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL
57
+
58
+ #define _CUDA_VSTD_CORO _CUDA_VSTD_EXPERIMENTAL::coroutines_v1
59
+
60
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_SIMD \
61
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL inline namespace parallelism_v2 {
62
+
63
+ #define _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_SIMD \
64
+ } _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL
65
+
66
+ #define _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_SIMD_ABI \
67
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_SIMD namespace simd_abi {
68
+
69
+ #define _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_SIMD_ABI \
70
+ } _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_SIMD
71
+
72
+ // TODO: support more targets
73
+ #if defined(__AVX__)
74
+ #define _LIBCUDACXX_NATIVE_SIMD_WIDTH_IN_BYTES 32
75
+ #else
76
+ #define _LIBCUDACXX_NATIVE_SIMD_WIDTH_IN_BYTES 16
77
+ #endif
78
+
79
+ #endif
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/__memory ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------------------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL___MEMORY
11
+ #define _LIBCUDACXX_EXPERIMENTAL___MEMORY
12
+
13
+ #include <experimental/__config>
14
+ #include <experimental/utility> // for erased_type
15
+ #include <__functional_base>
16
+ #include <type_traits>
17
+
18
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS
19
+
20
+ template <
21
+ class _Tp, class _Alloc
22
+ , bool = uses_allocator<_Tp, _Alloc>::value
23
+ , bool = __has_allocator_type<_Tp>::value
24
+ >
25
+ struct __lfts_uses_allocator : public false_type {};
26
+
27
+ template <class _Tp, class _Alloc>
28
+ struct __lfts_uses_allocator<_Tp, _Alloc, false, false> : public false_type {};
29
+
30
+ template <class _Tp, class _Alloc, bool HasAlloc>
31
+ struct __lfts_uses_allocator<_Tp, _Alloc, true, HasAlloc> : public true_type {};
32
+
33
+ template <class _Tp, class _Alloc>
34
+ struct __lfts_uses_allocator<_Tp, _Alloc, false, true>
35
+ : public integral_constant<bool
36
+ , is_convertible<_Alloc, typename _Tp::allocator_type>::value
37
+ || is_same<erased_type, typename _Tp::allocator_type>::value
38
+ >
39
+ {};
40
+
41
+ template <bool _UsesAlloc, class _Tp, class _Alloc, class ..._Args>
42
+ struct __lfts_uses_alloc_ctor_imp
43
+ {
44
+ static const int value = 0;
45
+ };
46
+
47
+ template <class _Tp, class _Alloc, class ..._Args>
48
+ struct __lfts_uses_alloc_ctor_imp<true, _Tp, _Alloc, _Args...>
49
+ {
50
+ static const bool __ic_first
51
+ = is_constructible<_Tp, allocator_arg_t, _Alloc, _Args...>::value;
52
+
53
+ static const bool __ic_second =
54
+ conditional<
55
+ __ic_first,
56
+ false_type,
57
+ is_constructible<_Tp, _Args..., _Alloc>
58
+ >::type::value;
59
+
60
+ static_assert(__ic_first || __ic_second,
61
+ "Request for uses allocator construction is ill-formed");
62
+
63
+ static const int value = __ic_first ? 1 : 2;
64
+ };
65
+
66
+ template <class _Tp, class _Alloc, class ..._Args>
67
+ struct __lfts_uses_alloc_ctor
68
+ : integral_constant<int,
69
+ __lfts_uses_alloc_ctor_imp<
70
+ __lfts_uses_allocator<_Tp, _Alloc>::value
71
+ , _Tp, _Alloc, _Args...
72
+ >::value
73
+ >
74
+ {};
75
+
76
+ template <class _Tp, class _Alloc, class ..._Args>
77
+ inline _LIBCUDACXX_INLINE_VISIBILITY
78
+ void __lfts_user_alloc_construct(
79
+ _Tp * __store, const _Alloc & __a, _Args &&... __args)
80
+ {
81
+ _CUDA_VSTD::__user_alloc_construct_impl(
82
+ typename __lfts_uses_alloc_ctor<_Tp, _Alloc, _Args...>::type()
83
+ , __store, __a, _CUDA_VSTD::forward<_Args>(__args)...
84
+ );
85
+ }
86
+
87
+ _LIBCUDACXX_END_NAMESPACE_LFTS
88
+
89
+ #endif /* _LIBCUDACXX_EXPERIMENTAL___MEMORY */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/algorithm ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===-------------------------- algorithm ---------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_ALGORITHM
11
+ #define _LIBCUDACXX_EXPERIMENTAL_ALGORITHM
12
+
13
+ /*
14
+ experimental/algorithm synopsis
15
+
16
+ #include <algorithm>
17
+
18
+ namespace std {
19
+ namespace experimental {
20
+ inline namespace fundamentals_v1 {
21
+
22
+ template <class ForwardIterator, class Searcher>
23
+ ForwardIterator search(ForwardIterator first, ForwardIterator last,
24
+ const Searcher &searcher);
25
+
26
+ // sample removed because it's now part of C++17
27
+
28
+ } // namespace fundamentals_v1
29
+ } // namespace experimental
30
+ } // namespace std
31
+
32
+ */
33
+
34
+ #include <experimental/__config>
35
+ #include <algorithm>
36
+ #include <type_traits>
37
+
38
+ #include <__debug>
39
+
40
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
41
+ #pragma GCC system_header
42
+ #endif
43
+
44
+ _LIBCUDACXX_PUSH_MACROS
45
+ #include <__undef_macros>
46
+
47
+
48
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS
49
+
50
+ template <class _ForwardIterator, class _Searcher>
51
+ _LIBCUDACXX_INLINE_VISIBILITY
52
+ _ForwardIterator search(_ForwardIterator __f, _ForwardIterator __l, const _Searcher &__s)
53
+ { return __s(__f, __l).first; }
54
+
55
+ _LIBCUDACXX_END_NAMESPACE_LFTS
56
+
57
+ _LIBCUDACXX_POP_MACROS
58
+
59
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_ALGORITHM */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/coroutine ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------- coroutine -----------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_COROUTINE
11
+ #define _LIBCUDACXX_EXPERIMENTAL_COROUTINE
12
+
13
+ /**
14
+ experimental/coroutine synopsis
15
+
16
+ // C++next
17
+
18
+ namespace std {
19
+ namespace experimental {
20
+ inline namespace coroutines_v1 {
21
+
22
+ // 18.11.1 coroutine traits
23
+ template <typename R, typename... ArgTypes>
24
+ class coroutine_traits;
25
+ // 18.11.2 coroutine handle
26
+ template <typename Promise = void>
27
+ class coroutine_handle;
28
+ // 18.11.2.7 comparison operators:
29
+ bool operator==(coroutine_handle<> x, coroutine_handle<> y) _NOEXCEPT;
30
+ bool operator!=(coroutine_handle<> x, coroutine_handle<> y) _NOEXCEPT;
31
+ bool operator<(coroutine_handle<> x, coroutine_handle<> y) _NOEXCEPT;
32
+ bool operator<=(coroutine_handle<> x, coroutine_handle<> y) _NOEXCEPT;
33
+ bool operator>=(coroutine_handle<> x, coroutine_handle<> y) _NOEXCEPT;
34
+ bool operator>(coroutine_handle<> x, coroutine_handle<> y) _NOEXCEPT;
35
+ // 18.11.3 trivial awaitables
36
+ struct suspend_never;
37
+ struct suspend_always;
38
+ // 18.11.2.8 hash support:
39
+ template <class T> struct hash;
40
+ template <class P> struct hash<coroutine_handle<P>>;
41
+
42
+ } // namespace coroutines_v1
43
+ } // namespace experimental
44
+ } // namespace std
45
+
46
+ */
47
+
48
+ #include <experimental/__config>
49
+ #include <new>
50
+ #include <type_traits>
51
+ #include <functional>
52
+ #include <memory> // for hash<T*>
53
+ #include <cstddef>
54
+ #include <__debug>
55
+
56
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
57
+ #pragma GCC system_header
58
+ #endif
59
+
60
+ #ifdef _LIBCUDACXX_HAS_NO_COROUTINES
61
+ # if defined(_LIBCUDACXX_WARNING)
62
+ _LIBCUDACXX_WARNING("<experimental/coroutine> cannot be used with this compiler")
63
+ # else
64
+ # warning <experimental/coroutine> cannot be used with this compiler
65
+ # endif
66
+ #endif
67
+
68
+ #ifndef _LIBCUDACXX_HAS_NO_COROUTINES
69
+
70
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_COROUTINES
71
+
72
+ template <class _Tp, class = void>
73
+ struct __coroutine_traits_sfinae {};
74
+
75
+ template <class _Tp>
76
+ struct __coroutine_traits_sfinae<
77
+ _Tp, __void_t<typename _Tp::promise_type>>
78
+ {
79
+ using promise_type = typename _Tp::promise_type;
80
+ };
81
+
82
+ template <typename _Ret, typename... _Args>
83
+ struct coroutine_traits
84
+ : public __coroutine_traits_sfinae<_Ret>
85
+ {
86
+ };
87
+
88
+ template <typename _Promise = void>
89
+ class _LIBCUDACXX_TEMPLATE_VIS coroutine_handle;
90
+
91
+ template <>
92
+ class _LIBCUDACXX_TEMPLATE_VIS coroutine_handle<void> {
93
+ public:
94
+ _LIBCUDACXX_INLINE_VISIBILITY
95
+ _LIBCUDACXX_CONSTEXPR coroutine_handle() _NOEXCEPT : __handle_(nullptr) {}
96
+
97
+ _LIBCUDACXX_INLINE_VISIBILITY
98
+ _LIBCUDACXX_CONSTEXPR coroutine_handle(nullptr_t) _NOEXCEPT : __handle_(nullptr) {}
99
+
100
+ _LIBCUDACXX_INLINE_VISIBILITY
101
+ coroutine_handle& operator=(nullptr_t) _NOEXCEPT {
102
+ __handle_ = nullptr;
103
+ return *this;
104
+ }
105
+
106
+ _LIBCUDACXX_INLINE_VISIBILITY
107
+ _LIBCUDACXX_CONSTEXPR void* address() const _NOEXCEPT { return __handle_; }
108
+
109
+ _LIBCUDACXX_INLINE_VISIBILITY
110
+ _LIBCUDACXX_CONSTEXPR explicit operator bool() const _NOEXCEPT { return __handle_; }
111
+
112
+ _LIBCUDACXX_INLINE_VISIBILITY
113
+ void operator()() { resume(); }
114
+
115
+ _LIBCUDACXX_INLINE_VISIBILITY
116
+ void resume() {
117
+ _LIBCUDACXX_ASSERT(__is_suspended(),
118
+ "resume() can only be called on suspended coroutines");
119
+ _LIBCUDACXX_ASSERT(!done(),
120
+ "resume() has undefined behavior when the coroutine is done");
121
+ __builtin_coro_resume(__handle_);
122
+ }
123
+
124
+ _LIBCUDACXX_INLINE_VISIBILITY
125
+ void destroy() {
126
+ _LIBCUDACXX_ASSERT(__is_suspended(),
127
+ "destroy() can only be called on suspended coroutines");
128
+ __builtin_coro_destroy(__handle_);
129
+ }
130
+
131
+ _LIBCUDACXX_INLINE_VISIBILITY
132
+ bool done() const {
133
+ _LIBCUDACXX_ASSERT(__is_suspended(),
134
+ "done() can only be called on suspended coroutines");
135
+ return __builtin_coro_done(__handle_);
136
+ }
137
+
138
+ public:
139
+ _LIBCUDACXX_INLINE_VISIBILITY
140
+ static coroutine_handle from_address(void* __addr) _NOEXCEPT {
141
+ coroutine_handle __tmp;
142
+ __tmp.__handle_ = __addr;
143
+ return __tmp;
144
+ }
145
+
146
+ // FIXME: Should from_address(nullptr) be allowed?
147
+ _LIBCUDACXX_INLINE_VISIBILITY
148
+ static coroutine_handle from_address(nullptr_t) _NOEXCEPT {
149
+ return coroutine_handle(nullptr);
150
+ }
151
+
152
+ template <class _Tp, bool _CallIsValid = false>
153
+ static coroutine_handle from_address(_Tp*) {
154
+ static_assert(_CallIsValid,
155
+ "coroutine_handle<void>::from_address cannot be called with "
156
+ "non-void pointers");
157
+ }
158
+
159
+ private:
160
+ bool __is_suspended() const _NOEXCEPT {
161
+ // FIXME actually implement a check for if the coro is suspended.
162
+ return __handle_;
163
+ }
164
+
165
+ template <class _PromiseT> friend class coroutine_handle;
166
+ void* __handle_;
167
+ };
168
+
169
+ // 18.11.2.7 comparison operators:
170
+ inline _LIBCUDACXX_INLINE_VISIBILITY
171
+ bool operator==(coroutine_handle<> __x, coroutine_handle<> __y) _NOEXCEPT {
172
+ return __x.address() == __y.address();
173
+ }
174
+ inline _LIBCUDACXX_INLINE_VISIBILITY
175
+ bool operator!=(coroutine_handle<> __x, coroutine_handle<> __y) _NOEXCEPT {
176
+ return !(__x == __y);
177
+ }
178
+ inline _LIBCUDACXX_INLINE_VISIBILITY
179
+ bool operator<(coroutine_handle<> __x, coroutine_handle<> __y) _NOEXCEPT {
180
+ return less<void*>()(__x.address(), __y.address());
181
+ }
182
+ inline _LIBCUDACXX_INLINE_VISIBILITY
183
+ bool operator>(coroutine_handle<> __x, coroutine_handle<> __y) _NOEXCEPT {
184
+ return __y < __x;
185
+ }
186
+ inline _LIBCUDACXX_INLINE_VISIBILITY
187
+ bool operator<=(coroutine_handle<> __x, coroutine_handle<> __y) _NOEXCEPT {
188
+ return !(__x > __y);
189
+ }
190
+ inline _LIBCUDACXX_INLINE_VISIBILITY
191
+ bool operator>=(coroutine_handle<> __x, coroutine_handle<> __y) _NOEXCEPT {
192
+ return !(__x < __y);
193
+ }
194
+
195
+ template <typename _Promise>
196
+ class _LIBCUDACXX_TEMPLATE_VIS coroutine_handle : public coroutine_handle<> {
197
+ using _Base = coroutine_handle<>;
198
+ public:
199
+ #ifndef _LIBCUDACXX_CXX03_LANG
200
+ // 18.11.2.1 construct/reset
201
+ using coroutine_handle<>::coroutine_handle;
202
+ #else
203
+ _LIBCUDACXX_INLINE_VISIBILITY coroutine_handle() _NOEXCEPT : _Base() {}
204
+ _LIBCUDACXX_INLINE_VISIBILITY coroutine_handle(nullptr_t) _NOEXCEPT : _Base(nullptr) {}
205
+ #endif
206
+ _LIBCUDACXX_INLINE_VISIBILITY
207
+ coroutine_handle& operator=(nullptr_t) _NOEXCEPT {
208
+ _Base::operator=(nullptr);
209
+ return *this;
210
+ }
211
+
212
+ _LIBCUDACXX_INLINE_VISIBILITY
213
+ _Promise& promise() const {
214
+ return *static_cast<_Promise*>(
215
+ __builtin_coro_promise(this->__handle_, _LIBCUDACXX_ALIGNOF(_Promise), false));
216
+ }
217
+
218
+ public:
219
+ _LIBCUDACXX_INLINE_VISIBILITY
220
+ static coroutine_handle from_address(void* __addr) _NOEXCEPT {
221
+ coroutine_handle __tmp;
222
+ __tmp.__handle_ = __addr;
223
+ return __tmp;
224
+ }
225
+
226
+ // NOTE: this overload isn't required by the standard but is needed so
227
+ // the deleted _Promise* overload doesn't make from_address(nullptr)
228
+ // ambiguous.
229
+ // FIXME: should from_address work with nullptr?
230
+ _LIBCUDACXX_INLINE_VISIBILITY
231
+ static coroutine_handle from_address(nullptr_t) _NOEXCEPT {
232
+ return coroutine_handle(nullptr);
233
+ }
234
+
235
+ template <class _Tp, bool _CallIsValid = false>
236
+ static coroutine_handle from_address(_Tp*) {
237
+ static_assert(_CallIsValid,
238
+ "coroutine_handle<promise_type>::from_address cannot be called with "
239
+ "non-void pointers");
240
+ }
241
+
242
+ template <bool _CallIsValid = false>
243
+ static coroutine_handle from_address(_Promise*) {
244
+ static_assert(_CallIsValid,
245
+ "coroutine_handle<promise_type>::from_address cannot be used with "
246
+ "pointers to the coroutine's promise type; use 'from_promise' instead");
247
+ }
248
+
249
+ _LIBCUDACXX_INLINE_VISIBILITY
250
+ static coroutine_handle from_promise(_Promise& __promise) _NOEXCEPT {
251
+ typedef __remove_cv_t<_Promise> _RawPromise;
252
+ coroutine_handle __tmp;
253
+ __tmp.__handle_ = __builtin_coro_promise(
254
+ _CUDA_VSTD::addressof(const_cast<_RawPromise&>(__promise)),
255
+ _LIBCUDACXX_ALIGNOF(_Promise), true);
256
+ return __tmp;
257
+ }
258
+ };
259
+
260
+ #if __has_builtin(__builtin_coro_noop)
261
+ struct noop_coroutine_promise {};
262
+
263
+ template <>
264
+ class _LIBCUDACXX_TEMPLATE_VIS coroutine_handle<noop_coroutine_promise>
265
+ : public coroutine_handle<> {
266
+ using _Base = coroutine_handle<>;
267
+ using _Promise = noop_coroutine_promise;
268
+ public:
269
+
270
+ _LIBCUDACXX_INLINE_VISIBILITY
271
+ _Promise& promise() const {
272
+ return *static_cast<_Promise*>(
273
+ __builtin_coro_promise(this->__handle_, _LIBCUDACXX_ALIGNOF(_Promise), false));
274
+ }
275
+
276
+ _LIBCUDACXX_CONSTEXPR explicit operator bool() const _NOEXCEPT { return true; }
277
+ _LIBCUDACXX_CONSTEXPR bool done() const _NOEXCEPT { return false; }
278
+
279
+ _LIBCUDACXX_CONSTEXPR_AFTER_CXX17 void operator()() const _NOEXCEPT {}
280
+ _LIBCUDACXX_CONSTEXPR_AFTER_CXX17 void resume() const _NOEXCEPT {}
281
+ _LIBCUDACXX_CONSTEXPR_AFTER_CXX17 void destroy() const _NOEXCEPT {}
282
+
283
+ private:
284
+ _LIBCUDACXX_INLINE_VISIBILITY
285
+ friend coroutine_handle<noop_coroutine_promise> noop_coroutine() _NOEXCEPT;
286
+
287
+ _LIBCUDACXX_INLINE_VISIBILITY coroutine_handle() _NOEXCEPT {
288
+ this->__handle_ = __builtin_coro_noop();
289
+ }
290
+ };
291
+
292
+ using noop_coroutine_handle = coroutine_handle<noop_coroutine_promise>;
293
+
294
+ inline _LIBCUDACXX_INLINE_VISIBILITY
295
+ noop_coroutine_handle noop_coroutine() _NOEXCEPT {
296
+ return noop_coroutine_handle();
297
+ }
298
+ #endif // __has_builtin(__builtin_coro_noop)
299
+
300
+ struct suspend_never {
301
+ _LIBCUDACXX_INLINE_VISIBILITY
302
+ bool await_ready() const _NOEXCEPT { return true; }
303
+ _LIBCUDACXX_INLINE_VISIBILITY
304
+ void await_suspend(coroutine_handle<>) const _NOEXCEPT {}
305
+ _LIBCUDACXX_INLINE_VISIBILITY
306
+ void await_resume() const _NOEXCEPT {}
307
+ };
308
+
309
+ struct suspend_always {
310
+ _LIBCUDACXX_INLINE_VISIBILITY
311
+ bool await_ready() const _NOEXCEPT { return false; }
312
+ _LIBCUDACXX_INLINE_VISIBILITY
313
+ void await_suspend(coroutine_handle<>) const _NOEXCEPT {}
314
+ _LIBCUDACXX_INLINE_VISIBILITY
315
+ void await_resume() const _NOEXCEPT {}
316
+ };
317
+
318
+ _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_COROUTINES
319
+
320
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
321
+
322
+ template <class _Tp>
323
+ struct hash<_CUDA_VSTD_CORO::coroutine_handle<_Tp> > {
324
+ using __arg_type = _CUDA_VSTD_CORO::coroutine_handle<_Tp>;
325
+ _LIBCUDACXX_INLINE_VISIBILITY
326
+ size_t operator()(__arg_type const& __v) const _NOEXCEPT
327
+ {return hash<void*>()(__v.address());}
328
+ };
329
+
330
+ _LIBCUDACXX_END_NAMESPACE_STD
331
+
332
+ #endif // !defined(_LIBCUDACXX_HAS_NO_COROUTINES)
333
+
334
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_COROUTINE */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/deque ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- deque ------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_DEQUE
11
+ #define _LIBCUDACXX_EXPERIMENTAL_DEQUE
12
+ /*
13
+ experimental/deque synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class T>
22
+ using deque = std::deque<T,polymorphic_allocator<T>>;
23
+
24
+ } // namespace pmr
25
+ } // namespace fundamentals_v1
26
+ } // namespace experimental
27
+ } // namespace std
28
+
29
+ */
30
+
31
+ #include <experimental/__config>
32
+ #include <deque>
33
+ #include <experimental/memory_resource>
34
+
35
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
36
+ #pragma GCC system_header
37
+ #endif
38
+
39
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
40
+
41
+ template <class _ValueT>
42
+ using deque = _CUDA_VSTD::deque<_ValueT, polymorphic_allocator<_ValueT>>;
43
+
44
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
45
+
46
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_DEQUE */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/filesystem ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- filesystem -------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_FILESYSTEM
10
+ #define _LIBCUDACXX_EXPERIMENTAL_FILESYSTEM
11
+ /*
12
+ filesystem synopsis
13
+
14
+ namespace std { namespace experimental { namespace filesystem { inline namespace v1 {
15
+
16
+ class path;
17
+
18
+ void swap(path& lhs, path& rhs) noexcept;
19
+ size_t hash_value(const path& p) noexcept;
20
+
21
+ bool operator==(const path& lhs, const path& rhs) noexcept;
22
+ bool operator!=(const path& lhs, const path& rhs) noexcept;
23
+ bool operator< (const path& lhs, const path& rhs) noexcept;
24
+ bool operator<=(const path& lhs, const path& rhs) noexcept;
25
+ bool operator> (const path& lhs, const path& rhs) noexcept;
26
+ bool operator>=(const path& lhs, const path& rhs) noexcept;
27
+
28
+ path operator/ (const path& lhs, const path& rhs);
29
+
30
+ // fs.path.io operators are friends of path.
31
+ template <class charT, class traits>
32
+ friend basic_ostream<charT, traits>&
33
+ operator<<(basic_ostream<charT, traits>& os, const path& p);
34
+
35
+ template <class charT, class traits>
36
+ friend basic_istream<charT, traits>&
37
+ operator>>(basic_istream<charT, traits>& is, path& p);
38
+
39
+ template <class Source>
40
+ path u8path(const Source& source);
41
+ template <class InputIterator>
42
+ path u8path(InputIterator first, InputIterator last);
43
+
44
+ class filesystem_error;
45
+ class directory_entry;
46
+
47
+ class directory_iterator;
48
+
49
+ // enable directory_iterator range-based for statements
50
+ directory_iterator begin(directory_iterator iter) noexcept;
51
+ directory_iterator end(const directory_iterator&) noexcept;
52
+
53
+ class recursive_directory_iterator;
54
+
55
+ // enable recursive_directory_iterator range-based for statements
56
+ recursive_directory_iterator begin(recursive_directory_iterator iter) noexcept;
57
+ recursive_directory_iterator end(const recursive_directory_iterator&) noexcept;
58
+
59
+ class file_status;
60
+
61
+ struct space_info
62
+ {
63
+ uintmax_t capacity;
64
+ uintmax_t free;
65
+ uintmax_t available;
66
+ };
67
+
68
+ enum class file_type;
69
+ enum class perms;
70
+ enum class perm_options;
71
+ enum class copy_options;
72
+ enum class directory_options;
73
+
74
+ typedef chrono::time_point<trivial-clock> file_time_type;
75
+
76
+ // operational functions
77
+
78
+ path absolute(const path& p);
79
+ path absolute(const path& p, error_code &ec);
80
+
81
+ path canonical(const path& p);
82
+ path canonical(const path& p, error_code& ec);
83
+
84
+ void copy(const path& from, const path& to);
85
+ void copy(const path& from, const path& to, error_code& ec);
86
+ void copy(const path& from, const path& to, copy_options options);
87
+ void copy(const path& from, const path& to, copy_options options,
88
+ error_code& ec);
89
+
90
+ bool copy_file(const path& from, const path& to);
91
+ bool copy_file(const path& from, const path& to, error_code& ec);
92
+ bool copy_file(const path& from, const path& to, copy_options option);
93
+ bool copy_file(const path& from, const path& to, copy_options option,
94
+ error_code& ec);
95
+
96
+ void copy_symlink(const path& existing_symlink, const path& new_symlink);
97
+ void copy_symlink(const path& existing_symlink, const path& new_symlink,
98
+ error_code& ec) noexcept;
99
+
100
+ bool create_directories(const path& p);
101
+ bool create_directories(const path& p, error_code& ec);
102
+
103
+ bool create_directory(const path& p);
104
+ bool create_directory(const path& p, error_code& ec) noexcept;
105
+
106
+ bool create_directory(const path& p, const path& attributes);
107
+ bool create_directory(const path& p, const path& attributes,
108
+ error_code& ec) noexcept;
109
+
110
+ void create_directory_symlink(const path& to, const path& new_symlink);
111
+ void create_directory_symlink(const path& to, const path& new_symlink,
112
+ error_code& ec) noexcept;
113
+
114
+ void create_hard_link(const path& to, const path& new_hard_link);
115
+ void create_hard_link(const path& to, const path& new_hard_link,
116
+ error_code& ec) noexcept;
117
+
118
+ void create_symlink(const path& to, const path& new_symlink);
119
+ void create_symlink(const path& to, const path& new_symlink,
120
+ error_code& ec) noexcept;
121
+
122
+ path current_path();
123
+ path current_path(error_code& ec);
124
+ void current_path(const path& p);
125
+ void current_path(const path& p, error_code& ec) noexcept;
126
+
127
+ bool exists(file_status s) noexcept;
128
+ bool exists(const path& p);
129
+ bool exists(const path& p, error_code& ec) noexcept;
130
+
131
+ bool equivalent(const path& p1, const path& p2);
132
+ bool equivalent(const path& p1, const path& p2, error_code& ec) noexcept;
133
+
134
+ uintmax_t file_size(const path& p);
135
+ uintmax_t file_size(const path& p, error_code& ec) noexcept;
136
+
137
+ uintmax_t hard_link_count(const path& p);
138
+ uintmax_t hard_link_count(const path& p, error_code& ec) noexcept;
139
+
140
+ bool is_block_file(file_status s) noexcept;
141
+ bool is_block_file(const path& p);
142
+ bool is_block_file(const path& p, error_code& ec) noexcept;
143
+
144
+ bool is_character_file(file_status s) noexcept;
145
+ bool is_character_file(const path& p);
146
+ bool is_character_file(const path& p, error_code& ec) noexcept;
147
+
148
+ bool is_directory(file_status s) noexcept;
149
+ bool is_directory(const path& p);
150
+ bool is_directory(const path& p, error_code& ec) noexcept;
151
+
152
+ bool is_empty(const path& p);
153
+ bool is_empty(const path& p, error_code& ec) noexcept;
154
+
155
+ bool is_fifo(file_status s) noexcept;
156
+ bool is_fifo(const path& p);
157
+ bool is_fifo(const path& p, error_code& ec) noexcept;
158
+
159
+ bool is_other(file_status s) noexcept;
160
+ bool is_other(const path& p);
161
+ bool is_other(const path& p, error_code& ec) noexcept;
162
+
163
+ bool is_regular_file(file_status s) noexcept;
164
+ bool is_regular_file(const path& p);
165
+ bool is_regular_file(const path& p, error_code& ec) noexcept;
166
+
167
+ bool is_socket(file_status s) noexcept;
168
+ bool is_socket(const path& p);
169
+ bool is_socket(const path& p, error_code& ec) noexcept;
170
+
171
+ bool is_symlink(file_status s) noexcept;
172
+ bool is_symlink(const path& p);
173
+ bool is_symlink(const path& p, error_code& ec) noexcept;
174
+
175
+ file_time_type last_write_time(const path& p);
176
+ file_time_type last_write_time(const path& p, error_code& ec) noexcept;
177
+ void last_write_time(const path& p, file_time_type new_time);
178
+ void last_write_time(const path& p, file_time_type new_time,
179
+ error_code& ec) noexcept;
180
+
181
+ void permissions(const path& p, perms prms,
182
+ perm_options opts=perm_options::replace);
183
+ void permissions(const path& p, perms prms, error_code& ec) noexcept;
184
+ void permissions(const path& p, perms prms, perm_options opts,
185
+ error_code& ec);
186
+
187
+ path proximate(const path& p, error_code& ec);
188
+ path proximate(const path& p, const path& base = current_path());
189
+ path proximate(const path& p, const path& base, error_code &ec);
190
+
191
+ path read_symlink(const path& p);
192
+ path read_symlink(const path& p, error_code& ec);
193
+
194
+ path relative(const path& p, error_code& ec);
195
+ path relative(const path& p, const path& base=current_path());
196
+ path relative(const path& p, const path& base, error_code& ec);
197
+
198
+ bool remove(const path& p);
199
+ bool remove(const path& p, error_code& ec) noexcept;
200
+
201
+ uintmax_t remove_all(const path& p);
202
+ uintmax_t remove_all(const path& p, error_code& ec);
203
+
204
+ void rename(const path& from, const path& to);
205
+ void rename(const path& from, const path& to, error_code& ec) noexcept;
206
+
207
+ void resize_file(const path& p, uintmax_t size);
208
+ void resize_file(const path& p, uintmax_t size, error_code& ec) noexcept;
209
+
210
+ space_info space(const path& p);
211
+ space_info space(const path& p, error_code& ec) noexcept;
212
+
213
+ file_status status(const path& p);
214
+ file_status status(const path& p, error_code& ec) noexcept;
215
+
216
+ bool status_known(file_status s) noexcept;
217
+
218
+ file_status symlink_status(const path& p);
219
+ file_status symlink_status(const path& p, error_code& ec) noexcept;
220
+
221
+ path temp_directory_path();
222
+ path temp_directory_path(error_code& ec);
223
+
224
+ path weakly_canonical(path const& p);
225
+ path weakly_canonical(path const& p, error_code& ec);
226
+
227
+
228
+ } } } } // namespaces std::experimental::filesystem::v1
229
+
230
+ */
231
+
232
+ #include <experimental/__config>
233
+ #include <filesystem>
234
+
235
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
236
+ #pragma GCC system_header
237
+ #endif
238
+
239
+ _LIBCUDACXX_PUSH_MACROS
240
+ #include <__undef_macros>
241
+
242
+ #ifndef _LIBCUDACXX_CXX03_LANG
243
+
244
+ #define __cpp_lib_experimental_filesystem 201406
245
+
246
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_FILESYSTEM
247
+
248
+ using namespace _CUDA_VSTD_FS;
249
+
250
+ _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_FILESYSTEM
251
+
252
+ #endif // !_LIBCUDACXX_CXX03_LANG
253
+
254
+ _LIBCUDACXX_POP_MACROS
255
+
256
+ #endif // _LIBCUDACXX_EXPERIMENTAL_FILESYSTEM
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/forward_list ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- forward_list -----------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_FORWARD_LIST
11
+ #define _LIBCUDACXX_EXPERIMENTAL_FORWARD_LIST
12
+ /*
13
+ experimental/forward_list synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class T>
22
+ using forward_list = std::forward_list<T,polymorphic_allocator<T>>;
23
+
24
+ } // namespace pmr
25
+ } // namespace fundamentals_v1
26
+ } // namespace experimental
27
+ } // namespace std
28
+
29
+ */
30
+
31
+ #include <experimental/__config>
32
+ #include <forward_list>
33
+ #include <experimental/memory_resource>
34
+
35
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
36
+ #pragma GCC system_header
37
+ #endif
38
+
39
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
40
+
41
+ template <class _ValueT>
42
+ using forward_list = _CUDA_VSTD::forward_list<_ValueT, polymorphic_allocator<_ValueT>>;
43
+
44
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
45
+
46
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_FORWARD_LIST */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/functional ADDED
@@ -0,0 +1,458 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===-------------------------- functional --------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_FUNCTIONAL
11
+ #define _LIBCUDACXX_EXPERIMENTAL_FUNCTIONAL
12
+
13
+ /*
14
+ experimental/functional synopsis
15
+
16
+ #include <algorithm>
17
+
18
+ namespace std {
19
+ namespace experimental {
20
+ inline namespace fundamentals_v1 {
21
+
22
+ // See C++14 20.9.9, Function object binders
23
+ template <class T> constexpr bool is_bind_expression_v
24
+ = is_bind_expression<T>::value;
25
+ template <class T> constexpr int is_placeholder_v
26
+ = is_placeholder<T>::value;
27
+
28
+ // 4.2, Class template function
29
+ template<class> class function; // undefined
30
+ template<class R, class... ArgTypes> class function<R(ArgTypes...)>;
31
+
32
+ template<class R, class... ArgTypes>
33
+ void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&);
34
+
35
+ template<class R, class... ArgTypes>
36
+ bool operator==(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
37
+ template<class R, class... ArgTypes>
38
+ bool operator==(nullptr_t, const function<R(ArgTypes...)>&) noexcept;
39
+ template<class R, class... ArgTypes>
40
+ bool operator!=(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
41
+ template<class R, class... ArgTypes>
42
+ bool operator!=(nullptr_t, const function<R(ArgTypes...)>&) noexcept;
43
+
44
+ // 4.3, Searchers
45
+ template<class ForwardIterator, class BinaryPredicate = equal_to<>>
46
+ class default_searcher;
47
+
48
+ template<class RandomAccessIterator,
49
+ class Hash = hash<typename iterator_traits<RandomAccessIterator>::value_type>,
50
+ class BinaryPredicate = equal_to<>>
51
+ class boyer_moore_searcher;
52
+
53
+ template<class RandomAccessIterator,
54
+ class Hash = hash<typename iterator_traits<RandomAccessIterator>::value_type>,
55
+ class BinaryPredicate = equal_to<>>
56
+ class boyer_moore_horspool_searcher;
57
+
58
+ template<class ForwardIterator, class BinaryPredicate = equal_to<>>
59
+ default_searcher<ForwardIterator, BinaryPredicate>
60
+ make_default_searcher(ForwardIterator pat_first, ForwardIterator pat_last,
61
+ BinaryPredicate pred = BinaryPredicate());
62
+
63
+ template<class RandomAccessIterator,
64
+ class Hash = hash<typename iterator_traits<RandomAccessIterator>::value_type>,
65
+ class BinaryPredicate = equal_to<>>
66
+ boyer_moore_searcher<RandomAccessIterator, Hash, BinaryPredicate>
67
+ make_boyer_moore_searcher(
68
+ RandomAccessIterator pat_first, RandomAccessIterator pat_last,
69
+ Hash hf = Hash(), BinaryPredicate pred = BinaryPredicate());
70
+
71
+ template<class RandomAccessIterator,
72
+ class Hash = hash<typename iterator_traits<RandomAccessIterator>::value_type>,
73
+ class BinaryPredicate = equal_to<>>
74
+ boyer_moore_horspool_searcher<RandomAccessIterator, Hash, BinaryPredicate>
75
+ make_boyer_moore_horspool_searcher(
76
+ RandomAccessIterator pat_first, RandomAccessIterator pat_last,
77
+ Hash hf = Hash(), BinaryPredicate pred = BinaryPredicate());
78
+
79
+ } // namespace fundamentals_v1
80
+ } // namespace experimental
81
+
82
+ template<class R, class... ArgTypes, class Alloc>
83
+ struct uses_allocator<experimental::function<R(ArgTypes...)>, Alloc>;
84
+
85
+ } // namespace std
86
+
87
+ */
88
+
89
+ #include <experimental/__config>
90
+ #include <functional>
91
+ #include <algorithm>
92
+ #include <type_traits>
93
+ #include <vector>
94
+ #include <array>
95
+ #include <unordered_map>
96
+
97
+ #include <__debug>
98
+
99
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
100
+ #pragma GCC system_header
101
+ #endif
102
+
103
+ _LIBCUDACXX_PUSH_MACROS
104
+ #include <__undef_macros>
105
+
106
+
107
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS
108
+
109
+ #if _LIBCUDACXX_STD_VER > 11
110
+ // default searcher
111
+ template<class _ForwardIterator, class _BinaryPredicate = equal_to<>>
112
+ class _LIBCUDACXX_TYPE_VIS default_searcher {
113
+ public:
114
+ _LIBCUDACXX_INLINE_VISIBILITY
115
+ default_searcher(_ForwardIterator __f, _ForwardIterator __l,
116
+ _BinaryPredicate __p = _BinaryPredicate())
117
+ : __first_(__f), __last_(__l), __pred_(__p) {}
118
+
119
+ template <typename _ForwardIterator2>
120
+ _LIBCUDACXX_INLINE_VISIBILITY
121
+ pair<_ForwardIterator2, _ForwardIterator2>
122
+ operator () (_ForwardIterator2 __f, _ForwardIterator2 __l) const
123
+ {
124
+ return _CUDA_VSTD::__search(__f, __l, __first_, __last_, __pred_,
125
+ typename _CUDA_VSTD::iterator_traits<_ForwardIterator>::iterator_category(),
126
+ typename _CUDA_VSTD::iterator_traits<_ForwardIterator2>::iterator_category());
127
+ }
128
+
129
+ private:
130
+ _ForwardIterator __first_;
131
+ _ForwardIterator __last_;
132
+ _BinaryPredicate __pred_;
133
+ };
134
+
135
+ template<class _ForwardIterator, class _BinaryPredicate = equal_to<>>
136
+ _LIBCUDACXX_INLINE_VISIBILITY
137
+ default_searcher<_ForwardIterator, _BinaryPredicate>
138
+ make_default_searcher( _ForwardIterator __f, _ForwardIterator __l, _BinaryPredicate __p = _BinaryPredicate ())
139
+ {
140
+ return default_searcher<_ForwardIterator, _BinaryPredicate>(__f, __l, __p);
141
+ }
142
+
143
+ template<class _Key, class _Value, class _Hash, class _BinaryPredicate, bool /*useArray*/> class _BMSkipTable;
144
+
145
+ // General case for BM data searching; use a map
146
+ template<class _Key, typename _Value, class _Hash, class _BinaryPredicate>
147
+ class _BMSkipTable<_Key, _Value, _Hash, _BinaryPredicate, false> {
148
+ public: // TODO private:
149
+ typedef _Value value_type;
150
+ typedef _Key key_type;
151
+
152
+ const _Value __default_value_;
153
+ std::unordered_map<_Key, _Value, _Hash, _BinaryPredicate> __table;
154
+
155
+ public:
156
+ _LIBCUDACXX_INLINE_VISIBILITY
157
+ _BMSkipTable(std::size_t __sz, _Value __default, _Hash __hf, _BinaryPredicate __pred)
158
+ : __default_value_(__default), __table(__sz, __hf, __pred) {}
159
+
160
+ _LIBCUDACXX_INLINE_VISIBILITY
161
+ void insert(const key_type &__key, value_type __val)
162
+ {
163
+ __table [__key] = __val; // Would skip_.insert (val) be better here?
164
+ }
165
+
166
+ _LIBCUDACXX_INLINE_VISIBILITY
167
+ value_type operator [](const key_type & __key) const
168
+ {
169
+ auto __it = __table.find (__key);
170
+ return __it == __table.end() ? __default_value_ : __it->second;
171
+ }
172
+ };
173
+
174
+
175
+ // Special case small numeric values; use an array
176
+ template<class _Key, typename _Value, class _Hash, class _BinaryPredicate>
177
+ class _BMSkipTable<_Key, _Value, _Hash, _BinaryPredicate, true> {
178
+ private:
179
+ typedef _Value value_type;
180
+ typedef _Key key_type;
181
+
182
+ typedef typename std::make_unsigned<key_type>::type unsigned_key_type;
183
+ typedef std::array<value_type, _CUDA_VSTD::numeric_limits<unsigned_key_type>::max()> skip_map;
184
+ skip_map __table;
185
+
186
+ public:
187
+ _LIBCUDACXX_INLINE_VISIBILITY
188
+ _BMSkipTable(std::size_t /*__sz*/, _Value __default, _Hash /*__hf*/, _BinaryPredicate /*__pred*/)
189
+ {
190
+ std::fill_n(__table.begin(), __table.size(), __default);
191
+ }
192
+
193
+ _LIBCUDACXX_INLINE_VISIBILITY
194
+ void insert(key_type __key, value_type __val)
195
+ {
196
+ __table[static_cast<unsigned_key_type>(__key)] = __val;
197
+ }
198
+
199
+ _LIBCUDACXX_INLINE_VISIBILITY
200
+ value_type operator [](key_type __key) const
201
+ {
202
+ return __table[static_cast<unsigned_key_type>(__key)];
203
+ }
204
+ };
205
+
206
+
207
+ template <class _RandomAccessIterator1,
208
+ class _Hash = hash<typename iterator_traits<_RandomAccessIterator1>::value_type>,
209
+ class _BinaryPredicate = equal_to<>>
210
+ class _LIBCUDACXX_TYPE_VIS boyer_moore_searcher {
211
+ private:
212
+ typedef typename std::iterator_traits<_RandomAccessIterator1>::difference_type difference_type;
213
+ typedef typename std::iterator_traits<_RandomAccessIterator1>::value_type value_type;
214
+ typedef _BMSkipTable<value_type, difference_type, _Hash, _BinaryPredicate,
215
+ _CUDA_VSTD::is_integral<value_type>::value && // what about enums?
216
+ sizeof(value_type) == 1 &&
217
+ is_same<_Hash, hash<value_type>>::value &&
218
+ is_same<_BinaryPredicate, equal_to<>>::value
219
+ > skip_table_type;
220
+
221
+ public:
222
+ boyer_moore_searcher(_RandomAccessIterator1 __f, _RandomAccessIterator1 __l,
223
+ _Hash __hf = _Hash(), _BinaryPredicate __pred = _BinaryPredicate())
224
+ : __first_(__f), __last_(__l), __pred_(__pred),
225
+ __pattern_length_(_CUDA_VSTD::distance(__first_, __last_)),
226
+ __skip_{make_shared<skip_table_type>(__pattern_length_, -1, __hf, __pred_)},
227
+ __suffix_{make_shared<vector<difference_type>>(__pattern_length_ + 1)}
228
+ {
229
+ // build the skip table
230
+ for ( difference_type __i = 0; __f != __l; ++__f, (void) ++__i )
231
+ __skip_->insert(*__f, __i);
232
+
233
+ this->__build_suffix_table ( __first_, __last_, __pred_ );
234
+ }
235
+
236
+ template <typename _RandomAccessIterator2>
237
+ pair<_RandomAccessIterator2, _RandomAccessIterator2>
238
+ operator ()(_RandomAccessIterator2 __f, _RandomAccessIterator2 __l) const
239
+ {
240
+ static_assert ( std::is_same<
241
+ std::__remove_cvref_t<typename std::iterator_traits<_RandomAccessIterator1>::value_type>,
242
+ std::__remove_cvref_t<typename std::iterator_traits<_RandomAccessIterator2>::value_type>
243
+ >::value,
244
+ "Corpus and Pattern iterators must point to the same type" );
245
+
246
+ if (__f == __l ) return make_pair(__l, __l); // empty corpus
247
+ if (__first_ == __last_) return make_pair(__f, __f); // empty pattern
248
+
249
+ // If the pattern is larger than the corpus, we can't find it!
250
+ if ( __pattern_length_ > _CUDA_VSTD::distance (__f, __l))
251
+ return make_pair(__l, __l);
252
+
253
+ // Do the search
254
+ return this->__search(__f, __l);
255
+ }
256
+
257
+ public: // TODO private:
258
+ _RandomAccessIterator1 __first_;
259
+ _RandomAccessIterator1 __last_;
260
+ _BinaryPredicate __pred_;
261
+ difference_type __pattern_length_;
262
+ shared_ptr<skip_table_type> __skip_;
263
+ shared_ptr<vector<difference_type>> __suffix_;
264
+
265
+ template <typename _RandomAccessIterator2>
266
+ pair<_RandomAccessIterator2, _RandomAccessIterator2>
267
+ __search(_RandomAccessIterator2 __f, _RandomAccessIterator2 __l) const
268
+ {
269
+ _RandomAccessIterator2 __cur = __f;
270
+ const _RandomAccessIterator2 __last = __l - __pattern_length_;
271
+ const skip_table_type & __skip = *__skip_.get();
272
+ const vector<difference_type> & __suffix = *__suffix_.get();
273
+
274
+ while (__cur <= __last)
275
+ {
276
+
277
+ // Do we match right where we are?
278
+ difference_type __j = __pattern_length_;
279
+ while (__pred_(__first_ [__j-1], __cur [__j-1])) {
280
+ __j--;
281
+ // We matched - we're done!
282
+ if ( __j == 0 )
283
+ return make_pair(__cur, __cur + __pattern_length_);
284
+ }
285
+
286
+ // Since we didn't match, figure out how far to skip forward
287
+ difference_type __k = __skip[__cur [ __j - 1 ]];
288
+ difference_type __m = __j - __k - 1;
289
+ if (__k < __j && __m > __suffix[ __j ])
290
+ __cur += __m;
291
+ else
292
+ __cur += __suffix[ __j ];
293
+ }
294
+
295
+ return make_pair(__l, __l); // We didn't find anything
296
+ }
297
+
298
+
299
+ template<typename _Iterator, typename _Container>
300
+ void __compute_bm_prefix ( _Iterator __f, _Iterator __l, _BinaryPredicate __pred, _Container &__prefix )
301
+ {
302
+ const std::size_t __count = _CUDA_VSTD::distance(__f, __l);
303
+
304
+ __prefix[0] = 0;
305
+ std::size_t __k = 0;
306
+ for ( std::size_t __i = 1; __i < __count; ++__i )
307
+ {
308
+ while ( __k > 0 && !__pred ( __f[__k], __f[__i] ))
309
+ __k = __prefix [ __k - 1 ];
310
+
311
+ if ( __pred ( __f[__k], __f[__i] ))
312
+ __k++;
313
+ __prefix [ __i ] = __k;
314
+ }
315
+ }
316
+
317
+ void __build_suffix_table(_RandomAccessIterator1 __f, _RandomAccessIterator1 __l,
318
+ _BinaryPredicate __pred)
319
+ {
320
+ const std::size_t __count = _CUDA_VSTD::distance(__f, __l);
321
+ vector<difference_type> & __suffix = *__suffix_.get();
322
+ if (__count > 0)
323
+ {
324
+ _CUDA_VSTD::vector<value_type> __scratch(__count);
325
+
326
+ __compute_bm_prefix(__f, __l, __pred, __scratch);
327
+ for ( std::size_t __i = 0; __i <= __count; __i++ )
328
+ __suffix[__i] = __count - __scratch[__count-1];
329
+
330
+ typedef _CUDA_VSTD::reverse_iterator<_RandomAccessIterator1> _RevIter;
331
+ __compute_bm_prefix(_RevIter(__l), _RevIter(__f), __pred, __scratch);
332
+
333
+ for ( std::size_t __i = 0; __i < __count; __i++ )
334
+ {
335
+ const std::size_t __j = __count - __scratch[__i];
336
+ const difference_type __k = __i - __scratch[__i] + 1;
337
+
338
+ if (__suffix[__j] > __k)
339
+ __suffix[__j] = __k;
340
+ }
341
+ }
342
+ }
343
+
344
+ };
345
+
346
+ template<class _RandomAccessIterator,
347
+ class _Hash = hash<typename iterator_traits<_RandomAccessIterator>::value_type>,
348
+ class _BinaryPredicate = equal_to<>>
349
+ _LIBCUDACXX_INLINE_VISIBILITY
350
+ boyer_moore_searcher<_RandomAccessIterator, _Hash, _BinaryPredicate>
351
+ make_boyer_moore_searcher( _RandomAccessIterator __f, _RandomAccessIterator __l,
352
+ _Hash __hf = _Hash(), _BinaryPredicate __p = _BinaryPredicate ())
353
+ {
354
+ return boyer_moore_searcher<_RandomAccessIterator, _Hash, _BinaryPredicate>(__f, __l, __hf, __p);
355
+ }
356
+
357
+ // boyer-moore-horspool
358
+ template <class _RandomAccessIterator1,
359
+ class _Hash = hash<typename iterator_traits<_RandomAccessIterator1>::value_type>,
360
+ class _BinaryPredicate = equal_to<>>
361
+ class _LIBCUDACXX_TYPE_VIS boyer_moore_horspool_searcher {
362
+ private:
363
+ typedef typename std::iterator_traits<_RandomAccessIterator1>::difference_type difference_type;
364
+ typedef typename std::iterator_traits<_RandomAccessIterator1>::value_type value_type;
365
+ typedef _BMSkipTable<value_type, difference_type, _Hash, _BinaryPredicate,
366
+ _CUDA_VSTD::is_integral<value_type>::value && // what about enums?
367
+ sizeof(value_type) == 1 &&
368
+ is_same<_Hash, hash<value_type>>::value &&
369
+ is_same<_BinaryPredicate, equal_to<>>::value
370
+ > skip_table_type;
371
+
372
+ public:
373
+ boyer_moore_horspool_searcher(_RandomAccessIterator1 __f, _RandomAccessIterator1 __l,
374
+ _Hash __hf = _Hash(), _BinaryPredicate __pred = _BinaryPredicate())
375
+ : __first_(__f), __last_(__l), __pred_(__pred),
376
+ __pattern_length_(_CUDA_VSTD::distance(__first_, __last_)),
377
+ __skip_{_CUDA_VSTD::make_shared<skip_table_type>(__pattern_length_, __pattern_length_, __hf, __pred_)}
378
+ {
379
+ // build the skip table
380
+ if ( __f != __l )
381
+ {
382
+ __l = __l - 1;
383
+ for ( difference_type __i = 0; __f != __l; ++__f, (void) ++__i )
384
+ __skip_->insert(*__f, __pattern_length_ - 1 - __i);
385
+ }
386
+ }
387
+
388
+ template <typename _RandomAccessIterator2>
389
+ pair<_RandomAccessIterator2, _RandomAccessIterator2>
390
+ operator ()(_RandomAccessIterator2 __f, _RandomAccessIterator2 __l) const
391
+ {
392
+ static_assert ( std::is_same<
393
+ std::__remove_cvref_t<typename std::iterator_traits<_RandomAccessIterator1>::value_type>,
394
+ std::__remove_cvref_t<typename std::iterator_traits<_RandomAccessIterator2>::value_type>
395
+ >::value,
396
+ "Corpus and Pattern iterators must point to the same type" );
397
+
398
+ if (__f == __l ) return make_pair(__l, __l); // empty corpus
399
+ if (__first_ == __last_) return make_pair(__f, __f); // empty pattern
400
+
401
+ // If the pattern is larger than the corpus, we can't find it!
402
+ if ( __pattern_length_ > _CUDA_VSTD::distance (__f, __l))
403
+ return make_pair(__l, __l);
404
+
405
+ // Do the search
406
+ return this->__search(__f, __l);
407
+ }
408
+
409
+ private:
410
+ _RandomAccessIterator1 __first_;
411
+ _RandomAccessIterator1 __last_;
412
+ _BinaryPredicate __pred_;
413
+ difference_type __pattern_length_;
414
+ shared_ptr<skip_table_type> __skip_;
415
+
416
+ template <typename _RandomAccessIterator2>
417
+ pair<_RandomAccessIterator2, _RandomAccessIterator2>
418
+ __search ( _RandomAccessIterator2 __f, _RandomAccessIterator2 __l ) const {
419
+ _RandomAccessIterator2 __cur = __f;
420
+ const _RandomAccessIterator2 __last = __l - __pattern_length_;
421
+ const skip_table_type & __skip = *__skip_.get();
422
+
423
+ while (__cur <= __last)
424
+ {
425
+ // Do we match right where we are?
426
+ difference_type __j = __pattern_length_;
427
+ while (__pred_(__first_[__j-1], __cur[__j-1]))
428
+ {
429
+ __j--;
430
+ // We matched - we're done!
431
+ if ( __j == 0 )
432
+ return make_pair(__cur, __cur + __pattern_length_);
433
+ }
434
+ __cur += __skip[__cur[__pattern_length_-1]];
435
+ }
436
+
437
+ return make_pair(__l, __l);
438
+ }
439
+ };
440
+
441
+ template<class _RandomAccessIterator,
442
+ class _Hash = hash<typename iterator_traits<_RandomAccessIterator>::value_type>,
443
+ class _BinaryPredicate = equal_to<>>
444
+ _LIBCUDACXX_INLINE_VISIBILITY
445
+ boyer_moore_horspool_searcher<_RandomAccessIterator, _Hash, _BinaryPredicate>
446
+ make_boyer_moore_horspool_searcher( _RandomAccessIterator __f, _RandomAccessIterator __l,
447
+ _Hash __hf = _Hash(), _BinaryPredicate __p = _BinaryPredicate ())
448
+ {
449
+ return boyer_moore_horspool_searcher<_RandomAccessIterator, _Hash, _BinaryPredicate>(__f, __l, __hf, __p);
450
+ }
451
+
452
+ #endif // _LIBCUDACXX_STD_VER > 11
453
+
454
+ _LIBCUDACXX_END_NAMESPACE_LFTS
455
+
456
+ _LIBCUDACXX_POP_MACROS
457
+
458
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_FUNCTIONAL */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/iterator ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------- iterator -------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_ITERATOR
11
+ #define _LIBCUDACXX_EXPERIMENTAL_ITERATOR
12
+
13
+ /*
14
+ namespace std {
15
+ namespace experimental {
16
+ inline namespace fundamentals_v2 {
17
+
18
+ template <class DelimT, class charT = char, class traits = char_traits<charT>>
19
+ class ostream_joiner {
20
+ public:
21
+ typedef charT char_type;
22
+ typedef traits traits_type;
23
+ typedef basic_ostream<charT, traits> ostream_type;
24
+ typedef output_iterator_tag iterator_category;
25
+ typedef void value_type;
26
+ typedef void difference_type;
27
+ typedef void pointer;
28
+ typedef void reference;
29
+
30
+ ostream_joiner(ostream_type& s, const DelimT& delimiter);
31
+ ostream_joiner(ostream_type& s, DelimT&& delimiter);
32
+
33
+ template<typename T>
34
+ ostream_joiner& operator=(const T& value);
35
+
36
+ ostream_joiner& operator*() noexcept;
37
+ ostream_joiner& operator++() noexcept;
38
+ ostream_joiner& operator++(int) noexcept;
39
+ private:
40
+ ostream_type* out_stream; // exposition only
41
+ DelimT delim; // exposition only
42
+ bool first_element; // exposition only
43
+ };
44
+
45
+ template <class charT, class traits, class DelimT>
46
+ ostream_joiner<decay_t<DelimT>, charT, traits>
47
+ make_ostream_joiner(basic_ostream<charT, traits>& os, DelimT&& delimiter);
48
+
49
+ } // inline namespace fundamentals_v2
50
+ } // namespace experimental
51
+ } // namespace std
52
+
53
+ */
54
+
55
+ #include <experimental/__config>
56
+
57
+ #if _LIBCUDACXX_STD_VER > 11
58
+
59
+ #include <iterator>
60
+
61
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS
62
+
63
+ template <class _Delim, class _CharT = char, class _Traits = char_traits<_CharT>>
64
+ class ostream_joiner {
65
+ public:
66
+
67
+ typedef _CharT char_type;
68
+ typedef _Traits traits_type;
69
+ typedef basic_ostream<char_type,traits_type> ostream_type;
70
+ typedef output_iterator_tag iterator_category;
71
+ typedef void value_type;
72
+ typedef void difference_type;
73
+ typedef void pointer;
74
+ typedef void reference;
75
+
76
+ ostream_joiner(ostream_type& __os, _Delim&& __d)
77
+ : __output_iter(_CUDA_VSTD::addressof(__os)), __delim(_CUDA_VSTD::move(__d)), __first(true) {}
78
+
79
+ ostream_joiner(ostream_type& __os, const _Delim& __d)
80
+ : __output_iter(_CUDA_VSTD::addressof(__os)), __delim(__d), __first(true) {}
81
+
82
+
83
+ template<typename _Tp>
84
+ ostream_joiner& operator=(const _Tp& __v)
85
+ {
86
+ if (!__first)
87
+ *__output_iter << __delim;
88
+ __first = false;
89
+ *__output_iter << __v;
90
+ return *this;
91
+ }
92
+
93
+ ostream_joiner& operator*() _NOEXCEPT { return *this; }
94
+ ostream_joiner& operator++() _NOEXCEPT { return *this; }
95
+ ostream_joiner& operator++(int) _NOEXCEPT { return *this; }
96
+
97
+ private:
98
+ ostream_type* __output_iter;
99
+ _Delim __delim;
100
+ bool __first;
101
+ };
102
+
103
+
104
+ template <class _CharT, class _Traits, class _Delim>
105
+ ostream_joiner<__decay_t<_Delim>, _CharT, _Traits>
106
+ make_ostream_joiner(basic_ostream<_CharT, _Traits>& __os, _Delim && __d)
107
+ { return ostream_joiner<__decay_t<_Delim>, _CharT, _Traits>(__os, _CUDA_VSTD::forward<_Delim>(__d)); }
108
+
109
+ _LIBCUDACXX_END_NAMESPACE_LFTS
110
+
111
+ #endif /* _LIBCUDACXX_STD_VER > 11 */
112
+
113
+ #endif // _LIBCUDACXX_EXPERIMENTAL_ITERATOR
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/list ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- list ------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_LIST
11
+ #define _LIBCUDACXX_EXPERIMENTAL_LIST
12
+ /*
13
+ experimental/list synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class T>
22
+ using list = std::list<T,polymorphic_allocator<T>>;
23
+
24
+ } // namespace pmr
25
+ } // namespace fundamentals_v1
26
+ } // namespace experimental
27
+ } // namespace std
28
+
29
+ */
30
+
31
+ #include <experimental/__config>
32
+ #include <list>
33
+ #include <experimental/memory_resource>
34
+
35
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
36
+ #pragma GCC system_header
37
+ #endif
38
+
39
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
40
+
41
+ template <class _ValueT>
42
+ using list = _CUDA_VSTD::list<_ValueT, polymorphic_allocator<_ValueT>>;
43
+
44
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
45
+
46
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_LIST */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/map ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------- map ------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_MAP
11
+ #define _LIBCUDACXX_EXPERIMENTAL_MAP
12
+ /*
13
+ experimental/map synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class Key, class T, class Compare = less<Key>>
22
+ using map = std::map<Key, T, Compare,
23
+ polymorphic_allocator<pair<const Key,T>>>;
24
+
25
+ template <class Key, class T, class Compare = less<Key>>
26
+ using multimap = std::multimap<Key, T, Compare,
27
+ polymorphic_allocator<pair<const Key,T>>>;
28
+
29
+ } // namespace pmr
30
+ } // namespace fundamentals_v1
31
+ } // namespace experimental
32
+ } // namespace std
33
+
34
+ */
35
+
36
+ #include <experimental/__config>
37
+ #include <map>
38
+ #include <experimental/memory_resource>
39
+
40
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
41
+ #pragma GCC system_header
42
+ #endif
43
+
44
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
45
+
46
+ template <class _Key, class _Value, class _Compare = less<_Key>>
47
+ using map = _CUDA_VSTD::map<_Key, _Value, _Compare,
48
+ polymorphic_allocator<pair<const _Key, _Value>>>;
49
+
50
+ template <class _Key, class _Value, class _Compare = less<_Key>>
51
+ using multimap = _CUDA_VSTD::multimap<_Key, _Value, _Compare,
52
+ polymorphic_allocator<pair<const _Key, _Value>>>;
53
+
54
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
55
+
56
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_MAP */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/memory_resource ADDED
@@ -0,0 +1,426 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===------------------------ memory_resource -----------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_MEMORY_RESOURCE
11
+ #define _LIBCUDACXX_EXPERIMENTAL_MEMORY_RESOURCE
12
+
13
+ /**
14
+ experimental/memory_resource synopsis
15
+
16
+ // C++1y
17
+
18
+ namespace std {
19
+ namespace experimental {
20
+ inline namespace fundamentals_v1 {
21
+ namespace pmr {
22
+
23
+ class memory_resource;
24
+
25
+ bool operator==(const memory_resource& a,
26
+ const memory_resource& b) noexcept;
27
+ bool operator!=(const memory_resource& a,
28
+ const memory_resource& b) noexcept;
29
+
30
+ template <class Tp> class polymorphic_allocator;
31
+
32
+ template <class T1, class T2>
33
+ bool operator==(const polymorphic_allocator<T1>& a,
34
+ const polymorphic_allocator<T2>& b) noexcept;
35
+ template <class T1, class T2>
36
+ bool operator!=(const polymorphic_allocator<T1>& a,
37
+ const polymorphic_allocator<T2>& b) noexcept;
38
+
39
+ // The name resource_adaptor_imp is for exposition only.
40
+ template <class Allocator> class resource_adaptor_imp;
41
+
42
+ template <class Allocator>
43
+ using resource_adaptor = resource_adaptor_imp<
44
+ allocator_traits<Allocator>::rebind_alloc<char>>;
45
+
46
+ // Global memory resources
47
+ memory_resource* new_delete_resource() noexcept;
48
+ memory_resource* null_memory_resource() noexcept;
49
+
50
+ // The default memory resource
51
+ memory_resource* set_default_resource(memory_resource* r) noexcept;
52
+ memory_resource* get_default_resource() noexcept;
53
+
54
+ // Standard memory resources
55
+ struct pool_options;
56
+ class synchronized_pool_resource;
57
+ class unsynchronized_pool_resource;
58
+ class monotonic_buffer_resource;
59
+
60
+ } // namespace pmr
61
+ } // namespace fundamentals_v1
62
+ } // namespace experimental
63
+ } // namespace std
64
+
65
+ */
66
+
67
+ #include <experimental/__config>
68
+ #include <experimental/__memory>
69
+ #include <limits>
70
+ #include <memory>
71
+ #include <new>
72
+ #include <stdexcept>
73
+ #include <type_traits>
74
+ #include <utility>
75
+ #include <tuple>
76
+ #include <cstddef>
77
+ #include <cstdlib>
78
+ #include <__debug>
79
+
80
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
81
+ #pragma GCC system_header
82
+ #endif
83
+
84
+ _LIBCUDACXX_PUSH_MACROS
85
+ #include <__undef_macros>
86
+
87
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
88
+
89
+ // Round __s up to next multiple of __a.
90
+ inline _LIBCUDACXX_INLINE_VISIBILITY
91
+ size_t __aligned_allocation_size(size_t __s, size_t __a) _NOEXCEPT
92
+ {
93
+ _LIBCUDACXX_ASSERT(__s + __a > __s, "aligned allocation size overflows");
94
+ return (__s + __a - 1) & ~(__a - 1);
95
+ }
96
+
97
+ // 8.5, memory.resource
98
+ class _LIBCUDACXX_TYPE_VIS memory_resource
99
+ {
100
+ static const size_t __max_align = _LIBCUDACXX_ALIGNOF(max_align_t);
101
+
102
+ // 8.5.2, memory.resource.public
103
+ public:
104
+ virtual ~memory_resource() = default;
105
+
106
+ _LIBCUDACXX_INLINE_VISIBILITY
107
+ void* allocate(size_t __bytes, size_t __align = __max_align)
108
+ { return do_allocate(__bytes, __align); }
109
+
110
+ _LIBCUDACXX_INLINE_VISIBILITY
111
+ void deallocate(void * __p, size_t __bytes, size_t __align = __max_align)
112
+ { do_deallocate(__p, __bytes, __align); }
113
+
114
+ _LIBCUDACXX_INLINE_VISIBILITY
115
+ bool is_equal(memory_resource const & __other) const _NOEXCEPT
116
+ { return do_is_equal(__other); }
117
+
118
+ // 8.5.3, memory.resource.priv
119
+ protected:
120
+ virtual void* do_allocate(size_t, size_t) = 0;
121
+ virtual void do_deallocate(void*, size_t, size_t) = 0;
122
+ virtual bool do_is_equal(memory_resource const &) const _NOEXCEPT = 0;
123
+ };
124
+
125
+ // 8.5.4, memory.resource.eq
126
+ inline _LIBCUDACXX_INLINE_VISIBILITY
127
+ bool operator==(memory_resource const & __lhs,
128
+ memory_resource const & __rhs) _NOEXCEPT
129
+ {
130
+ return &__lhs == &__rhs || __lhs.is_equal(__rhs);
131
+ }
132
+
133
+ inline _LIBCUDACXX_INLINE_VISIBILITY
134
+ bool operator!=(memory_resource const & __lhs,
135
+ memory_resource const & __rhs) _NOEXCEPT
136
+ {
137
+ return !(__lhs == __rhs);
138
+ }
139
+
140
+ _LIBCUDACXX_FUNC_VIS
141
+ memory_resource * new_delete_resource() _NOEXCEPT;
142
+
143
+ _LIBCUDACXX_FUNC_VIS
144
+ memory_resource * null_memory_resource() _NOEXCEPT;
145
+
146
+ _LIBCUDACXX_FUNC_VIS
147
+ memory_resource * get_default_resource() _NOEXCEPT;
148
+
149
+ _LIBCUDACXX_FUNC_VIS
150
+ memory_resource * set_default_resource(memory_resource * __new_res) _NOEXCEPT;
151
+
152
+ // 8.6, memory.polymorphic.allocator.class
153
+
154
+ // 8.6.1, memory.polymorphic.allocator.overview
155
+ template <class _ValueType>
156
+ class _LIBCUDACXX_TEMPLATE_VIS polymorphic_allocator
157
+ {
158
+ public:
159
+ typedef _ValueType value_type;
160
+
161
+ // 8.6.2, memory.polymorphic.allocator.ctor
162
+ _LIBCUDACXX_INLINE_VISIBILITY
163
+ polymorphic_allocator() _NOEXCEPT
164
+ : __res_(_CUDA_VSTD_LFTS_PMR::get_default_resource())
165
+ {}
166
+
167
+ _LIBCUDACXX_INLINE_VISIBILITY
168
+ polymorphic_allocator(memory_resource * __r) _NOEXCEPT
169
+ : __res_(__r)
170
+ {}
171
+
172
+ polymorphic_allocator(polymorphic_allocator const &) = default;
173
+
174
+ template <class _Tp>
175
+ _LIBCUDACXX_INLINE_VISIBILITY
176
+ polymorphic_allocator(polymorphic_allocator<_Tp> const & __other) _NOEXCEPT
177
+ : __res_(__other.resource())
178
+ {}
179
+
180
+ polymorphic_allocator &
181
+ operator=(polymorphic_allocator const &) = delete;
182
+
183
+ // 8.6.3, memory.polymorphic.allocator.mem
184
+ _LIBCUDACXX_INLINE_VISIBILITY
185
+ _ValueType* allocate(size_t __n) {
186
+ if (__n > __max_size()) {
187
+ __throw_length_error(
188
+ "std::experimental::pmr::polymorphic_allocator<T>::allocate(size_t n)"
189
+ " 'n' exceeds maximum supported size");
190
+ }
191
+ return static_cast<_ValueType*>(
192
+ __res_->allocate(__n * sizeof(_ValueType), _LIBCUDACXX_ALIGNOF(_ValueType))
193
+ );
194
+ }
195
+
196
+ _LIBCUDACXX_INLINE_VISIBILITY
197
+ void deallocate(_ValueType * __p, size_t __n) _NOEXCEPT {
198
+ _LIBCUDACXX_ASSERT(__n <= __max_size(),
199
+ "deallocate called for size which exceeds max_size()");
200
+ __res_->deallocate(__p, __n * sizeof(_ValueType), _LIBCUDACXX_ALIGNOF(_ValueType));
201
+ }
202
+
203
+ template <class _Tp, class ..._Ts>
204
+ _LIBCUDACXX_INLINE_VISIBILITY
205
+ void construct(_Tp* __p, _Ts &&... __args)
206
+ {
207
+ _CUDA_VSTD_LFTS::__lfts_user_alloc_construct(
208
+ __p, *this, _CUDA_VSTD::forward<_Ts>(__args)...
209
+ );
210
+ }
211
+
212
+ template <class _T1, class _T2, class ..._Args1, class ..._Args2>
213
+ _LIBCUDACXX_INLINE_VISIBILITY
214
+ void construct(pair<_T1, _T2>* __p, piecewise_construct_t,
215
+ tuple<_Args1...> __x, tuple<_Args2...> __y)
216
+ {
217
+ ::new ((void*)__p) pair<_T1, _T2>(piecewise_construct
218
+ , __transform_tuple(
219
+ typename __lfts_uses_alloc_ctor<
220
+ _T1, polymorphic_allocator&, _Args1...
221
+ >::type()
222
+ , _CUDA_VSTD::move(__x)
223
+ , typename __make_tuple_indices<sizeof...(_Args1)>::type{}
224
+ )
225
+ , __transform_tuple(
226
+ typename __lfts_uses_alloc_ctor<
227
+ _T2, polymorphic_allocator&, _Args2...
228
+ >::type()
229
+ , _CUDA_VSTD::move(__y)
230
+ , typename __make_tuple_indices<sizeof...(_Args2)>::type{}
231
+ )
232
+ );
233
+ }
234
+
235
+ template <class _T1, class _T2>
236
+ _LIBCUDACXX_INLINE_VISIBILITY
237
+ void construct(pair<_T1, _T2>* __p) {
238
+ construct(__p, piecewise_construct, tuple<>(), tuple<>());
239
+ }
240
+
241
+ template <class _T1, class _T2, class _Up, class _Vp>
242
+ _LIBCUDACXX_INLINE_VISIBILITY
243
+ void construct(pair<_T1, _T2> * __p, _Up && __u, _Vp && __v) {
244
+ construct(__p, piecewise_construct
245
+ , _CUDA_VSTD::forward_as_tuple(_CUDA_VSTD::forward<_Up>(__u))
246
+ , _CUDA_VSTD::forward_as_tuple(_CUDA_VSTD::forward<_Vp>(__v)));
247
+ }
248
+
249
+ template <class _T1, class _T2, class _U1, class _U2>
250
+ _LIBCUDACXX_INLINE_VISIBILITY
251
+ void construct(pair<_T1, _T2> * __p, pair<_U1, _U2> const & __pr) {
252
+ construct(__p, piecewise_construct
253
+ , _CUDA_VSTD::forward_as_tuple(__pr.first)
254
+ , _CUDA_VSTD::forward_as_tuple(__pr.second));
255
+ }
256
+
257
+ template <class _T1, class _T2, class _U1, class _U2>
258
+ _LIBCUDACXX_INLINE_VISIBILITY
259
+ void construct(pair<_T1, _T2> * __p, pair<_U1, _U2> && __pr){
260
+ construct(__p, piecewise_construct
261
+ , _CUDA_VSTD::forward_as_tuple(_CUDA_VSTD::forward<_U1>(__pr.first))
262
+ , _CUDA_VSTD::forward_as_tuple(_CUDA_VSTD::forward<_U2>(__pr.second)));
263
+ }
264
+
265
+ template <class _Tp>
266
+ _LIBCUDACXX_INLINE_VISIBILITY
267
+ void destroy(_Tp * __p) _NOEXCEPT
268
+ { __p->~_Tp(); }
269
+
270
+ _LIBCUDACXX_INLINE_VISIBILITY
271
+ polymorphic_allocator
272
+ select_on_container_copy_construction() const _NOEXCEPT
273
+ { return polymorphic_allocator(); }
274
+
275
+ _LIBCUDACXX_INLINE_VISIBILITY
276
+ memory_resource * resource() const _NOEXCEPT
277
+ { return __res_; }
278
+
279
+ private:
280
+ template <class ..._Args, size_t ..._Idx>
281
+ _LIBCUDACXX_INLINE_VISIBILITY
282
+ tuple<_Args&&...>
283
+ __transform_tuple(integral_constant<int, 0>, tuple<_Args...>&& __t,
284
+ __tuple_indices<_Idx...>) const
285
+ {
286
+ return _CUDA_VSTD::forward_as_tuple(_CUDA_VSTD::get<_Idx>(_CUDA_VSTD::move(__t))...);
287
+ }
288
+
289
+ template <class ..._Args, size_t ..._Idx>
290
+ _LIBCUDACXX_INLINE_VISIBILITY
291
+ tuple<allocator_arg_t const&, polymorphic_allocator&, _Args&&...>
292
+ __transform_tuple(integral_constant<int, 1>, tuple<_Args...> && __t,
293
+ __tuple_indices<_Idx...>)
294
+ {
295
+ using _Tup = tuple<allocator_arg_t const&, polymorphic_allocator&, _Args&&...>;
296
+ return _Tup(allocator_arg, *this,
297
+ _CUDA_VSTD::get<_Idx>(_CUDA_VSTD::move(__t))...);
298
+ }
299
+
300
+ template <class ..._Args, size_t ..._Idx>
301
+ _LIBCUDACXX_INLINE_VISIBILITY
302
+ tuple<_Args&&..., polymorphic_allocator&>
303
+ __transform_tuple(integral_constant<int, 2>, tuple<_Args...> && __t,
304
+ __tuple_indices<_Idx...>)
305
+ {
306
+ using _Tup = tuple<_Args&&..., polymorphic_allocator&>;
307
+ return _Tup(_CUDA_VSTD::get<_Idx>(_CUDA_VSTD::move(__t))..., *this);
308
+ }
309
+
310
+ _LIBCUDACXX_INLINE_VISIBILITY
311
+ size_t __max_size() const _NOEXCEPT
312
+ { return numeric_limits<size_t>::max() / sizeof(value_type); }
313
+
314
+ memory_resource * __res_;
315
+ };
316
+
317
+ // 8.6.4, memory.polymorphic.allocator.eq
318
+
319
+ template <class _Tp, class _Up>
320
+ inline _LIBCUDACXX_INLINE_VISIBILITY
321
+ bool operator==(polymorphic_allocator<_Tp> const & __lhs,
322
+ polymorphic_allocator<_Up> const & __rhs) _NOEXCEPT
323
+ {
324
+ return *__lhs.resource() == *__rhs.resource();
325
+ }
326
+
327
+ template <class _Tp, class _Up>
328
+ inline _LIBCUDACXX_INLINE_VISIBILITY
329
+ bool operator!=(polymorphic_allocator<_Tp> const & __lhs,
330
+ polymorphic_allocator<_Up> const & __rhs) _NOEXCEPT
331
+ {
332
+ return !(__lhs == __rhs);
333
+ }
334
+
335
+ // 8.7, memory.resource.adaptor
336
+
337
+ // 8.7.1, memory.resource.adaptor.overview
338
+ template <class _CharAlloc>
339
+ class _LIBCUDACXX_TEMPLATE_VIS __resource_adaptor_imp
340
+ : public memory_resource
341
+ {
342
+ using _CTraits = allocator_traits<_CharAlloc>;
343
+ static_assert(is_same<typename _CTraits::value_type, char>::value
344
+ && is_same<typename _CTraits::pointer, char*>::value
345
+ && is_same<typename _CTraits::void_pointer, void*>::value, "");
346
+
347
+ static const size_t _MaxAlign = _LIBCUDACXX_ALIGNOF(max_align_t);
348
+
349
+ using _Alloc = typename _CTraits::template rebind_alloc<
350
+ typename aligned_storage<_MaxAlign, _MaxAlign>::type
351
+ >;
352
+
353
+ using _ValueType = typename _Alloc::value_type;
354
+
355
+ _Alloc __alloc_;
356
+
357
+ public:
358
+ typedef _CharAlloc allocator_type;
359
+
360
+ __resource_adaptor_imp() = default;
361
+ __resource_adaptor_imp(__resource_adaptor_imp const &) = default;
362
+ __resource_adaptor_imp(__resource_adaptor_imp &&) = default;
363
+
364
+ // 8.7.2, memory.resource.adaptor.ctor
365
+
366
+ _LIBCUDACXX_INLINE_VISIBILITY
367
+ explicit __resource_adaptor_imp(allocator_type const & __a)
368
+ : __alloc_(__a)
369
+ {}
370
+
371
+ _LIBCUDACXX_INLINE_VISIBILITY
372
+ explicit __resource_adaptor_imp(allocator_type && __a)
373
+ : __alloc_(_CUDA_VSTD::move(__a))
374
+ {}
375
+
376
+ __resource_adaptor_imp &
377
+ operator=(__resource_adaptor_imp const &) = default;
378
+
379
+ _LIBCUDACXX_INLINE_VISIBILITY
380
+ allocator_type get_allocator() const
381
+ { return __alloc_; }
382
+
383
+ // 8.7.3, memory.resource.adaptor.mem
384
+ protected:
385
+ virtual void * do_allocate(size_t __bytes, size_t)
386
+ {
387
+ if (__bytes > __max_size()) {
388
+ __throw_length_error(
389
+ "std::experimental::pmr::resource_adaptor<T>::do_allocate(size_t bytes, size_t align)"
390
+ " 'bytes' exceeds maximum supported size");
391
+ }
392
+ size_t __s = __aligned_allocation_size(__bytes, _MaxAlign) / _MaxAlign;
393
+ return __alloc_.allocate(__s);
394
+ }
395
+
396
+ virtual void do_deallocate(void * __p, size_t __bytes, size_t)
397
+ {
398
+ _LIBCUDACXX_ASSERT(__bytes <= __max_size(),
399
+ "do_deallocate called for size which exceeds the maximum allocation size");
400
+ size_t __s = __aligned_allocation_size(__bytes, _MaxAlign) / _MaxAlign;
401
+ __alloc_.deallocate((_ValueType*)__p, __s);
402
+ }
403
+
404
+ virtual bool do_is_equal(memory_resource const & __other) const _NOEXCEPT {
405
+ __resource_adaptor_imp const * __p
406
+ = dynamic_cast<__resource_adaptor_imp const *>(&__other);
407
+ return __p ? __alloc_ == __p->__alloc_ : false;
408
+ }
409
+
410
+ private:
411
+ _LIBCUDACXX_INLINE_VISIBILITY
412
+ size_t __max_size() const _NOEXCEPT {
413
+ return numeric_limits<size_t>::max() - _MaxAlign;
414
+ }
415
+ };
416
+
417
+ template <class _Alloc>
418
+ using resource_adaptor = __resource_adaptor_imp<
419
+ typename allocator_traits<_Alloc>::template rebind_alloc<char>
420
+ >;
421
+
422
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
423
+
424
+ _LIBCUDACXX_POP_MACROS
425
+
426
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_MEMORY_RESOURCE */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/propagate_const ADDED
@@ -0,0 +1,578 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===------------------------ propagate_const -----------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_PROPAGATE_CONST
11
+ #define _LIBCUDACXX_EXPERIMENTAL_PROPAGATE_CONST
12
+ /*
13
+ propagate_const synopsis
14
+
15
+ namespace std { namespace experimental { inline namespace fundamentals_v2 {
16
+
17
+ // [propagate_const]
18
+ template <class T> class propagate_const;
19
+
20
+ // [propagate_const.underlying], underlying pointer access
21
+ constexpr const _Tp& _CUDA_VSTD_LFTS_V2::get_underlying(const propagate_const<T>& pt) noexcept;
22
+ constexpr T& _CUDA_VSTD_LFTS_V2::get_underlying(propagate_const<T>& pt) noexcept;
23
+
24
+ // [propagate_const.relational], relational operators
25
+ template <class T> constexpr bool operator==(const propagate_const<T>& pt, nullptr_t);
26
+ template <class T> constexpr bool operator==(nullptr_t, const propagate_const<T>& pu);
27
+ template <class T> constexpr bool operator!=(const propagate_const<T>& pt, nullptr_t);
28
+ template <class T> constexpr bool operator!=(nullptr_t, const propagate_const<T>& pu);
29
+ template <class T, class U> constexpr bool operator==(const propagate_const<T>& pt, const propagate_const<_Up>& pu);
30
+ template <class T, class U> constexpr bool operator!=(const propagate_const<T>& pt, const propagate_const<_Up>& pu);
31
+ template <class T, class U> constexpr bool operator<(const propagate_const<T>& pt, const propagate_const<_Up>& pu);
32
+ template <class T, class U> constexpr bool operator>(const propagate_const<T>& pt, const propagate_const<_Up>& pu);
33
+ template <class T, class U> constexpr bool operator<=(const propagate_const<T>& pt, const propagate_const<_Up>& pu);
34
+ template <class T, class U> constexpr bool operator>=(const propagate_const<T>& pt, const propagate_const<_Up>& pu);
35
+ template <class T, class U> constexpr bool operator==(const propagate_const<T>& pt, const _Up& u);
36
+ template <class T, class U> constexpr bool operator!=(const propagate_const<T>& pt, const _Up& u);
37
+ template <class T, class U> constexpr bool operator<(const propagate_const<T>& pt, const _Up& u);
38
+ template <class T, class U> constexpr bool operator>(const propagate_const<T>& pt, const _Up& u);
39
+ template <class T, class U> constexpr bool operator<=(const propagate_const<T>& pt, const _Up& u);
40
+ template <class T, class U> constexpr bool operator>=(const propagate_const<T>& pt, const _Up& u);
41
+ template <class T, class U> constexpr bool operator==(const _Tp& t, const propagate_const<_Up>& pu);
42
+ template <class T, class U> constexpr bool operator!=(const _Tp& t, const propagate_const<_Up>& pu);
43
+ template <class T, class U> constexpr bool operator<(const _Tp& t, const propagate_const<_Up>& pu);
44
+ template <class T, class U> constexpr bool operator>(const _Tp& t, const propagate_const<_Up>& pu);
45
+ template <class T, class U> constexpr bool operator<=(const _Tp& t, const propagate_const<_Up>& pu);
46
+ template <class T, class U> constexpr bool operator>=(const _Tp& t, const propagate_const<_Up>& pu);
47
+
48
+ // [propagate_const.algorithms], specialized algorithms
49
+ template <class T> constexpr void swap(propagate_const<T>& pt, propagate_const<T>& pu) noexcept(see below);
50
+
51
+ template <class T>
52
+ class propagate_const
53
+ {
54
+
55
+ public:
56
+ typedef remove_reference_t<decltype(*declval<T&>())> element_type;
57
+
58
+ // [propagate_const.ctor], constructors
59
+ constexpr propagate_const() = default;
60
+ propagate_const(const propagate_const& p) = delete;
61
+ constexpr propagate_const(propagate_const&& p) = default;
62
+ template <class U> EXPLICIT constexpr propagate_const(propagate_const<_Up>&& pu); // see below
63
+ template <class U> EXPLICIT constexpr propagate_const(U&& u); // see below
64
+
65
+ // [propagate_const.assignment], assignment
66
+ propagate_const& operator=(const propagate_const& p) = delete;
67
+ constexpr propagate_const& operator=(propagate_const&& p) = default;
68
+ template <class U> constexpr propagate_const& operator=(propagate_const<_Up>&& pu);
69
+ template <class U> constexpr propagate_const& operator=(U&& u); // see below
70
+
71
+ // [propagate_const.const_observers], const observers
72
+ explicit constexpr operator bool() const;
73
+ constexpr const element_type* operator->() const;
74
+ constexpr operator const element_type*() const; // Not always defined
75
+ constexpr const element_type& operator*() const;
76
+ constexpr const element_type* get() const;
77
+
78
+ // [propagate_const.non_const_observers], non-const observers
79
+ constexpr element_type* operator->();
80
+ constexpr operator element_type*(); // Not always defined
81
+ constexpr element_type& operator*();
82
+ constexpr element_type* get();
83
+
84
+ // [propagate_const.modifiers], modifiers
85
+ constexpr void swap(propagate_const& pt) noexcept(see below)
86
+
87
+ private:
88
+ T t_; // exposition only
89
+ };
90
+
91
+ } // namespace fundamentals_v2
92
+ } // namespace experimental
93
+
94
+ // [propagate_const.hash], hash support
95
+ template <class T> struct hash<experimental::fundamentals_v2::propagate_const<T>>;
96
+
97
+ // [propagate_const.comparison_function_objects], comparison function objects
98
+ template <class T> struct equal_to<experimental::fundamentals_v2::propagate_const<T>>;
99
+ template <class T> struct not_equal_to<experimental::fundamentals_v2::propagate_const<T>>;
100
+ template <class T> struct less<experimental::fundamentals_v2::propagate_const<T>>;
101
+ template <class T> struct greater<experimental::fundamentals_v2::propagate_const<T>>;
102
+ template <class T> struct less_equal<experimental::fundamentals_v2::propagate_const<T>>;
103
+ template <class T> struct greater_equal<experimental::fundamentals_v2::propagate_const<T>>;
104
+
105
+ } // namespace std
106
+
107
+ */
108
+
109
+ #include <experimental/__config>
110
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
111
+ #pragma GCC system_header
112
+ #endif
113
+
114
+ #if _LIBCUDACXX_STD_VER > 11
115
+
116
+ #include <type_traits>
117
+ #include <utility>
118
+ #include <functional>
119
+
120
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_V2
121
+
122
+
123
+ template <class _Tp>
124
+ class propagate_const;
125
+
126
+ template <class _Up>
127
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
128
+ const _Up& get_underlying(const propagate_const<_Up>& __pu) _NOEXCEPT;
129
+
130
+ template <class _Up>
131
+ inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
132
+ _Up& get_underlying(propagate_const<_Up>& __pu) _NOEXCEPT;
133
+
134
+ template <class _Tp>
135
+ class propagate_const
136
+ {
137
+ public:
138
+ typedef remove_reference_t<decltype(*_CUDA_VSTD::declval<_Tp&>())> element_type;
139
+
140
+ static_assert(!is_array<_Tp>::value,
141
+ "Instantiation of propagate_const with an array type is ill-formed.");
142
+ static_assert(!is_reference<_Tp>::value,
143
+ "Instantiation of propagate_const with a reference type is ill-formed.");
144
+ static_assert(!(is_pointer<_Tp>::value && is_function<typename remove_pointer<_Tp>::type>::value),
145
+ "Instantiation of propagate_const with a function-pointer type is ill-formed.");
146
+ static_assert(!(is_pointer<_Tp>::value && is_same<typename remove_cv<typename remove_pointer<_Tp>::type>::type, void>::value),
147
+ "Instantiation of propagate_const with a pointer to (possibly cv-qualified) void is ill-formed.");
148
+
149
+ private:
150
+ template <class _Up>
151
+ static _LIBCUDACXX_CONSTEXPR element_type* __get_pointer(_Up* __u)
152
+ {
153
+ return __u;
154
+ }
155
+
156
+ template <class _Up>
157
+ static _LIBCUDACXX_CONSTEXPR element_type* __get_pointer(_Up& __u)
158
+ {
159
+ return __get_pointer(__u.get());
160
+ }
161
+
162
+ template <class _Up>
163
+ static _LIBCUDACXX_CONSTEXPR const element_type* __get_pointer(const _Up* __u)
164
+ {
165
+ return __u;
166
+ }
167
+
168
+ template <class _Up>
169
+ static _LIBCUDACXX_CONSTEXPR const element_type* __get_pointer(const _Up& __u)
170
+ {
171
+ return __get_pointer(__u.get());
172
+ }
173
+
174
+ template <class _Up>
175
+ struct __is_propagate_const : false_type
176
+ {
177
+ };
178
+
179
+ template <class _Up>
180
+ struct __is_propagate_const<propagate_const<_Up>> : true_type
181
+ {
182
+ };
183
+
184
+ _Tp __t_;
185
+
186
+ public:
187
+
188
+ template <class _Up> friend _LIBCUDACXX_CONSTEXPR const _Up& ::_CUDA_VSTD_LFTS_V2::get_underlying(const propagate_const<_Up>& __pu) _NOEXCEPT;
189
+ template <class _Up> friend _LIBCUDACXX_CONSTEXPR _Up& ::_CUDA_VSTD_LFTS_V2::get_underlying(propagate_const<_Up>& __pu) _NOEXCEPT;
190
+
191
+ _LIBCUDACXX_CONSTEXPR propagate_const() = default;
192
+
193
+ propagate_const(const propagate_const&) = delete;
194
+
195
+ _LIBCUDACXX_CONSTEXPR propagate_const(propagate_const&&) = default;
196
+
197
+ template <class _Up, enable_if_t<!is_convertible<_Up, _Tp>::value &&
198
+ is_constructible<_Tp, _Up&&>::value,bool> = true>
199
+ explicit _LIBCUDACXX_CONSTEXPR propagate_const(propagate_const<_Up>&& __pu)
200
+ : __t_(std::move(_CUDA_VSTD_LFTS_V2::get_underlying(__pu)))
201
+ {
202
+ }
203
+
204
+ template <class _Up, enable_if_t<is_convertible<_Up&&, _Tp>::value &&
205
+ is_constructible<_Tp, _Up&&>::value,bool> = false>
206
+ _LIBCUDACXX_CONSTEXPR propagate_const(propagate_const<_Up>&& __pu)
207
+ : __t_(std::move(_CUDA_VSTD_LFTS_V2::get_underlying(__pu)))
208
+ {
209
+ }
210
+
211
+ template <class _Up, enable_if_t<!is_convertible<_Up&&, _Tp>::value &&
212
+ is_constructible<_Tp, _Up&&>::value &&
213
+ !__is_propagate_const<decay_t<_Up>>::value,bool> = true>
214
+ explicit _LIBCUDACXX_CONSTEXPR propagate_const(_Up&& __u)
215
+ : __t_(std::forward<_Up>(__u))
216
+ {
217
+ }
218
+
219
+ template <class _Up, enable_if_t<is_convertible<_Up&&, _Tp>::value &&
220
+ is_constructible<_Tp, _Up&&>::value &&
221
+ !__is_propagate_const<decay_t<_Up>>::value,bool> = false>
222
+ _LIBCUDACXX_CONSTEXPR propagate_const(_Up&& __u)
223
+ : __t_(std::forward<_Up>(__u))
224
+ {
225
+ }
226
+
227
+ propagate_const& operator=(const propagate_const&) = delete;
228
+
229
+ _LIBCUDACXX_CONSTEXPR propagate_const& operator=(propagate_const&&) = default;
230
+
231
+ template <class _Up>
232
+ _LIBCUDACXX_CONSTEXPR propagate_const& operator=(propagate_const<_Up>&& __pu)
233
+ {
234
+ __t_ = std::move(_CUDA_VSTD_LFTS_V2::get_underlying(__pu));
235
+ return *this;
236
+ }
237
+
238
+ template <class _Up, class _Vp = enable_if_t<!__is_propagate_const<decay_t<_Up>>::value>>
239
+ _LIBCUDACXX_CONSTEXPR propagate_const& operator=(_Up&& __u)
240
+ {
241
+ __t_ = std::forward<_Up>(__u);
242
+ return *this;
243
+ }
244
+
245
+ _LIBCUDACXX_CONSTEXPR const element_type* get() const
246
+ {
247
+ return __get_pointer(__t_);
248
+ }
249
+
250
+ _LIBCUDACXX_CONSTEXPR element_type* get()
251
+ {
252
+ return __get_pointer(__t_);
253
+ }
254
+
255
+ explicit _LIBCUDACXX_CONSTEXPR operator bool() const
256
+ {
257
+ return get() != nullptr;
258
+ }
259
+
260
+ _LIBCUDACXX_CONSTEXPR const element_type* operator->() const
261
+ {
262
+ return get();
263
+ }
264
+
265
+ template <class _Tp_ = _Tp, class _Up = enable_if_t<is_convertible<
266
+ const _Tp_, const element_type *>::value>>
267
+ _LIBCUDACXX_CONSTEXPR operator const element_type *() const {
268
+ return get();
269
+ }
270
+
271
+ _LIBCUDACXX_CONSTEXPR const element_type& operator*() const
272
+ {
273
+ return *get();
274
+ }
275
+
276
+ _LIBCUDACXX_CONSTEXPR element_type* operator->()
277
+ {
278
+ return get();
279
+ }
280
+
281
+ template <class _Tp_ = _Tp, class _Up = enable_if_t<
282
+ is_convertible<_Tp_, element_type *>::value>>
283
+ _LIBCUDACXX_CONSTEXPR operator element_type *() {
284
+ return get();
285
+ }
286
+
287
+ _LIBCUDACXX_CONSTEXPR element_type& operator*()
288
+ {
289
+ return *get();
290
+ }
291
+
292
+ _LIBCUDACXX_CONSTEXPR void swap(propagate_const& __pt) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
293
+ {
294
+ using _CUDA_VSTD::swap;
295
+ swap(__t_, __pt.__t_);
296
+ }
297
+ };
298
+
299
+
300
+ template <class _Tp>
301
+ _LIBCUDACXX_INLINE_VISIBILITY
302
+ _LIBCUDACXX_CONSTEXPR bool operator==(const propagate_const<_Tp>& __pt, nullptr_t)
303
+ {
304
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) == nullptr;
305
+ }
306
+
307
+ template <class _Tp>
308
+ _LIBCUDACXX_INLINE_VISIBILITY
309
+ _LIBCUDACXX_CONSTEXPR bool operator==(nullptr_t, const propagate_const<_Tp>& __pt)
310
+ {
311
+ return nullptr == _CUDA_VSTD_LFTS_V2::get_underlying(__pt);
312
+ }
313
+
314
+ template <class _Tp>
315
+ _LIBCUDACXX_INLINE_VISIBILITY
316
+ _LIBCUDACXX_CONSTEXPR bool operator!=(const propagate_const<_Tp>& __pt, nullptr_t)
317
+ {
318
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) != nullptr;
319
+ }
320
+
321
+ template <class _Tp>
322
+ _LIBCUDACXX_INLINE_VISIBILITY
323
+ _LIBCUDACXX_CONSTEXPR bool operator!=(nullptr_t, const propagate_const<_Tp>& __pt)
324
+ {
325
+ return nullptr != _CUDA_VSTD_LFTS_V2::get_underlying(__pt);
326
+ }
327
+
328
+ template <class _Tp, class _Up>
329
+ _LIBCUDACXX_INLINE_VISIBILITY
330
+ _LIBCUDACXX_CONSTEXPR bool operator==(const propagate_const<_Tp>& __pt,
331
+ const propagate_const<_Up>& __pu)
332
+ {
333
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) == _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
334
+ }
335
+
336
+ template <class _Tp, class _Up>
337
+ _LIBCUDACXX_INLINE_VISIBILITY
338
+ _LIBCUDACXX_CONSTEXPR bool operator!=(const propagate_const<_Tp>& __pt,
339
+ const propagate_const<_Up>& __pu)
340
+ {
341
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) != _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
342
+ }
343
+
344
+ template <class _Tp, class _Up>
345
+ _LIBCUDACXX_INLINE_VISIBILITY
346
+ _LIBCUDACXX_CONSTEXPR bool operator<(const propagate_const<_Tp>& __pt,
347
+ const propagate_const<_Up>& __pu)
348
+ {
349
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) < _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
350
+ }
351
+
352
+ template <class _Tp, class _Up>
353
+ _LIBCUDACXX_INLINE_VISIBILITY
354
+ _LIBCUDACXX_CONSTEXPR bool operator>(const propagate_const<_Tp>& __pt,
355
+ const propagate_const<_Up>& __pu)
356
+ {
357
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) > _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
358
+ }
359
+
360
+ template <class _Tp, class _Up>
361
+ _LIBCUDACXX_INLINE_VISIBILITY
362
+ _LIBCUDACXX_CONSTEXPR bool operator<=(const propagate_const<_Tp>& __pt,
363
+ const propagate_const<_Up>& __pu)
364
+ {
365
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) <= _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
366
+ }
367
+
368
+ template <class _Tp, class _Up>
369
+ _LIBCUDACXX_INLINE_VISIBILITY
370
+ _LIBCUDACXX_CONSTEXPR bool operator>=(const propagate_const<_Tp>& __pt,
371
+ const propagate_const<_Up>& __pu)
372
+ {
373
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) >= _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
374
+ }
375
+
376
+ template <class _Tp, class _Up>
377
+ _LIBCUDACXX_INLINE_VISIBILITY
378
+ _LIBCUDACXX_CONSTEXPR bool operator==(const propagate_const<_Tp>& __pt, const _Up& __u)
379
+ {
380
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) == __u;
381
+ }
382
+
383
+ template <class _Tp, class _Up>
384
+ _LIBCUDACXX_INLINE_VISIBILITY
385
+ _LIBCUDACXX_CONSTEXPR bool operator!=(const propagate_const<_Tp>& __pt, const _Up& __u)
386
+ {
387
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) != __u;
388
+ }
389
+
390
+ template <class _Tp, class _Up>
391
+ _LIBCUDACXX_INLINE_VISIBILITY
392
+ _LIBCUDACXX_CONSTEXPR bool operator<(const propagate_const<_Tp>& __pt, const _Up& __u)
393
+ {
394
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) < __u;
395
+ }
396
+
397
+ template <class _Tp, class _Up>
398
+ _LIBCUDACXX_INLINE_VISIBILITY
399
+ _LIBCUDACXX_CONSTEXPR bool operator>(const propagate_const<_Tp>& __pt, const _Up& __u)
400
+ {
401
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) > __u;
402
+ }
403
+
404
+ template <class _Tp, class _Up>
405
+ _LIBCUDACXX_INLINE_VISIBILITY
406
+ _LIBCUDACXX_CONSTEXPR bool operator<=(const propagate_const<_Tp>& __pt, const _Up& __u)
407
+ {
408
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) <= __u;
409
+ }
410
+
411
+ template <class _Tp, class _Up>
412
+ _LIBCUDACXX_INLINE_VISIBILITY
413
+ _LIBCUDACXX_CONSTEXPR bool operator>=(const propagate_const<_Tp>& __pt, const _Up& __u)
414
+ {
415
+ return _CUDA_VSTD_LFTS_V2::get_underlying(__pt) >= __u;
416
+ }
417
+
418
+
419
+ template <class _Tp, class _Up>
420
+ _LIBCUDACXX_INLINE_VISIBILITY
421
+ _LIBCUDACXX_CONSTEXPR bool operator==(const _Tp& __t, const propagate_const<_Up>& __pu)
422
+ {
423
+ return __t == _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
424
+ }
425
+
426
+ template <class _Tp, class _Up>
427
+ _LIBCUDACXX_INLINE_VISIBILITY
428
+ _LIBCUDACXX_CONSTEXPR bool operator!=(const _Tp& __t, const propagate_const<_Up>& __pu)
429
+ {
430
+ return __t != _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
431
+ }
432
+
433
+ template <class _Tp, class _Up>
434
+ _LIBCUDACXX_INLINE_VISIBILITY
435
+ _LIBCUDACXX_CONSTEXPR bool operator<(const _Tp& __t, const propagate_const<_Up>& __pu)
436
+ {
437
+ return __t < _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
438
+ }
439
+
440
+ template <class _Tp, class _Up>
441
+ _LIBCUDACXX_INLINE_VISIBILITY
442
+ _LIBCUDACXX_CONSTEXPR bool operator>(const _Tp& __t, const propagate_const<_Up>& __pu)
443
+ {
444
+ return __t > _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
445
+ }
446
+
447
+ template <class _Tp, class _Up>
448
+ _LIBCUDACXX_INLINE_VISIBILITY
449
+ _LIBCUDACXX_CONSTEXPR bool operator<=(const _Tp& __t, const propagate_const<_Up>& __pu)
450
+ {
451
+ return __t <= _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
452
+ }
453
+
454
+ template <class _Tp, class _Up>
455
+ _LIBCUDACXX_INLINE_VISIBILITY
456
+ _LIBCUDACXX_CONSTEXPR bool operator>=(const _Tp& __t, const propagate_const<_Up>& __pu)
457
+ {
458
+ return __t >= _CUDA_VSTD_LFTS_V2::get_underlying(__pu);
459
+ }
460
+
461
+ template <class _Tp>
462
+ _LIBCUDACXX_INLINE_VISIBILITY
463
+ _LIBCUDACXX_CONSTEXPR void swap(propagate_const<_Tp>& __pc1, propagate_const<_Tp>& __pc2) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
464
+ {
465
+ __pc1.swap(__pc2);
466
+ }
467
+
468
+ template <class _Tp>
469
+ _LIBCUDACXX_CONSTEXPR const _Tp& get_underlying(const propagate_const<_Tp>& __pt) _NOEXCEPT
470
+ {
471
+ return __pt.__t_;
472
+ }
473
+
474
+ template <class _Tp>
475
+ _LIBCUDACXX_CONSTEXPR _Tp& get_underlying(propagate_const<_Tp>& __pt) _NOEXCEPT
476
+ {
477
+ return __pt.__t_;
478
+ }
479
+
480
+ _LIBCUDACXX_END_NAMESPACE_LFTS_V2
481
+
482
+ _LIBCUDACXX_BEGIN_NAMESPACE_STD
483
+
484
+ template <class _Tp>
485
+ struct hash<experimental::fundamentals_v2::propagate_const<_Tp>>
486
+ {
487
+ typedef size_t result_type;
488
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> argument_type;
489
+
490
+ size_t operator()(const experimental::fundamentals_v2::propagate_const<_Tp>& __pc1) const
491
+ {
492
+ return std::hash<_Tp>()(_CUDA_VSTD_LFTS_V2::get_underlying(__pc1));
493
+ }
494
+ };
495
+
496
+ template <class _Tp>
497
+ struct equal_to<experimental::fundamentals_v2::propagate_const<_Tp>>
498
+ {
499
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> first_argument_type;
500
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> second_argument_type;
501
+
502
+ bool operator()(const experimental::fundamentals_v2::propagate_const<_Tp>& __pc1,
503
+ const experimental::fundamentals_v2::propagate_const<_Tp>& __pc2) const
504
+ {
505
+ return std::equal_to<_Tp>()(_CUDA_VSTD_LFTS_V2::get_underlying(__pc1), _CUDA_VSTD_LFTS_V2::get_underlying(__pc2));
506
+ }
507
+ };
508
+
509
+ template <class _Tp>
510
+ struct not_equal_to<experimental::fundamentals_v2::propagate_const<_Tp>>
511
+ {
512
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> first_argument_type;
513
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> second_argument_type;
514
+
515
+ bool operator()(const experimental::fundamentals_v2::propagate_const<_Tp>& __pc1,
516
+ const experimental::fundamentals_v2::propagate_const<_Tp>& __pc2) const
517
+ {
518
+ return std::not_equal_to<_Tp>()(_CUDA_VSTD_LFTS_V2::get_underlying(__pc1), _CUDA_VSTD_LFTS_V2::get_underlying(__pc2));
519
+ }
520
+ };
521
+
522
+ template <class _Tp>
523
+ struct less<experimental::fundamentals_v2::propagate_const<_Tp>>
524
+ {
525
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> first_argument_type;
526
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> second_argument_type;
527
+
528
+ bool operator()(const experimental::fundamentals_v2::propagate_const<_Tp>& __pc1,
529
+ const experimental::fundamentals_v2::propagate_const<_Tp>& __pc2) const
530
+ {
531
+ return std::less<_Tp>()(_CUDA_VSTD_LFTS_V2::get_underlying(__pc1), _CUDA_VSTD_LFTS_V2::get_underlying(__pc2));
532
+ }
533
+ };
534
+
535
+ template <class _Tp>
536
+ struct greater<experimental::fundamentals_v2::propagate_const<_Tp>>
537
+ {
538
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> first_argument_type;
539
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> second_argument_type;
540
+
541
+ bool operator()(const experimental::fundamentals_v2::propagate_const<_Tp>& __pc1,
542
+ const experimental::fundamentals_v2::propagate_const<_Tp>& __pc2) const
543
+ {
544
+ return std::greater<_Tp>()(_CUDA_VSTD_LFTS_V2::get_underlying(__pc1), _CUDA_VSTD_LFTS_V2::get_underlying(__pc2));
545
+ }
546
+ };
547
+
548
+ template <class _Tp>
549
+ struct less_equal<experimental::fundamentals_v2::propagate_const<_Tp>>
550
+ {
551
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> first_argument_type;
552
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> second_argument_type;
553
+
554
+ bool operator()(const experimental::fundamentals_v2::propagate_const<_Tp>& __pc1,
555
+ const experimental::fundamentals_v2::propagate_const<_Tp>& __pc2) const
556
+ {
557
+ return std::less_equal<_Tp>()(_CUDA_VSTD_LFTS_V2::get_underlying(__pc1), _CUDA_VSTD_LFTS_V2::get_underlying(__pc2));
558
+ }
559
+ };
560
+
561
+ template <class _Tp>
562
+ struct greater_equal<experimental::fundamentals_v2::propagate_const<_Tp>>
563
+ {
564
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> first_argument_type;
565
+ typedef experimental::fundamentals_v2::propagate_const<_Tp> second_argument_type;
566
+
567
+ bool operator()(const experimental::fundamentals_v2::propagate_const<_Tp>& __pc1,
568
+ const experimental::fundamentals_v2::propagate_const<_Tp>& __pc2) const
569
+ {
570
+ return std::greater_equal<_Tp>()(_CUDA_VSTD_LFTS_V2::get_underlying(__pc1), _CUDA_VSTD_LFTS_V2::get_underlying(__pc2));
571
+ }
572
+ };
573
+
574
+ _LIBCUDACXX_END_NAMESPACE_STD
575
+
576
+ #endif // _LIBCUDACXX_STD_VER > 11
577
+ #endif // _LIBCUDACXX_EXPERIMENTAL_PROPAGATE_CONST
578
+
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/regex ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===----------------------------- regex ----------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_REGEX
11
+ #define _LIBCUDACXX_EXPERIMENTAL_REGEX
12
+ /*
13
+ experimental/regex synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class BidirectionalIterator>
22
+ using match_results =
23
+ std::match_results<BidirectionalIterator,
24
+ polymorphic_allocator<sub_match<BidirectionalIterator>>>;
25
+
26
+ typedef match_results<const char*> cmatch;
27
+ typedef match_results<const wchar_t*> wcmatch;
28
+ typedef match_results<string::const_iterator> smatch;
29
+ typedef match_results<wstring::const_iterator> wsmatch;
30
+
31
+ } // namespace pmr
32
+ } // namespace fundamentals_v1
33
+ } // namespace experimental
34
+ } // namespace std
35
+
36
+ */
37
+
38
+ #include <experimental/__config>
39
+ #include <regex>
40
+ #include <experimental/string>
41
+ #include <experimental/memory_resource>
42
+
43
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
44
+ #pragma GCC system_header
45
+ #endif
46
+
47
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
48
+
49
+ template <class _BiDirIter>
50
+ using match_results =
51
+ _CUDA_VSTD::match_results<_BiDirIter,
52
+ polymorphic_allocator<_CUDA_VSTD::sub_match<_BiDirIter>>>;
53
+
54
+ typedef match_results<const char*> cmatch;
55
+ typedef match_results<const wchar_t*> wcmatch;
56
+ typedef match_results<_CUDA_VSTD_LFTS_PMR::string::const_iterator> smatch;
57
+ typedef match_results<_CUDA_VSTD_LFTS_PMR::wstring::const_iterator> wsmatch;
58
+
59
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
60
+
61
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_REGEX */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/set ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- list ------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_SET
11
+ #define _LIBCUDACXX_EXPERIMENTAL_SET
12
+ /*
13
+ experimental/set synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class Key, class T, class Compare = less<Key>>
22
+ using set = std::set<Key, T, Compare,
23
+ polymorphic_allocator<pair<const Key,T>>>;
24
+
25
+ template <class Key, class T, class Compare = less<Key>>
26
+ using multiset = std::multiset<Key, T, Compare,
27
+ polymorphic_allocator<pair<const Key,T>>>;
28
+
29
+ } // namespace pmr
30
+ } // namespace fundamentals_v1
31
+ } // namespace experimental
32
+ } // namespace std
33
+
34
+ */
35
+
36
+ #include <experimental/__config>
37
+ #include <set>
38
+ #include <experimental/memory_resource>
39
+
40
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
41
+ #pragma GCC system_header
42
+ #endif
43
+
44
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
45
+
46
+ template <class _Value, class _Compare = less<_Value>>
47
+ using set = _CUDA_VSTD::set<_Value, _Compare,
48
+ polymorphic_allocator<_Value>>;
49
+
50
+ template <class _Value, class _Compare = less<_Value>>
51
+ using multiset = _CUDA_VSTD::multiset<_Value, _Compare,
52
+ polymorphic_allocator<_Value>>;
53
+
54
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
55
+
56
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_SET */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/simd ADDED
@@ -0,0 +1,1569 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===------------------------------- simd ---------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_SIMD
10
+ #define _LIBCUDACXX_EXPERIMENTAL_SIMD
11
+
12
+ /*
13
+ experimental/simd synopsis
14
+
15
+ namespace std::experimental {
16
+
17
+ inline namespace parallelism_v2 {
18
+
19
+ namespace simd_abi {
20
+
21
+ struct scalar {};
22
+ template <int N> struct fixed_size {};
23
+ template <typename T> inline constexpr int max_fixed_size = implementation-defined;
24
+ template <typename T> using compatible = implementation-defined;
25
+ template <typename T> using native = implementation-defined;
26
+
27
+ } // simd_abi
28
+
29
+ struct element_aligned_tag {};
30
+ struct vector_aligned_tag {};
31
+ template <size_t> struct overaligned_tag {};
32
+ inline constexpr element_aligned_tag element_aligned{};
33
+ inline constexpr vector_aligned_tag vector_aligned{};
34
+ template <size_t N> inline constexpr overaligned_tag<N> overaligned{};
35
+
36
+ // traits [simd.traits]
37
+ template <class T> struct is_abi_tag;
38
+ template <class T> inline constexpr bool is_abi_tag_v = is_abi_tag<T>::value;
39
+
40
+ template <class T> struct is_simd;
41
+ template <class T> inline constexpr bool is_simd_v = is_simd<T>::value;
42
+
43
+ template <class T> struct is_simd_mask;
44
+ template <class T> inline constexpr bool is_simd_mask_v = is_simd_mask<T>::value;
45
+
46
+ template <class T> struct is_simd_flag_type;
47
+ template <class T> inline constexpr bool is_simd_flag_type_v = is_simd_flag_type<T>::value;
48
+
49
+ template <class T, size_t N> struct abi_for_size { using type = see below; };
50
+ template <class T, size_t N> using abi_for_size_t = typename abi_for_size<T, N>::type;
51
+
52
+ template <class T, class Abi = simd_abi::compatible<T>> struct simd_size;
53
+ template <class T, class Abi = simd_abi::compatible<T>>
54
+ inline constexpr size_t simd_size_v = simd_size<T, Abi>::value;
55
+
56
+ template <class T, class U = typename T::value_type> struct memory_alignment;
57
+ template <class T, class U = typename T::value_type>
58
+ inline constexpr size_t memory_alignment_v = memory_alignment<T, U>::value;
59
+
60
+ // class template simd [simd.class]
61
+ template <class T, class Abi = simd_abi::compatible<T>> class simd;
62
+ template <class T> using native_simd = simd<T, simd_abi::native<T>>;
63
+ template <class T, int N> using fixed_size_simd = simd<T, simd_abi::fixed_size<N>>;
64
+
65
+ // class template simd_mask [simd.mask.class]
66
+ template <class T, class Abi = simd_abi::compatible<T>> class simd_mask;
67
+ template <class T> using native_simd_mask = simd_mask<T, simd_abi::native<T>>;
68
+ template <class T, int N> using fixed_size_simd_mask = simd_mask<T, simd_abi::fixed_size<N>>;
69
+
70
+ // casts [simd.casts]
71
+ template <class T, class U, class Abi> see below simd_cast(const simd<U, Abi>&);
72
+ template <class T, class U, class Abi> see below static_simd_cast(const simd<U, Abi>&);
73
+
74
+ template <class T, class Abi>
75
+ fixed_size_simd<T, simd_size_v<T, Abi>> to_fixed_size(const simd<T, Abi>&) noexcept;
76
+ template <class T, class Abi>
77
+ fixed_size_simd_mask<T, simd_size_v<T, Abi>> to_fixed_size(const simd_mask<T, Abi>&) noexcept;
78
+ template <class T, size_t N> native_simd<T> to_native(const fixed_size_simd<T, N>&) noexcept;
79
+ template <class T, size_t N>
80
+ native_simd_mask<T> to_native(const fixed_size_simd_mask<T, N>> &) noexcept;
81
+ template <class T, size_t N> simd<T> to_compatible(const fixed_size_simd<T, N>&) noexcept;
82
+ template <class T, size_t N> simd_mask<T> to_compatible(const fixed_size_simd_mask<T, N>&) noexcept;
83
+
84
+ template <size_t... Sizes, class T, class Abi>
85
+ tuple<simd<T, abi_for_size_t<Sizes>>...> split(const simd<T, Abi>&);
86
+ template <size_t... Sizes, class T, class Abi>
87
+ tuple<simd_mask<T, abi_for_size_t<Sizes>>...> split(const simd_mask<T, Abi>&);
88
+ template <class V, class Abi>
89
+ array<V, simd_size_v<typename V::value_type, Abi> / V::size()> split(
90
+ const simd<typename V::value_type, Abi>&);
91
+ template <class V, class Abi>
92
+ array<V, simd_size_v<typename V::value_type, Abi> / V::size()> split(
93
+ const simd_mask<typename V::value_type, Abi>&);
94
+
95
+ template <class T, class... Abis>
96
+ simd<T, abi_for_size_t<T, (simd_size_v<T, Abis> + ...)>> concat(const simd<T, Abis>&...);
97
+ template <class T, class... Abis>
98
+ simd_mask<T, abi_for_size_t<T, (simd_size_v<T, Abis> + ...)>> concat(const simd_mask<T, Abis>&...);
99
+
100
+ // reductions [simd.mask.reductions]
101
+ template <class T, class Abi> bool all_of(const simd_mask<T, Abi>&) noexcept;
102
+ template <class T, class Abi> bool any_of(const simd_mask<T, Abi>&) noexcept;
103
+ template <class T, class Abi> bool none_of(const simd_mask<T, Abi>&) noexcept;
104
+ template <class T, class Abi> bool some_of(const simd_mask<T, Abi>&) noexcept;
105
+ template <class T, class Abi> int popcount(const simd_mask<T, Abi>&) noexcept;
106
+ template <class T, class Abi> int find_first_set(const simd_mask<T, Abi>&);
107
+ template <class T, class Abi> int find_last_set(const simd_mask<T, Abi>&);
108
+
109
+ bool all_of(see below) noexcept;
110
+ bool any_of(see below) noexcept;
111
+ bool none_of(see below) noexcept;
112
+ bool some_of(see below) noexcept;
113
+ int popcount(see below) noexcept;
114
+ int find_first_set(see below) noexcept;
115
+ int find_last_set(see below) noexcept;
116
+
117
+ // masked assignment [simd.whereexpr]
118
+ template <class M, class T> class const_where_expression;
119
+ template <class M, class T> class where_expression;
120
+
121
+ // masked assignment [simd.mask.where]
122
+ template <class T> struct nodeduce { using type = T; }; // exposition only
123
+
124
+ template <class T> using nodeduce_t = typename nodeduce<T>::type; // exposition only
125
+
126
+ template <class T, class Abi>
127
+ where_expression<simd_mask<T, Abi>, simd<T, Abi>>
128
+ where(const typename simd<T, Abi>::mask_type&, simd<T, Abi>&) noexcept;
129
+
130
+ template <class T, class Abi>
131
+ const_where_expression<simd_mask<T, Abi>, const simd<T, Abi>>
132
+ where(const typename simd<T, Abi>::mask_type&, const simd<T, Abi>&) noexcept;
133
+
134
+ template <class T, class Abi>
135
+ where_expression<simd_mask<T, Abi>, simd_mask<T, Abi>>
136
+ where(const nodeduce_t<simd_mask<T, Abi>>&, simd_mask<T, Abi>&) noexcept;
137
+
138
+ template <class T, class Abi>
139
+ const_where_expression<simd_mask<T, Abi>, const simd_mask<T, Abi>>
140
+ where(const nodeduce_t<simd_mask<T, Abi>>&, const simd_mask<T, Abi>&) noexcept;
141
+
142
+ template <class T> where_expression<bool, T> where(see below k, T& d) noexcept;
143
+
144
+ template <class T>
145
+ const_where_expression<bool, const T> where(see below k, const T& d) noexcept;
146
+
147
+ // reductions [simd.reductions]
148
+ template <class T, class Abi, class BinaryOperation = std::plus<>>
149
+ T reduce(const simd<T, Abi>&, BinaryOperation = BinaryOperation());
150
+
151
+ template <class M, class V, class BinaryOperation>
152
+ typename V::value_type reduce(const const_where_expression<M, V>& x,
153
+ typename V::value_type neutral_element, BinaryOperation binary_op);
154
+
155
+ template <class M, class V>
156
+ typename V::value_type reduce(const const_where_expression<M, V>& x, plus<> binary_op = plus<>());
157
+
158
+ template <class M, class V>
159
+ typename V::value_type reduce(const const_where_expression<M, V>& x, multiplies<> binary_op);
160
+
161
+ template <class M, class V>
162
+ typename V::value_type reduce(const const_where_expression<M, V>& x, bit_and<> binary_op);
163
+
164
+ template <class M, class V>
165
+ typename V::value_type reduce(const const_where_expression<M, V>& x, bit_or<> binary_op);
166
+
167
+ template <class M, class V>
168
+ typename V::value_type reduce(const const_where_expression<M, V>& x, bit_xor<> binary_op);
169
+
170
+ template <class T, class Abi> T hmin(const simd<T, Abi>&);
171
+ template <class M, class V> T hmin(const const_where_expression<M, V>&);
172
+ template <class T, class Abi> T hmax(const simd<T, Abi>&);
173
+ template <class M, class V> T hmax(const const_where_expression<M, V>&);
174
+
175
+ // algorithms [simd.alg]
176
+ template <class T, class Abi> simd<T, Abi> min(const simd<T, Abi>&, const simd<T, Abi>&) noexcept;
177
+
178
+ template <class T, class Abi> simd<T, Abi> max(const simd<T, Abi>&, const simd<T, Abi>&) noexcept;
179
+
180
+ template <class T, class Abi>
181
+ std::pair<simd<T, Abi>, simd<T, Abi>> minmax(const simd<T, Abi>&, const simd<T, Abi>&) noexcept;
182
+
183
+ template <class T, class Abi>
184
+ simd<T, Abi> clamp(const simd<T, Abi>& v, const simd<T, Abi>& lo, const simd<T, Abi>& hi);
185
+
186
+ // [simd.whereexpr]
187
+ template <class M, class T>
188
+ class const_where_expression {
189
+ const M& mask; // exposition only
190
+ T& data; // exposition only
191
+ public:
192
+ const_where_expression(const const_where_expression&) = delete;
193
+ const_where_expression& operator=(const const_where_expression&) = delete;
194
+ remove_const_t<T> operator-() const &&;
195
+ template <class U, class Flags> void copy_to(U* mem, Flags f) const &&;
196
+ };
197
+
198
+ template <class M, class T>
199
+ class where_expression : public const_where_expression<M, T> {
200
+ public:
201
+ where_expression(const where_expression&) = delete;
202
+ where_expression& operator=(const where_expression&) = delete;
203
+ template <class U> void operator=(U&& x);
204
+ template <class U> void operator+=(U&& x);
205
+ template <class U> void operator-=(U&& x);
206
+ template <class U> void operator*=(U&& x);
207
+ template <class U> void operator/=(U&& x);
208
+ template <class U> void operator%=(U&& x);
209
+ template <class U> void operator&=(U&& x);
210
+ template <class U> void operator|=(U&& x);
211
+ template <class U> void operator^=(U&& x);
212
+ template <class U> void operator<<=(U&& x);
213
+ template <class U> void operator>>=(U&& x);
214
+ void operator++();
215
+ void operator++(int);
216
+ void operator--();
217
+ void operator--(int);
218
+ template <class U, class Flags> void copy_from(const U* mem, Flags);
219
+ };
220
+
221
+ // [simd.class]
222
+ template <class T, class Abi> class simd {
223
+ public:
224
+ using value_type = T;
225
+ using reference = see below;
226
+ using mask_type = simd_mask<T, Abi>;
227
+
228
+ using abi_type = Abi;
229
+ static constexpr size_t size() noexcept;
230
+ simd() = default;
231
+
232
+ // implicit type conversion constructor
233
+ template <class U> simd(const simd<U, simd_abi::fixed_size<size()>>&);
234
+
235
+ // implicit broadcast constructor (see below for constraints)
236
+ template <class U> simd(U&& value);
237
+
238
+ // generator constructor (see below for constraints)
239
+ template <class G> explicit simd(G&& gen);
240
+
241
+ // load constructor
242
+ template <class U, class Flags> simd(const U* mem, Flags f);
243
+
244
+ // loads [simd.load]
245
+ template <class U, class Flags> void copy_from(const U* mem, Flags f);
246
+
247
+ // stores [simd.store]
248
+ template <class U, class Flags> void copy_to(U* mem, Flags f) const;
249
+
250
+ // scalar access [simd.subscr]
251
+ reference operator[](size_t);
252
+ value_type operator[](size_t) const;
253
+
254
+ // unary operators [simd.unary]
255
+ simd& operator++();
256
+ simd operator++(int);
257
+ simd& operator--();
258
+ simd operator--(int);
259
+ mask_type operator!() const;
260
+ simd operator~() const; // see below
261
+ simd operator+() const;
262
+ simd operator-() const;
263
+
264
+ // binary operators [simd.binary]
265
+ friend simd operator+ (const simd&, const simd&);
266
+ friend simd operator- (const simd&, const simd&);
267
+ friend simd operator* (const simd&, const simd&);
268
+ friend simd operator/ (const simd&, const simd&);
269
+ friend simd operator% (const simd&, const simd&);
270
+ friend simd operator& (const simd&, const simd&);
271
+ friend simd operator| (const simd&, const simd&);
272
+ friend simd operator^ (const simd&, const simd&);
273
+ friend simd operator<<(const simd&, const simd&);
274
+ friend simd operator>>(const simd&, const simd&);
275
+ friend simd operator<<(const simd&, int);
276
+ friend simd operator>>(const simd&, int);
277
+
278
+ // compound assignment [simd.cassign]
279
+ friend simd& operator+= (simd&, const simd&);
280
+ friend simd& operator-= (simd&, const simd&);
281
+ friend simd& operator*= (simd&, const simd&);
282
+ friend simd& operator/= (simd&, const simd&);
283
+ friend simd& operator%= (simd&, const simd&);
284
+
285
+ friend simd& operator&= (simd&, const simd&);
286
+ friend simd& operator|= (simd&, const simd&);
287
+ friend simd& operator^= (simd&, const simd&);
288
+ friend simd& operator<<=(simd&, const simd&);
289
+ friend simd& operator>>=(simd&, const simd&);
290
+ friend simd& operator<<=(simd&, int);
291
+ friend simd& operator>>=(simd&, int);
292
+
293
+ // compares [simd.comparison]
294
+ friend mask_type operator==(const simd&, const simd&);
295
+ friend mask_type operator!=(const simd&, const simd&);
296
+ friend mask_type operator>=(const simd&, const simd&);
297
+ friend mask_type operator<=(const simd&, const simd&);
298
+ friend mask_type operator> (const simd&, const simd&);
299
+ friend mask_type operator< (const simd&, const simd&);
300
+ };
301
+
302
+ // [simd.math]
303
+ template <class Abi> using scharv = simd<signed char, Abi>; // exposition only
304
+ template <class Abi> using shortv = simd<short, Abi>; // exposition only
305
+ template <class Abi> using intv = simd<int, Abi>; // exposition only
306
+ template <class Abi> using longv = simd<long int, Abi>; // exposition only
307
+ template <class Abi> using llongv = simd<long long int, Abi>; // exposition only
308
+ template <class Abi> using floatv = simd<float, Abi>; // exposition only
309
+ template <class Abi> using doublev = simd<double, Abi>; // exposition only
310
+ template <class Abi> using ldoublev = simd<long double, Abi>; // exposition only
311
+ template <class T, class V> using samesize = fixed_size_simd<T, V::size()>; // exposition only
312
+
313
+ template <class Abi> floatv<Abi> acos(floatv<Abi> x);
314
+ template <class Abi> doublev<Abi> acos(doublev<Abi> x);
315
+ template <class Abi> ldoublev<Abi> acos(ldoublev<Abi> x);
316
+
317
+ template <class Abi> floatv<Abi> asin(floatv<Abi> x);
318
+ template <class Abi> doublev<Abi> asin(doublev<Abi> x);
319
+ template <class Abi> ldoublev<Abi> asin(ldoublev<Abi> x);
320
+
321
+ template <class Abi> floatv<Abi> atan(floatv<Abi> x);
322
+ template <class Abi> doublev<Abi> atan(doublev<Abi> x);
323
+ template <class Abi> ldoublev<Abi> atan(ldoublev<Abi> x);
324
+
325
+ template <class Abi> floatv<Abi> atan2(floatv<Abi> y, floatv<Abi> x);
326
+ template <class Abi> doublev<Abi> atan2(doublev<Abi> y, doublev<Abi> x);
327
+ template <class Abi> ldoublev<Abi> atan2(ldoublev<Abi> y, ldoublev<Abi> x);
328
+
329
+ template <class Abi> floatv<Abi> cos(floatv<Abi> x);
330
+ template <class Abi> doublev<Abi> cos(doublev<Abi> x);
331
+ template <class Abi> ldoublev<Abi> cos(ldoublev<Abi> x);
332
+
333
+ template <class Abi> floatv<Abi> sin(floatv<Abi> x);
334
+ template <class Abi> doublev<Abi> sin(doublev<Abi> x);
335
+ template <class Abi> ldoublev<Abi> sin(ldoublev<Abi> x);
336
+
337
+ template <class Abi> floatv<Abi> tan(floatv<Abi> x);
338
+ template <class Abi> doublev<Abi> tan(doublev<Abi> x);
339
+ template <class Abi> ldoublev<Abi> tan(ldoublev<Abi> x);
340
+
341
+ template <class Abi> floatv<Abi> acosh(floatv<Abi> x);
342
+ template <class Abi> doublev<Abi> acosh(doublev<Abi> x);
343
+ template <class Abi> ldoublev<Abi> acosh(ldoublev<Abi> x);
344
+
345
+ template <class Abi> floatv<Abi> asinh(floatv<Abi> x);
346
+ template <class Abi> doublev<Abi> asinh(doublev<Abi> x);
347
+ template <class Abi> ldoublev<Abi> asinh(ldoublev<Abi> x);
348
+
349
+ template <class Abi> floatv<Abi> atanh(floatv<Abi> x);
350
+ template <class Abi> doublev<Abi> atanh(doublev<Abi> x);
351
+ template <class Abi> ldoublev<Abi> atanh(ldoublev<Abi> x);
352
+
353
+ template <class Abi> floatv<Abi> cosh(floatv<Abi> x);
354
+ template <class Abi> doublev<Abi> cosh(doublev<Abi> x);
355
+ template <class Abi> ldoublev<Abi> cosh(ldoublev<Abi> x);
356
+
357
+ template <class Abi> floatv<Abi> sinh(floatv<Abi> x);
358
+ template <class Abi> doublev<Abi> sinh(doublev<Abi> x);
359
+ template <class Abi> ldoublev<Abi> sinh(ldoublev<Abi> x);
360
+
361
+ template <class Abi> floatv<Abi> tanh(floatv<Abi> x);
362
+ template <class Abi> doublev<Abi> tanh(doublev<Abi> x);
363
+ template <class Abi> ldoublev<Abi> tanh(ldoublev<Abi> x);
364
+
365
+ template <class Abi> floatv<Abi> exp(floatv<Abi> x);
366
+ template <class Abi> doublev<Abi> exp(doublev<Abi> x);
367
+ template <class Abi> ldoublev<Abi> exp(ldoublev<Abi> x);
368
+
369
+ template <class Abi> floatv<Abi> exp2(floatv<Abi> x);
370
+ template <class Abi> doublev<Abi> exp2(doublev<Abi> x);
371
+ template <class Abi> ldoublev<Abi> exp2(ldoublev<Abi> x);
372
+
373
+ template <class Abi> floatv<Abi> expm1(floatv<Abi> x);
374
+ template <class Abi> doublev<Abi> expm1(doublev<Abi> x);
375
+ template <class Abi> ldoublev<Abi> expm1(ldoublev<Abi> x);
376
+
377
+ template <class Abi> floatv<Abi> frexp(floatv<Abi> value, samesize<int, floatv<Abi>>* exp);
378
+ template <class Abi> doublev<Abi> frexp(doublev<Abi> value, samesize<int, doublev<Abi>>* exp);
379
+ template <class Abi> ldoublev<Abi> frexp(ldoublev<Abi> value, samesize<int, ldoublev<Abi>>* exp);
380
+
381
+ template <class Abi> samesize<int, floatv<Abi>> ilogb(floatv<Abi> x);
382
+ template <class Abi> samesize<int, doublev<Abi>> ilogb(doublev<Abi> x);
383
+ template <class Abi> samesize<int, ldoublev<Abi>> ilogb(ldoublev<Abi> x);
384
+
385
+ template <class Abi> floatv<Abi> ldexp(floatv<Abi> x, samesize<int, floatv<Abi>> exp);
386
+ template <class Abi> doublev<Abi> ldexp(doublev<Abi> x, samesize<int, doublev<Abi>> exp);
387
+ template <class Abi> ldoublev<Abi> ldexp(ldoublev<Abi> x, samesize<int, ldoublev<Abi>> exp);
388
+
389
+ template <class Abi> floatv<Abi> log(floatv<Abi> x);
390
+ template <class Abi> doublev<Abi> log(doublev<Abi> x);
391
+ template <class Abi> ldoublev<Abi> log(ldoublev<Abi> x);
392
+
393
+ template <class Abi> floatv<Abi> log10(floatv<Abi> x);
394
+ template <class Abi> doublev<Abi> log10(doublev<Abi> x);
395
+ template <class Abi> ldoublev<Abi> log10(ldoublev<Abi> x);
396
+
397
+ template <class Abi> floatv<Abi> log1p(floatv<Abi> x);
398
+ template <class Abi> doublev<Abi> log1p(doublev<Abi> x);
399
+ template <class Abi> ldoublev<Abi> log1p(ldoublev<Abi> x);
400
+
401
+ template <class Abi> floatv<Abi> log2(floatv<Abi> x);
402
+ template <class Abi> doublev<Abi> log2(doublev<Abi> x);
403
+ template <class Abi> ldoublev<Abi> log2(ldoublev<Abi> x);
404
+
405
+ template <class Abi> floatv<Abi> logb(floatv<Abi> x);
406
+ template <class Abi> doublev<Abi> logb(doublev<Abi> x);
407
+ template <class Abi> ldoublev<Abi> logb(ldoublev<Abi> x);
408
+
409
+ template <class Abi> floatv<Abi> modf(floatv<Abi> value, floatv<Abi>* iptr);
410
+ template <class Abi> doublev<Abi> modf(doublev<Abi> value, doublev<Abi>* iptr);
411
+ template <class Abi> ldoublev<Abi> modf(ldoublev<Abi> value, ldoublev<Abi>* iptr);
412
+
413
+ template <class Abi> floatv<Abi> scalbn(floatv<Abi> x, samesize<int, floatv<Abi>> n);
414
+ template <class Abi> doublev<Abi> scalbn(doublev<Abi> x, samesize<int, doublev<Abi>> n);
415
+ template <class Abi> ldoublev<Abi> scalbn(ldoublev<Abi> x, samesize<int, ldoublev<Abi>> n);
416
+ template <class Abi> floatv<Abi> scalbln(floatv<Abi> x, samesize<long int, floatv<Abi>> n);
417
+ template <class Abi> doublev<Abi> scalbln(doublev<Abi> x, samesize<long int, doublev<Abi>> n);
418
+ template <class Abi> ldoublev<Abi> scalbln(ldoublev<Abi> x, samesize<long int, ldoublev<Abi>> n);
419
+
420
+ template <class Abi> floatv<Abi> cbrt(floatv<Abi> x);
421
+ template <class Abi> doublev<Abi> cbrt(doublev<Abi> x);
422
+ template <class Abi> ldoublev<Abi> cbrt(ldoublev<Abi> x);
423
+
424
+ template <class Abi> scharv<Abi> abs(scharv<Abi> j);
425
+ template <class Abi> shortv<Abi> abs(shortv<Abi> j);
426
+ template <class Abi> intv<Abi> abs(intv<Abi> j);
427
+ template <class Abi> longv<Abi> abs(longv<Abi> j);
428
+ template <class Abi> llongv<Abi> abs(llongv<Abi> j);
429
+ template <class Abi> floatv<Abi> abs(floatv<Abi> j);
430
+ template <class Abi> doublev<Abi> abs(doublev<Abi> j);
431
+ template <class Abi> ldoublev<Abi> abs(ldoublev<Abi> j);
432
+
433
+ template <class Abi> floatv<Abi> hypot(floatv<Abi> x, floatv<Abi> y);
434
+ template <class Abi> doublev<Abi> hypot(doublev<Abi> x, doublev<Abi> y);
435
+ template <class Abi> ldoublev<Abi> hypot(doublev<Abi> x, doublev<Abi> y);
436
+ template <class Abi> floatv<Abi> hypot(floatv<Abi> x, floatv<Abi> y, floatv<Abi> z);
437
+ template <class Abi> doublev<Abi> hypot(doublev<Abi> x, doublev<Abi> y, doublev<Abi> z);
438
+ template <class Abi> ldoublev<Abi> hypot(ldoublev<Abi> x, ldoublev<Abi> y, ldoublev<Abi> z);
439
+
440
+ template <class Abi> floatv<Abi> pow(floatv<Abi> x, floatv<Abi> y);
441
+ template <class Abi> doublev<Abi> pow(doublev<Abi> x, doublev<Abi> y);
442
+ template <class Abi> ldoublev<Abi> pow(ldoublev<Abi> x, ldoublev<Abi> y);
443
+
444
+ template <class Abi> floatv<Abi> sqrt(floatv<Abi> x);
445
+ template <class Abi> doublev<Abi> sqrt(doublev<Abi> x);
446
+ template <class Abi> ldoublev<Abi> sqrt(ldoublev<Abi> x);
447
+
448
+ template <class Abi> floatv<Abi> erf(floatv<Abi> x);
449
+ template <class Abi> doublev<Abi> erf(doublev<Abi> x);
450
+ template <class Abi> ldoublev<Abi> erf(ldoublev<Abi> x);
451
+ template <class Abi> floatv<Abi> erfc(floatv<Abi> x);
452
+ template <class Abi> doublev<Abi> erfc(doublev<Abi> x);
453
+ template <class Abi> ldoublev<Abi> erfc(ldoublev<Abi> x);
454
+
455
+ template <class Abi> floatv<Abi> lgamma(floatv<Abi> x);
456
+ template <class Abi> doublev<Abi> lgamma(doublev<Abi> x);
457
+ template <class Abi> ldoublev<Abi> lgamma(ldoublev<Abi> x);
458
+
459
+ template <class Abi> floatv<Abi> tgamma(floatv<Abi> x);
460
+ template <class Abi> doublev<Abi> tgamma(doublev<Abi> x);
461
+ template <class Abi> ldoublev<Abi> tgamma(ldoublev<Abi> x);
462
+
463
+ template <class Abi> floatv<Abi> ceil(floatv<Abi> x);
464
+ template <class Abi> doublev<Abi> ceil(doublev<Abi> x);
465
+ template <class Abi> ldoublev<Abi> ceil(ldoublev<Abi> x);
466
+
467
+ template <class Abi> floatv<Abi> floor(floatv<Abi> x);
468
+ template <class Abi> doublev<Abi> floor(doublev<Abi> x);
469
+ template <class Abi> ldoublev<Abi> floor(ldoublev<Abi> x);
470
+
471
+ template <class Abi> floatv<Abi> nearbyint(floatv<Abi> x);
472
+ template <class Abi> doublev<Abi> nearbyint(doublev<Abi> x);
473
+ template <class Abi> ldoublev<Abi> nearbyint(ldoublev<Abi> x);
474
+
475
+ template <class Abi> floatv<Abi> rint(floatv<Abi> x);
476
+ template <class Abi> doublev<Abi> rint(doublev<Abi> x);
477
+ template <class Abi> ldoublev<Abi> rint(ldoublev<Abi> x);
478
+
479
+ template <class Abi> samesize<long int, floatv<Abi>> lrint(floatv<Abi> x);
480
+ template <class Abi> samesize<long int, doublev<Abi>> lrint(doublev<Abi> x);
481
+ template <class Abi> samesize<long int, ldoublev<Abi>> lrint(ldoublev<Abi> x);
482
+ template <class Abi> samesize<long long int, floatv<Abi>> llrint(floatv<Abi> x);
483
+ template <class Abi> samesize<long long int, doublev<Abi>> llrint(doublev<Abi> x);
484
+ template <class Abi> samesize<long long int, ldoublev<Abi>> llrint(ldoublev<Abi> x);
485
+
486
+ template <class Abi> floatv<Abi> round(floatv<Abi> x);
487
+ template <class Abi> doublev<Abi> round(doublev<Abi> x);
488
+ template <class Abi> ldoublev<Abi> round(ldoublev<Abi> x);
489
+ template <class Abi> samesize<long int, floatv<Abi>> lround(floatv<Abi> x);
490
+ template <class Abi> samesize<long int, doublev<Abi>> lround(doublev<Abi> x);
491
+ template <class Abi> samesize<long int, ldoublev<Abi>> lround(ldoublev<Abi> x);
492
+ template <class Abi> samesize<long long int, floatv<Abi>> llround(floatv<Abi> x);
493
+ template <class Abi> samesize<long long int, doublev<Abi>> llround(doublev<Abi> x);
494
+ template <class Abi> samesize<long long int, ldoublev<Abi>> llround(ldoublev<Abi> x);
495
+
496
+ template <class Abi> floatv<Abi> trunc(floatv<Abi> x);
497
+ template <class Abi> doublev<Abi> trunc(doublev<Abi> x);
498
+ template <class Abi> ldoublev<Abi> trunc(ldoublev<Abi> x);
499
+
500
+ template <class Abi> floatv<Abi> fmod(floatv<Abi> x, floatv<Abi> y);
501
+ template <class Abi> doublev<Abi> fmod(doublev<Abi> x, doublev<Abi> y);
502
+ template <class Abi> ldoublev<Abi> fmod(ldoublev<Abi> x, ldoublev<Abi> y);
503
+
504
+ template <class Abi> floatv<Abi> remainder(floatv<Abi> x, floatv<Abi> y);
505
+ template <class Abi> doublev<Abi> remainder(doublev<Abi> x, doublev<Abi> y);
506
+ template <class Abi> ldoublev<Abi> remainder(ldoublev<Abi> x, ldoublev<Abi> y);
507
+
508
+ template <class Abi> floatv<Abi> remquo(floatv<Abi> x, floatv<Abi> y, samesize<int, floatv<Abi>>* quo);
509
+ template <class Abi> doublev<Abi> remquo(doublev<Abi> x, doublev<Abi> y, samesize<int, doublev<Abi>>* quo);
510
+ template <class Abi> ldoublev<Abi> remquo(ldoublev<Abi> x, ldoublev<Abi> y, samesize<int, ldoublev<Abi>>* quo);
511
+
512
+ template <class Abi> floatv<Abi> copysign(floatv<Abi> x, floatv<Abi> y);
513
+ template <class Abi> doublev<Abi> copysign(doublev<Abi> x, doublev<Abi> y);
514
+ template <class Abi> ldoublev<Abi> copysign(ldoublev<Abi> x, ldoublev<Abi> y);
515
+
516
+ template <class Abi> doublev<Abi> nan(const char* tagp);
517
+ template <class Abi> floatv<Abi> nanf(const char* tagp);
518
+ template <class Abi> ldoublev<Abi> nanl(const char* tagp);
519
+
520
+ template <class Abi> floatv<Abi> nextafter(floatv<Abi> x, floatv<Abi> y);
521
+ template <class Abi> doublev<Abi> nextafter(doublev<Abi> x, doublev<Abi> y);
522
+ template <class Abi> ldoublev<Abi> nextafter(ldoublev<Abi> x, ldoublev<Abi> y);
523
+
524
+ template <class Abi> floatv<Abi> nexttoward(floatv<Abi> x, ldoublev<Abi> y);
525
+ template <class Abi> doublev<Abi> nexttoward(doublev<Abi> x, ldoublev<Abi> y);
526
+ template <class Abi> ldoublev<Abi> nexttoward(ldoublev<Abi> x, ldoublev<Abi> y);
527
+
528
+ template <class Abi> floatv<Abi> fdim(floatv<Abi> x, floatv<Abi> y);
529
+ template <class Abi> doublev<Abi> fdim(doublev<Abi> x, doublev<Abi> y);
530
+ template <class Abi> ldoublev<Abi> fdim(ldoublev<Abi> x, ldoublev<Abi> y);
531
+
532
+ template <class Abi> floatv<Abi> fmax(floatv<Abi> x, floatv<Abi> y);
533
+ template <class Abi> doublev<Abi> fmax(doublev<Abi> x, doublev<Abi> y);
534
+ template <class Abi> ldoublev<Abi> fmax(ldoublev<Abi> x, ldoublev<Abi> y);
535
+
536
+ template <class Abi> floatv<Abi> fmin(floatv<Abi> x, floatv<Abi> y);
537
+ template <class Abi> doublev<Abi> fmin(doublev<Abi> x, doublev<Abi> y);
538
+ template <class Abi> ldoublev<Abi> fmin(ldoublev<Abi> x, ldoublev<Abi> y);
539
+
540
+ template <class Abi> floatv<Abi> fma(floatv<Abi> x, floatv<Abi> y, floatv<Abi> z);
541
+ template <class Abi> doublev<Abi> fma(doublev<Abi> x, doublev<Abi> y, doublev<Abi> z);
542
+ template <class Abi> ldoublev<Abi> fma(ldoublev<Abi> x, ldoublev<Abi> y, ldoublev<Abi> z);
543
+
544
+ template <class Abi> samesize<int, floatv<Abi>> fpclassify(floatv<Abi> x);
545
+ template <class Abi> samesize<int, doublev<Abi>> fpclassify(doublev<Abi> x);
546
+ template <class Abi> samesize<int, ldoublev<Abi>> fpclassify(ldoublev<Abi> x);
547
+
548
+ template <class Abi> simd_mask<float, Abi> isfinite(floatv<Abi> x);
549
+ template <class Abi> simd_mask<double, Abi> isfinite(doublev<Abi> x);
550
+ template <class Abi> simd_mask<long double, Abi> isfinite(ldoublev<Abi> x);
551
+
552
+ template <class Abi> simd_mask<float, Abi> isinf(floatv<Abi> x);
553
+ template <class Abi> simd_mask<double, Abi> isinf(doublev<Abi> x);
554
+ template <class Abi> simd_mask<long double, Abi> isinf(ldoublev<Abi> x);
555
+
556
+ template <class Abi> simd_mask<float, Abi> isnan(floatv<Abi> x);
557
+ template <class Abi> simd_mask<double, Abi> isnan(doublev<Abi> x);
558
+ template <class Abi> simd_mask<long double, Abi> isnan(ldoublev<Abi> x);
559
+
560
+ template <class Abi> simd_mask<float, Abi> isnormal(floatv<Abi> x);
561
+ template <class Abi> simd_mask<double, Abi> isnormal(doublev<Abi> x);
562
+ template <class Abi> simd_mask<long double, Abi> isnormal(ldoublev<Abi> x);
563
+
564
+ template <class Abi> simd_mask<float, Abi> signbit(floatv<Abi> x);
565
+ template <class Abi> simd_mask<double, Abi> signbit(doublev<Abi> x);
566
+ template <class Abi> simd_mask<long double, Abi> signbit(ldoublev<Abi> x);
567
+
568
+ template <class Abi> simd_mask<float, Abi> isgreater(floatv<Abi> x, floatv<Abi> y);
569
+ template <class Abi> simd_mask<double, Abi> isgreater(doublev<Abi> x, doublev<Abi> y);
570
+ template <class Abi> simd_mask<long double, Abi> isgreater(ldoublev<Abi> x, ldoublev<Abi> y);
571
+
572
+ template <class Abi> simd_mask<float, Abi> isgreaterequal(floatv<Abi> x, floatv<Abi> y);
573
+ template <class Abi> simd_mask<double, Abi> isgreaterequal(doublev<Abi> x, doublev<Abi> y);
574
+ template <class Abi> simd_mask<long double, Abi> isgreaterequal(ldoublev<Abi> x, ldoublev<Abi> y);
575
+
576
+ template <class Abi> simd_mask<float, Abi> isless(floatv<Abi> x, floatv<Abi> y);
577
+ template <class Abi> simd_mask<double, Abi> isless(doublev<Abi> x, doublev<Abi> y);
578
+ template <class Abi> simd_mask<long double, Abi> isless(ldoublev<Abi> x, ldoublev<Abi> y);
579
+
580
+ template <class Abi> simd_mask<float, Abi> islessequal(floatv<Abi> x, floatv<Abi> y);
581
+ template <class Abi> simd_mask<double, Abi> islessequal(doublev<Abi> x, doublev<Abi> y);
582
+ template <class Abi> simd_mask<long double, Abi> islessequal(ldoublev<Abi> x, ldoublev<Abi> y);
583
+
584
+ template <class Abi> simd_mask<float, Abi> islessgreater(floatv<Abi> x, floatv<Abi> y);
585
+ template <class Abi> simd_mask<double, Abi> islessgreater(doublev<Abi> x, doublev<Abi> y);
586
+ template <class Abi> simd_mask<long double, Abi> islessgreater(ldoublev<Abi> x, ldoublev<Abi> y);
587
+
588
+ template <class Abi> simd_mask<float, Abi> isunordered(floatv<Abi> x, floatv<Abi> y);
589
+ template <class Abi> simd_mask<double, Abi> isunordered(doublev<Abi> x, doublev<Abi> y);
590
+ template <class Abi> simd_mask<long double, Abi> isunordered(ldoublev<Abi> x, ldoublev<Abi> y);
591
+
592
+ template <class V> struct simd_div_t { V quot, rem; };
593
+ template <class Abi> simd_div_t<scharv<Abi>> div(scharv<Abi> numer, scharv<Abi> denom);
594
+ template <class Abi> simd_div_t<shortv<Abi>> div(shortv<Abi> numer, shortv<Abi> denom);
595
+ template <class Abi> simd_div_t<intv<Abi>> div(intv<Abi> numer, intv<Abi> denom);
596
+ template <class Abi> simd_div_t<longv<Abi>> div(longv<Abi> numer, longv<Abi> denom);
597
+ template <class Abi> simd_div_t<llongv<Abi>> div(llongv<Abi> numer, llongv<Abi> denom);
598
+
599
+ // [simd.mask.class]
600
+ template <class T, class Abi>
601
+ class simd_mask {
602
+ public:
603
+ using value_type = bool;
604
+ using reference = see below;
605
+ using simd_type = simd<T, Abi>;
606
+ using abi_type = Abi;
607
+ static constexpr size_t size() noexcept;
608
+ simd_mask() = default;
609
+
610
+ // broadcast constructor
611
+ explicit simd_mask(value_type) noexcept;
612
+
613
+ // implicit type conversion constructor
614
+ template <class U> simd_mask(const simd_mask<U, simd_abi::fixed_size<size()>>&) noexcept;
615
+
616
+ // load constructor
617
+ template <class Flags> simd_mask(const value_type* mem, Flags);
618
+
619
+ // loads [simd.mask.copy]
620
+ template <class Flags> void copy_from(const value_type* mem, Flags);
621
+ template <class Flags> void copy_to(value_type* mem, Flags) const;
622
+
623
+ // scalar access [simd.mask.subscr]
624
+ reference operator[](size_t);
625
+ value_type operator[](size_t) const;
626
+
627
+ // unary operators [simd.mask.unary]
628
+ simd_mask operator!() const noexcept;
629
+
630
+ // simd_mask binary operators [simd.mask.binary]
631
+ friend simd_mask operator&&(const simd_mask&, const simd_mask&) noexcept;
632
+ friend simd_mask operator||(const simd_mask&, const simd_mask&) noexcept;
633
+ friend simd_mask operator& (const simd_mask&, const simd_mask&) noexcept;
634
+ friend simd_mask operator| (const simd_mask&, const simd_mask&) noexcept;
635
+ friend simd_mask operator^ (const simd_mask&, const simd_mask&) noexcept;
636
+
637
+ // simd_mask compound assignment [simd.mask.cassign]
638
+ friend simd_mask& operator&=(simd_mask&, const simd_mask&) noexcept;
639
+ friend simd_mask& operator|=(simd_mask&, const simd_mask&) noexcept;
640
+ friend simd_mask& operator^=(simd_mask&, const simd_mask&) noexcept;
641
+
642
+ // simd_mask compares [simd.mask.comparison]
643
+ friend simd_mask operator==(const simd_mask&, const simd_mask&) noexcept;
644
+ friend simd_mask operator!=(const simd_mask&, const simd_mask&) noexcept;
645
+ };
646
+
647
+ } // parallelism_v2
648
+ } // std::experimental
649
+
650
+ */
651
+
652
+ #include <experimental/__config>
653
+ #include <algorithm>
654
+ #include <array>
655
+ #include <cstddef>
656
+ #include <functional>
657
+
658
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
659
+ #pragma GCC system_header
660
+ #endif
661
+
662
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_SIMD
663
+
664
+ #if _LIBCUDACXX_STD_VER >= 17
665
+
666
+ enum class _StorageKind {
667
+ _Scalar,
668
+ _Array,
669
+ _VecExt,
670
+ };
671
+
672
+ template <_StorageKind __kind, int _Np>
673
+ struct __simd_abi {};
674
+
675
+ template <class _Tp, class _Abi>
676
+ class __simd_storage {};
677
+
678
+ template <class _Tp, int __num_element>
679
+ class __simd_storage<_Tp, __simd_abi<_StorageKind::_Array, __num_element>> {
680
+ std::array<_Tp, __num_element> __storage_;
681
+
682
+ template <class, class>
683
+ friend struct simd;
684
+
685
+ template <class, class>
686
+ friend struct simd_mask;
687
+
688
+ public:
689
+ _Tp __get(size_t __index) const noexcept { return __storage_[__index]; };
690
+ void __set(size_t __index, _Tp __val) noexcept {
691
+ __storage_[__index] = __val;
692
+ }
693
+ };
694
+
695
+ template <class _Tp>
696
+ class __simd_storage<_Tp, __simd_abi<_StorageKind::_Scalar, 1>> {
697
+ _Tp __storage_;
698
+
699
+ template <class, class>
700
+ friend struct simd;
701
+
702
+ template <class, class>
703
+ friend struct simd_mask;
704
+
705
+ public:
706
+ _Tp __get(size_t __index) const noexcept { return (&__storage_)[__index]; };
707
+ void __set(size_t __index, _Tp __val) noexcept {
708
+ (&__storage_)[__index] = __val;
709
+ }
710
+ };
711
+
712
+ #ifndef _LIBCUDACXX_HAS_NO_VECTOR_EXTENSION
713
+
714
+ constexpr size_t __floor_pow_of_2(size_t __val) {
715
+ return ((__val - 1) & __val) == 0 ? __val
716
+ : __floor_pow_of_2((__val - 1) & __val);
717
+ }
718
+
719
+ constexpr size_t __ceil_pow_of_2(size_t __val) {
720
+ return __val == 1 ? 1 : __floor_pow_of_2(__val - 1) << 1;
721
+ }
722
+
723
+ template <class _Tp, size_t __bytes>
724
+ struct __vec_ext_traits {
725
+ #if !defined(_LIBCUDACXX_COMPILER_CLANG)
726
+ typedef _Tp type __attribute__((vector_size(__ceil_pow_of_2(__bytes))));
727
+ #endif
728
+ };
729
+
730
+ #if defined(_LIBCUDACXX_COMPILER_CLANG)
731
+ #define _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, _NUM_ELEMENT) \
732
+ template <> \
733
+ struct __vec_ext_traits<_TYPE, sizeof(_TYPE) * _NUM_ELEMENT> { \
734
+ using type = \
735
+ _TYPE __attribute__((vector_size(sizeof(_TYPE) * _NUM_ELEMENT))); \
736
+ }
737
+
738
+ #define _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(_TYPE) \
739
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 1); \
740
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 2); \
741
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 3); \
742
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 4); \
743
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 5); \
744
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 6); \
745
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 7); \
746
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 8); \
747
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 9); \
748
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 10); \
749
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 11); \
750
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 12); \
751
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 13); \
752
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 14); \
753
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 15); \
754
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 16); \
755
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 17); \
756
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 18); \
757
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 19); \
758
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 20); \
759
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 21); \
760
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 22); \
761
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 23); \
762
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 24); \
763
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 25); \
764
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 26); \
765
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 27); \
766
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 28); \
767
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 29); \
768
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 30); \
769
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 31); \
770
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT(_TYPE, 32);
771
+
772
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(char);
773
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(char16_t);
774
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(char32_t);
775
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(wchar_t);
776
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(signed char);
777
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(signed short);
778
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(signed int);
779
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(signed long);
780
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(signed long long);
781
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(unsigned char);
782
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(unsigned short);
783
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(unsigned int);
784
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(unsigned long);
785
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(unsigned long long);
786
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(float);
787
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(double);
788
+ _LIBCUDACXX_SPECIALIZE_VEC_EXT_32(long double);
789
+
790
+ #undef _LIBCUDACXX_SPECIALIZE_VEC_EXT_32
791
+ #undef _LIBCUDACXX_SPECIALIZE_VEC_EXT
792
+ #endif
793
+
794
+ template <class _Tp, int __num_element>
795
+ class __simd_storage<_Tp, __simd_abi<_StorageKind::_VecExt, __num_element>> {
796
+ using _StorageType =
797
+ typename __vec_ext_traits<_Tp, sizeof(_Tp) * __num_element>::type;
798
+
799
+ _StorageType __storage_;
800
+
801
+ template <class, class>
802
+ friend struct simd;
803
+
804
+ template <class, class>
805
+ friend struct simd_mask;
806
+
807
+ public:
808
+ _Tp __get(size_t __index) const noexcept { return __storage_[__index]; };
809
+ void __set(size_t __index, _Tp __val) noexcept {
810
+ __storage_[__index] = __val;
811
+ }
812
+ };
813
+
814
+ #endif // _LIBCUDACXX_HAS_NO_VECTOR_EXTENSION
815
+
816
+ template <class _Vp, class _Tp, class _Abi>
817
+ class __simd_reference {
818
+ static_assert(std::is_same<_Vp, _Tp>::value, "");
819
+
820
+ template <class, class>
821
+ friend struct simd;
822
+
823
+ template <class, class>
824
+ friend struct simd_mask;
825
+
826
+ __simd_storage<_Tp, _Abi>* __ptr_;
827
+ size_t __index_;
828
+
829
+ __simd_reference(__simd_storage<_Tp, _Abi>* __ptr, size_t __index)
830
+ : __ptr_(__ptr), __index_(__index) {}
831
+
832
+ __simd_reference(const __simd_reference&) = default;
833
+
834
+ public:
835
+ __simd_reference() = delete;
836
+ __simd_reference& operator=(const __simd_reference&) = delete;
837
+
838
+ operator _Vp() const { return __ptr_->__get(__index_); }
839
+
840
+ __simd_reference operator=(_Vp __value) && {
841
+ __ptr_->__set(__index_, __value);
842
+ return *this;
843
+ }
844
+
845
+ __simd_reference operator++() && {
846
+ return std::move(*this) = __ptr_->__get(__index_) + 1;
847
+ }
848
+
849
+ _Vp operator++(int) && {
850
+ auto __val = __ptr_->__get(__index_);
851
+ __ptr_->__set(__index_, __val + 1);
852
+ return __val;
853
+ }
854
+
855
+ __simd_reference operator--() && {
856
+ return std::move(*this) = __ptr_->__get(__index_) - 1;
857
+ }
858
+
859
+ _Vp operator--(int) && {
860
+ auto __val = __ptr_->__get(__index_);
861
+ __ptr_->__set(__index_, __val - 1);
862
+ return __val;
863
+ }
864
+
865
+ __simd_reference operator+=(_Vp __value) && {
866
+ return std::move(*this) = __ptr_->__get(__index_) + __value;
867
+ }
868
+
869
+ __simd_reference operator-=(_Vp __value) && {
870
+ return std::move(*this) = __ptr_->__get(__index_) - __value;
871
+ }
872
+
873
+ __simd_reference operator*=(_Vp __value) && {
874
+ return std::move(*this) = __ptr_->__get(__index_) * __value;
875
+ }
876
+
877
+ __simd_reference operator/=(_Vp __value) && {
878
+ return std::move(*this) = __ptr_->__get(__index_) / __value;
879
+ }
880
+
881
+ __simd_reference operator%=(_Vp __value) && {
882
+ return std::move(*this) = __ptr_->__get(__index_) % __value;
883
+ }
884
+
885
+ __simd_reference operator>>=(_Vp __value) && {
886
+ return std::move(*this) = __ptr_->__get(__index_) >> __value;
887
+ }
888
+
889
+ __simd_reference operator<<=(_Vp __value) && {
890
+ return std::move(*this) = __ptr_->__get(__index_) << __value;
891
+ }
892
+
893
+ __simd_reference operator&=(_Vp __value) && {
894
+ return std::move(*this) = __ptr_->__get(__index_) & __value;
895
+ }
896
+
897
+ __simd_reference operator|=(_Vp __value) && {
898
+ return std::move(*this) = __ptr_->__get(__index_) | __value;
899
+ }
900
+
901
+ __simd_reference operator^=(_Vp __value) && {
902
+ return std::move(*this) = __ptr_->__get(__index_) ^ __value;
903
+ }
904
+ };
905
+
906
+ template <class _To, class _From>
907
+ constexpr decltype(_To{std::declval<_From>()}, true)
908
+ __is_non_narrowing_convertible_impl(_From) {
909
+ return true;
910
+ }
911
+
912
+ template <class _To>
913
+ constexpr bool __is_non_narrowing_convertible_impl(...) {
914
+ return false;
915
+ }
916
+
917
+ template <class _From, class _To>
918
+ constexpr typename std::enable_if<std::is_arithmetic<_To>::value &&
919
+ std::is_arithmetic<_From>::value,
920
+ bool>::type
921
+ __is_non_narrowing_arithmetic_convertible() {
922
+ return __is_non_narrowing_convertible_impl<_To>(_From{});
923
+ }
924
+
925
+ template <class _From, class _To>
926
+ constexpr typename std::enable_if<!(std::is_arithmetic<_To>::value &&
927
+ std::is_arithmetic<_From>::value),
928
+ bool>::type
929
+ __is_non_narrowing_arithmetic_convertible() {
930
+ return false;
931
+ }
932
+
933
+ template <class _Tp>
934
+ constexpr _Tp __variadic_sum() {
935
+ return _Tp{};
936
+ }
937
+
938
+ template <class _Tp, class _Up, class... _Args>
939
+ constexpr _Tp __variadic_sum(_Up __first, _Args... __rest) {
940
+ return static_cast<_Tp>(__first) + __variadic_sum<_Tp>(__rest...);
941
+ }
942
+
943
+ template <class _Tp>
944
+ struct __nodeduce {
945
+ using type = _Tp;
946
+ };
947
+
948
+ template <class _Tp>
949
+ constexpr bool __vectorizable() {
950
+ return std::is_arithmetic<_Tp>::value && !std::is_const<_Tp>::value &&
951
+ !std::is_volatile<_Tp>::value && !std::is_same<_Tp, bool>::value;
952
+ }
953
+
954
+ _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_SIMD
955
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_SIMD_ABI
956
+
957
+ using scalar = __simd_abi<_StorageKind::_Scalar, 1>;
958
+
959
+ template <int _Np>
960
+ using fixed_size = __simd_abi<_StorageKind::_Array, _Np>;
961
+
962
+ template <class _Tp>
963
+ _LIBCUDACXX_INLINE_VAR constexpr size_t max_fixed_size = 32;
964
+
965
+ template <class _Tp>
966
+ using compatible = fixed_size<16 / sizeof(_Tp)>;
967
+
968
+ #ifndef _LIBCUDACXX_HAS_NO_VECTOR_EXTENSION
969
+ template <class _Tp>
970
+ using native = __simd_abi<_StorageKind::_VecExt,
971
+ _LIBCUDACXX_NATIVE_SIMD_WIDTH_IN_BYTES / sizeof(_Tp)>;
972
+ #else
973
+ template <class _Tp>
974
+ using native =
975
+ fixed_size<_Tp, _LIBCUDACXX_NATIVE_SIMD_WIDTH_IN_BYTES / sizeof(_Tp)>;
976
+ #endif // _LIBCUDACXX_HAS_NO_VECTOR_EXTENSION
977
+
978
+ _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_SIMD_ABI
979
+ _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_SIMD
980
+
981
+ template <class _Tp, class _Abi = simd_abi::compatible<_Tp>>
982
+ class simd;
983
+ template <class _Tp, class _Abi = simd_abi::compatible<_Tp>>
984
+ class simd_mask;
985
+
986
+ struct element_aligned_tag {};
987
+ struct vector_aligned_tag {};
988
+ template <size_t>
989
+ struct overaligned_tag {};
990
+ _LIBCUDACXX_INLINE_VAR constexpr element_aligned_tag element_aligned{};
991
+ _LIBCUDACXX_INLINE_VAR constexpr vector_aligned_tag vector_aligned{};
992
+ template <size_t _Np>
993
+ _LIBCUDACXX_INLINE_VAR constexpr overaligned_tag<_Np> overaligned{};
994
+
995
+ // traits [simd.traits]
996
+ template <class _Tp>
997
+ struct is_abi_tag : std::integral_constant<bool, false> {};
998
+
999
+ template <_StorageKind __kind, int _Np>
1000
+ struct is_abi_tag<__simd_abi<__kind, _Np>>
1001
+ : std::integral_constant<bool, true> {};
1002
+
1003
+ template <class _Tp>
1004
+ struct is_simd : std::integral_constant<bool, false> {};
1005
+
1006
+ template <class _Tp, class _Abi>
1007
+ struct is_simd<simd<_Tp, _Abi>> : std::integral_constant<bool, true> {};
1008
+
1009
+ template <class _Tp>
1010
+ struct is_simd_mask : std::integral_constant<bool, false> {};
1011
+
1012
+ template <class _Tp, class _Abi>
1013
+ struct is_simd_mask<simd_mask<_Tp, _Abi>> : std::integral_constant<bool, true> {
1014
+ };
1015
+
1016
+ template <class _Tp>
1017
+ struct is_simd_flag_type : std::integral_constant<bool, false> {};
1018
+
1019
+ template <>
1020
+ struct is_simd_flag_type<element_aligned_tag>
1021
+ : std::integral_constant<bool, true> {};
1022
+
1023
+ template <>
1024
+ struct is_simd_flag_type<vector_aligned_tag>
1025
+ : std::integral_constant<bool, true> {};
1026
+
1027
+ template <size_t _Align>
1028
+ struct is_simd_flag_type<overaligned_tag<_Align>>
1029
+ : std::integral_constant<bool, true> {};
1030
+
1031
+ template <class _Tp>
1032
+ _LIBCUDACXX_INLINE_VAR constexpr bool is_abi_tag_v = is_abi_tag<_Tp>::value;
1033
+ template <class _Tp>
1034
+ _LIBCUDACXX_INLINE_VAR constexpr bool is_simd_v = is_simd<_Tp>::value;
1035
+ template <class _Tp>
1036
+ _LIBCUDACXX_INLINE_VAR constexpr bool is_simd_mask_v = is_simd_mask<_Tp>::value;
1037
+ template <class _Tp>
1038
+ _LIBCUDACXX_INLINE_VAR constexpr bool is_simd_flag_type_v =
1039
+ is_simd_flag_type<_Tp>::value;
1040
+ template <class _Tp, size_t _Np>
1041
+ struct abi_for_size {
1042
+ using type = simd_abi::fixed_size<_Np>;
1043
+ };
1044
+ template <class _Tp, size_t _Np>
1045
+ using abi_for_size_t = typename abi_for_size<_Tp, _Np>::type;
1046
+
1047
+ template <class _Tp, class _Abi = simd_abi::compatible<_Tp>>
1048
+ struct simd_size;
1049
+
1050
+ template <class _Tp, _StorageKind __kind, int _Np>
1051
+ struct simd_size<_Tp, __simd_abi<__kind, _Np>>
1052
+ : std::integral_constant<size_t, _Np> {
1053
+ static_assert(
1054
+ std::is_arithmetic<_Tp>::value &&
1055
+ !std::is_same<typename std::remove_const<_Tp>::type, bool>::value,
1056
+ "Element type should be vectorizable");
1057
+ };
1058
+
1059
+ // TODO: implement it.
1060
+ template <class _Tp, class _Up = typename _Tp::value_type>
1061
+ struct memory_alignment;
1062
+
1063
+ template <class _Tp, class _Abi = simd_abi::compatible<_Tp>>
1064
+ _LIBCUDACXX_INLINE_VAR constexpr size_t simd_size_v = simd_size<_Tp, _Abi>::value;
1065
+
1066
+ template <class _Tp, class _Up = typename _Tp::value_type>
1067
+ _LIBCUDACXX_INLINE_VAR constexpr size_t memory_alignment_v =
1068
+ memory_alignment<_Tp, _Up>::value;
1069
+
1070
+ // class template simd [simd.class]
1071
+ template <class _Tp>
1072
+ using native_simd = simd<_Tp, simd_abi::native<_Tp>>;
1073
+ template <class _Tp, int _Np>
1074
+ using fixed_size_simd = simd<_Tp, simd_abi::fixed_size<_Np>>;
1075
+
1076
+ // class template simd_mask [simd.mask.class]
1077
+ template <class _Tp>
1078
+ using native_simd_mask = simd_mask<_Tp, simd_abi::native<_Tp>>;
1079
+
1080
+ template <class _Tp, int _Np>
1081
+ using fixed_size_simd_mask = simd_mask<_Tp, simd_abi::fixed_size<_Np>>;
1082
+
1083
+ // casts [simd.casts]
1084
+ template <class _Tp>
1085
+ struct __static_simd_cast_traits {
1086
+ template <class _Up, class _Abi>
1087
+ static simd<_Tp, _Abi> __apply(const simd<_Up, _Abi>& __v);
1088
+ };
1089
+
1090
+ template <class _Tp, class _NewAbi>
1091
+ struct __static_simd_cast_traits<simd<_Tp, _NewAbi>> {
1092
+ template <class _Up, class _Abi>
1093
+ static typename std::enable_if<simd<_Up, _Abi>::size() ==
1094
+ simd<_Tp, _NewAbi>::size(),
1095
+ simd<_Tp, _NewAbi>>::type
1096
+ __apply(const simd<_Up, _Abi>& __v);
1097
+ };
1098
+
1099
+ template <class _Tp>
1100
+ struct __simd_cast_traits {
1101
+ template <class _Up, class _Abi>
1102
+ static typename std::enable_if<
1103
+ __is_non_narrowing_arithmetic_convertible<_Up, _Tp>(),
1104
+ simd<_Tp, _Abi>>::type
1105
+ __apply(const simd<_Up, _Abi>& __v);
1106
+ };
1107
+
1108
+ template <class _Tp, class _NewAbi>
1109
+ struct __simd_cast_traits<simd<_Tp, _NewAbi>> {
1110
+ template <class _Up, class _Abi>
1111
+ static typename std::enable_if<
1112
+ __is_non_narrowing_arithmetic_convertible<_Up, _Tp>() &&
1113
+ simd<_Up, _Abi>::size() == simd<_Tp, _NewAbi>::size(),
1114
+ simd<_Tp, _NewAbi>>::type
1115
+ __apply(const simd<_Up, _Abi>& __v);
1116
+ };
1117
+
1118
+ template <class _Tp, class _Up, class _Abi>
1119
+ auto simd_cast(const simd<_Up, _Abi>& __v)
1120
+ -> decltype(__simd_cast_traits<_Tp>::__apply(__v)) {
1121
+ return __simd_cast_traits<_Tp>::__apply(__v);
1122
+ }
1123
+
1124
+ template <class _Tp, class _Up, class _Abi>
1125
+ auto static_simd_cast(const simd<_Up, _Abi>& __v)
1126
+ -> decltype(__static_simd_cast_traits<_Tp>::__apply(__v)) {
1127
+ return __static_simd_cast_traits<_Tp>::__apply(__v);
1128
+ }
1129
+
1130
+ template <class _Tp, class _Abi>
1131
+ fixed_size_simd<_Tp, simd_size<_Tp, _Abi>::value>
1132
+ to_fixed_size(const simd<_Tp, _Abi>&) noexcept;
1133
+
1134
+ template <class _Tp, class _Abi>
1135
+ fixed_size_simd_mask<_Tp, simd_size<_Tp, _Abi>::value>
1136
+ to_fixed_size(const simd_mask<_Tp, _Abi>&) noexcept;
1137
+
1138
+ template <class _Tp, size_t _Np>
1139
+ native_simd<_Tp> to_native(const fixed_size_simd<_Tp, _Np>&) noexcept;
1140
+
1141
+ template <class _Tp, size_t _Np>
1142
+ native_simd_mask<_Tp> to_native(const fixed_size_simd_mask<_Tp, _Np>&) noexcept;
1143
+
1144
+ template <class _Tp, size_t _Np>
1145
+ simd<_Tp> to_compatible(const fixed_size_simd<_Tp, _Np>&) noexcept;
1146
+
1147
+ template <class _Tp, size_t _Np>
1148
+ simd_mask<_Tp> to_compatible(const fixed_size_simd_mask<_Tp, _Np>&) noexcept;
1149
+
1150
+ template <size_t... __sizes, class _Tp, class _Abi>
1151
+ tuple<simd<_Tp, abi_for_size_t<_Tp, __sizes>>...> split(const simd<_Tp, _Abi>&);
1152
+
1153
+ template <size_t... __sizes, class _Tp, class _Abi>
1154
+ tuple<simd_mask<_Tp, abi_for_size_t<_Tp, __sizes>>...>
1155
+ split(const simd_mask<_Tp, _Abi>&);
1156
+
1157
+ template <class _SimdType, class _Abi>
1158
+ array<_SimdType, simd_size<typename _SimdType::value_type, _Abi>::value /
1159
+ _SimdType::size()>
1160
+ split(const simd<typename _SimdType::value_type, _Abi>&);
1161
+
1162
+ template <class _SimdType, class _Abi>
1163
+ array<_SimdType, simd_size<typename _SimdType::value_type, _Abi>::value /
1164
+ _SimdType::size()>
1165
+ split(const simd_mask<typename _SimdType::value_type, _Abi>&);
1166
+
1167
+ template <class _Tp, class... _Abis>
1168
+ simd<_Tp, abi_for_size_t<_Tp, __variadic_sum(simd_size<_Tp, _Abis>::value...)>>
1169
+ concat(const simd<_Tp, _Abis>&...);
1170
+
1171
+ template <class _Tp, class... _Abis>
1172
+ simd_mask<_Tp,
1173
+ abi_for_size_t<_Tp, __variadic_sum(simd_size<_Tp, _Abis>::value...)>>
1174
+ concat(const simd_mask<_Tp, _Abis>&...);
1175
+
1176
+ // reductions [simd.mask.reductions]
1177
+ template <class _Tp, class _Abi>
1178
+ bool all_of(const simd_mask<_Tp, _Abi>&) noexcept;
1179
+ template <class _Tp, class _Abi>
1180
+ bool any_of(const simd_mask<_Tp, _Abi>&) noexcept;
1181
+ template <class _Tp, class _Abi>
1182
+ bool none_of(const simd_mask<_Tp, _Abi>&) noexcept;
1183
+ template <class _Tp, class _Abi>
1184
+ bool some_of(const simd_mask<_Tp, _Abi>&) noexcept;
1185
+ template <class _Tp, class _Abi>
1186
+ int popcount(const simd_mask<_Tp, _Abi>&) noexcept;
1187
+ template <class _Tp, class _Abi>
1188
+ int find_first_set(const simd_mask<_Tp, _Abi>&);
1189
+ template <class _Tp, class _Abi>
1190
+ int find_last_set(const simd_mask<_Tp, _Abi>&);
1191
+ bool all_of(bool) noexcept;
1192
+ bool any_of(bool) noexcept;
1193
+ bool none_of(bool) noexcept;
1194
+ bool some_of(bool) noexcept;
1195
+ int popcount(bool) noexcept;
1196
+ int find_first_set(bool) noexcept;
1197
+ int find_last_set(bool) noexcept;
1198
+
1199
+ // masked assignment [simd.whereexpr]
1200
+ template <class _MaskType, class _Tp>
1201
+ class const_where_expression;
1202
+ template <class _MaskType, class _Tp>
1203
+ class where_expression;
1204
+
1205
+ // masked assignment [simd.mask.where]
1206
+ template <class _Tp, class _Abi>
1207
+ where_expression<simd_mask<_Tp, _Abi>, simd<_Tp, _Abi>>
1208
+ where(const typename simd<_Tp, _Abi>::mask_type&, simd<_Tp, _Abi>&) noexcept;
1209
+
1210
+ template <class _Tp, class _Abi>
1211
+ const_where_expression<simd_mask<_Tp, _Abi>, const simd<_Tp, _Abi>>
1212
+ where(const typename simd<_Tp, _Abi>::mask_type&,
1213
+ const simd<_Tp, _Abi>&) noexcept;
1214
+
1215
+ template <class _Tp, class _Abi>
1216
+ where_expression<simd_mask<_Tp, _Abi>, simd_mask<_Tp, _Abi>>
1217
+ where(const typename __nodeduce<simd_mask<_Tp, _Abi>>::type&,
1218
+ simd_mask<_Tp, _Abi>&) noexcept;
1219
+
1220
+ template <class _Tp, class _Abi>
1221
+ const_where_expression<simd_mask<_Tp, _Abi>, const simd_mask<_Tp, _Abi>>
1222
+ where(const typename __nodeduce<simd_mask<_Tp, _Abi>>::type&,
1223
+ const simd_mask<_Tp, _Abi>&) noexcept;
1224
+
1225
+ template <class _Tp>
1226
+ where_expression<bool, _Tp> where(bool, _Tp&) noexcept;
1227
+
1228
+ template <class _Tp>
1229
+ const_where_expression<bool, const _Tp> where(bool, const _Tp&) noexcept;
1230
+
1231
+ // reductions [simd.reductions]
1232
+ template <class _Tp, class _Abi, class _BinaryOp = std::plus<_Tp>>
1233
+ _Tp reduce(const simd<_Tp, _Abi>&, _BinaryOp = _BinaryOp());
1234
+
1235
+ template <class _MaskType, class _SimdType, class _BinaryOp>
1236
+ typename _SimdType::value_type
1237
+ reduce(const const_where_expression<_MaskType, _SimdType>&,
1238
+ typename _SimdType::value_type neutral_element, _BinaryOp binary_op);
1239
+
1240
+ template <class _MaskType, class _SimdType>
1241
+ typename _SimdType::value_type
1242
+ reduce(const const_where_expression<_MaskType, _SimdType>&,
1243
+ plus<typename _SimdType::value_type> binary_op = {});
1244
+
1245
+ template <class _MaskType, class _SimdType>
1246
+ typename _SimdType::value_type
1247
+ reduce(const const_where_expression<_MaskType, _SimdType>&,
1248
+ multiplies<typename _SimdType::value_type> binary_op);
1249
+
1250
+ template <class _MaskType, class _SimdType>
1251
+ typename _SimdType::value_type
1252
+ reduce(const const_where_expression<_MaskType, _SimdType>&,
1253
+ bit_and<typename _SimdType::value_type> binary_op);
1254
+
1255
+ template <class _MaskType, class _SimdType>
1256
+ typename _SimdType::value_type
1257
+ reduce(const const_where_expression<_MaskType, _SimdType>&,
1258
+ bit_or<typename _SimdType::value_type> binary_op);
1259
+
1260
+ template <class _MaskType, class _SimdType>
1261
+ typename _SimdType::value_type
1262
+ reduce(const const_where_expression<_MaskType, _SimdType>&,
1263
+ bit_xor<typename _SimdType::value_type> binary_op);
1264
+
1265
+ template <class _Tp, class _Abi>
1266
+ _Tp hmin(const simd<_Tp, _Abi>&);
1267
+ template <class _MaskType, class _SimdType>
1268
+ typename _SimdType::value_type
1269
+ hmin(const const_where_expression<_MaskType, _SimdType>&);
1270
+ template <class _Tp, class _Abi>
1271
+ _Tp hmax(const simd<_Tp, _Abi>&);
1272
+ template <class _MaskType, class _SimdType>
1273
+ typename _SimdType::value_type
1274
+ hmax(const const_where_expression<_MaskType, _SimdType>&);
1275
+
1276
+ // algorithms [simd.alg]
1277
+ template <class _Tp, class _Abi>
1278
+ simd<_Tp, _Abi> min(const simd<_Tp, _Abi>&, const simd<_Tp, _Abi>&) noexcept;
1279
+
1280
+ template <class _Tp, class _Abi>
1281
+ simd<_Tp, _Abi> max(const simd<_Tp, _Abi>&, const simd<_Tp, _Abi>&) noexcept;
1282
+
1283
+ template <class _Tp, class _Abi>
1284
+ std::pair<simd<_Tp, _Abi>, simd<_Tp, _Abi>>
1285
+ minmax(const simd<_Tp, _Abi>&, const simd<_Tp, _Abi>&) noexcept;
1286
+
1287
+ template <class _Tp, class _Abi>
1288
+ simd<_Tp, _Abi> clamp(const simd<_Tp, _Abi>&, const simd<_Tp, _Abi>&,
1289
+ const simd<_Tp, _Abi>&);
1290
+
1291
+ // [simd.whereexpr]
1292
+ // TODO implement where expressions.
1293
+ template <class _MaskType, class _Tp>
1294
+ class const_where_expression {
1295
+ public:
1296
+ const_where_expression(const const_where_expression&) = delete;
1297
+ const_where_expression& operator=(const const_where_expression&) = delete;
1298
+ __remove_const_t<_Tp> operator-() const&&;
1299
+ template <class _Up, class _Flags>
1300
+ void copy_to(_Up*, _Flags) const&&;
1301
+ };
1302
+
1303
+ template <class _MaskType, class _Tp>
1304
+ class where_expression : public const_where_expression<_MaskType, _Tp> {
1305
+ public:
1306
+ where_expression(const where_expression&) = delete;
1307
+ where_expression& operator=(const where_expression&) = delete;
1308
+ template <class _Up>
1309
+ void operator=(_Up&&);
1310
+ template <class _Up>
1311
+ void operator+=(_Up&&);
1312
+ template <class _Up>
1313
+ void operator-=(_Up&&);
1314
+ template <class _Up>
1315
+ void operator*=(_Up&&);
1316
+ template <class _Up>
1317
+ void operator/=(_Up&&);
1318
+ template <class _Up>
1319
+ void operator%=(_Up&&);
1320
+ template <class _Up>
1321
+ void operator&=(_Up&&);
1322
+ template <class _Up>
1323
+ void operator|=(_Up&&);
1324
+ template <class _Up>
1325
+ void operator^=(_Up&&);
1326
+ template <class _Up>
1327
+ void operator<<=(_Up&&);
1328
+ template <class _Up>
1329
+ void operator>>=(_Up&&);
1330
+ void operator++();
1331
+ void operator++(int);
1332
+ void operator--();
1333
+ void operator--(int);
1334
+ template <class _Up, class _Flags>
1335
+ void copy_from(const _Up*, _Flags);
1336
+ };
1337
+
1338
+ // [simd.class]
1339
+ // TODO: implement simd
1340
+ template <class _Tp, class _Abi>
1341
+ class simd {
1342
+ public:
1343
+ using value_type = _Tp;
1344
+ using reference = __simd_reference<_Tp, _Tp, _Abi>;
1345
+ using mask_type = simd_mask<_Tp, _Abi>;
1346
+ using abi_type = _Abi;
1347
+
1348
+ simd() = default;
1349
+ simd(const simd&) = default;
1350
+ simd& operator=(const simd&) = default;
1351
+
1352
+ static constexpr size_t size() noexcept {
1353
+ return simd_size<_Tp, _Abi>::value;
1354
+ }
1355
+
1356
+ private:
1357
+ __simd_storage<_Tp, _Abi> __s_;
1358
+
1359
+ template <class _Up>
1360
+ static constexpr bool __can_broadcast() {
1361
+ return (std::is_arithmetic<_Up>::value &&
1362
+ __is_non_narrowing_arithmetic_convertible<_Up, _Tp>()) ||
1363
+ (!std::is_arithmetic<_Up>::value &&
1364
+ std::is_convertible<_Up, _Tp>::value) ||
1365
+ std::is_same<typename std::remove_const<_Up>::type, int>::value ||
1366
+ (std::is_same<typename std::remove_const<_Up>::type,
1367
+ unsigned int>::value &&
1368
+ std::is_unsigned<_Tp>::value);
1369
+ }
1370
+
1371
+ template <class _Generator, size_t... __indicies>
1372
+ static constexpr decltype(
1373
+ std::forward_as_tuple(std::declval<_Generator>()(
1374
+ std::integral_constant<size_t, __indicies>())...),
1375
+ bool())
1376
+ __can_generate(std::index_sequence<__indicies...>) {
1377
+ return !__variadic_sum<bool>(
1378
+ !__can_broadcast<decltype(std::declval<_Generator>()(
1379
+ std::integral_constant<size_t, __indicies>()))>()...);
1380
+ }
1381
+
1382
+ template <class _Generator>
1383
+ static bool __can_generate(...) {
1384
+ return false;
1385
+ }
1386
+
1387
+ template <class _Generator, size_t... __indicies>
1388
+ void __generator_init(_Generator&& __g, std::index_sequence<__indicies...>) {
1389
+ int __not_used[]{((*this)[__indicies] =
1390
+ __g(std::integral_constant<size_t, __indicies>()),
1391
+ 0)...};
1392
+ (void)__not_used;
1393
+ }
1394
+
1395
+ public:
1396
+ // implicit type conversion constructor
1397
+ template <class _Up,
1398
+ class = typename std::enable_if<
1399
+ std::is_same<_Abi, simd_abi::fixed_size<size()>>::value &&
1400
+ __is_non_narrowing_arithmetic_convertible<_Up, _Tp>()>::type>
1401
+ simd(const simd<_Up, simd_abi::fixed_size<size()>>& __v) {
1402
+ for (size_t __i = 0; __i < size(); __i++) {
1403
+ (*this)[__i] = static_cast<_Tp>(__v[__i]);
1404
+ }
1405
+ }
1406
+
1407
+ // implicit broadcast constructor
1408
+ template <class _Up,
1409
+ class = typename std::enable_if<__can_broadcast<_Up>()>::type>
1410
+ simd(_Up&& __rv) {
1411
+ auto __v = static_cast<_Tp>(__rv);
1412
+ for (size_t __i = 0; __i < size(); __i++) {
1413
+ (*this)[__i] = __v;
1414
+ }
1415
+ }
1416
+
1417
+ // generator constructor
1418
+ template <class _Generator,
1419
+ int = typename std::enable_if<
1420
+ __can_generate<_Generator>(std::make_index_sequence<size()>()),
1421
+ int>::type()>
1422
+ explicit simd(_Generator&& __g) {
1423
+ __generator_init(std::forward<_Generator>(__g),
1424
+ std::make_index_sequence<size()>());
1425
+ }
1426
+
1427
+ // load constructor
1428
+ template <
1429
+ class _Up, class _Flags,
1430
+ class = typename std::enable_if<__vectorizable<_Up>()>::type,
1431
+ class = typename std::enable_if<is_simd_flag_type<_Flags>::value>::type>
1432
+ simd(const _Up* __buffer, _Flags) {
1433
+ // TODO: optimize for overaligned flags
1434
+ for (size_t __i = 0; __i < size(); __i++) {
1435
+ (*this)[__i] = static_cast<_Tp>(__buffer[__i]);
1436
+ }
1437
+ }
1438
+
1439
+ // loads [simd.load]
1440
+ template <class _Up, class _Flags>
1441
+ typename std::enable_if<__vectorizable<_Up>() &&
1442
+ is_simd_flag_type<_Flags>::value>::type
1443
+ copy_from(const _Up* __buffer, _Flags) {
1444
+ *this = simd(__buffer, _Flags());
1445
+ }
1446
+
1447
+ // stores [simd.store]
1448
+ template <class _Up, class _Flags>
1449
+ typename std::enable_if<__vectorizable<_Up>() &&
1450
+ is_simd_flag_type<_Flags>::value>::type
1451
+ copy_to(_Up* __buffer, _Flags) const {
1452
+ // TODO: optimize for overaligned flags
1453
+ for (size_t __i = 0; __i < size(); __i++) {
1454
+ __buffer[__i] = static_cast<_Up>((*this)[__i]);
1455
+ }
1456
+ }
1457
+
1458
+ // scalar access [simd.subscr]
1459
+ reference operator[](size_t __i) { return reference(&__s_, __i); }
1460
+
1461
+ value_type operator[](size_t __i) const { return __s_.__get(__i); }
1462
+
1463
+ // unary operators [simd.unary]
1464
+ simd& operator++();
1465
+ simd operator++(int);
1466
+ simd& operator--();
1467
+ simd operator--(int);
1468
+ mask_type operator!() const;
1469
+ simd operator~() const;
1470
+ simd operator+() const;
1471
+ simd operator-() const;
1472
+
1473
+ // binary operators [simd.binary]
1474
+ friend simd operator+(const simd&, const simd&);
1475
+ friend simd operator-(const simd&, const simd&);
1476
+ friend simd operator*(const simd&, const simd&);
1477
+ friend simd operator/(const simd&, const simd&);
1478
+ friend simd operator%(const simd&, const simd&);
1479
+ friend simd operator&(const simd&, const simd&);
1480
+ friend simd operator|(const simd&, const simd&);
1481
+ friend simd operator^(const simd&, const simd&);
1482
+ friend simd operator<<(const simd&, const simd&);
1483
+ friend simd operator>>(const simd&, const simd&);
1484
+ friend simd operator<<(const simd&, int);
1485
+ friend simd operator>>(const simd&, int);
1486
+
1487
+ // compound assignment [simd.cassign]
1488
+ friend simd& operator+=(simd&, const simd&);
1489
+ friend simd& operator-=(simd&, const simd&);
1490
+ friend simd& operator*=(simd&, const simd&);
1491
+ friend simd& operator/=(simd&, const simd&);
1492
+ friend simd& operator%=(simd&, const simd&);
1493
+
1494
+ friend simd& operator&=(simd&, const simd&);
1495
+ friend simd& operator|=(simd&, const simd&);
1496
+ friend simd& operator^=(simd&, const simd&);
1497
+ friend simd& operator<<=(simd&, const simd&);
1498
+ friend simd& operator>>=(simd&, const simd&);
1499
+ friend simd& operator<<=(simd&, int);
1500
+ friend simd& operator>>=(simd&, int);
1501
+
1502
+ // compares [simd.comparison]
1503
+ friend mask_type operator==(const simd&, const simd&);
1504
+ friend mask_type operator!=(const simd&, const simd&);
1505
+ friend mask_type operator>=(const simd&, const simd&);
1506
+ friend mask_type operator<=(const simd&, const simd&);
1507
+ friend mask_type operator>(const simd&, const simd&);
1508
+ friend mask_type operator<(const simd&, const simd&);
1509
+ };
1510
+
1511
+ // [simd.mask.class]
1512
+ template <class _Tp, class _Abi>
1513
+ // TODO: implement simd_mask
1514
+ class simd_mask {
1515
+ public:
1516
+ using value_type = bool;
1517
+ // TODO: this is strawman implementation. Turn it into a proxy type.
1518
+ using reference = bool&;
1519
+ using simd_type = simd<_Tp, _Abi>;
1520
+ using abi_type = _Abi;
1521
+ static constexpr size_t size() noexcept;
1522
+ simd_mask() = default;
1523
+
1524
+ // broadcast constructor
1525
+ explicit simd_mask(value_type) noexcept;
1526
+
1527
+ // implicit type conversion constructor
1528
+ template <class _Up>
1529
+ simd_mask(const simd_mask<_Up, simd_abi::fixed_size<size()>>&) noexcept;
1530
+
1531
+ // load constructor
1532
+ template <class _Flags>
1533
+ simd_mask(const value_type*, _Flags);
1534
+
1535
+ // loads [simd.mask.copy]
1536
+ template <class _Flags>
1537
+ void copy_from(const value_type*, _Flags);
1538
+ template <class _Flags>
1539
+ void copy_to(value_type*, _Flags) const;
1540
+
1541
+ // scalar access [simd.mask.subscr]
1542
+ reference operator[](size_t);
1543
+ value_type operator[](size_t) const;
1544
+
1545
+ // unary operators [simd.mask.unary]
1546
+ simd_mask operator!() const noexcept;
1547
+
1548
+ // simd_mask binary operators [simd.mask.binary]
1549
+ friend simd_mask operator&&(const simd_mask&, const simd_mask&) noexcept;
1550
+ friend simd_mask operator||(const simd_mask&, const simd_mask&) noexcept;
1551
+ friend simd_mask operator&(const simd_mask&, const simd_mask&)noexcept;
1552
+ friend simd_mask operator|(const simd_mask&, const simd_mask&) noexcept;
1553
+ friend simd_mask operator^(const simd_mask&, const simd_mask&) noexcept;
1554
+
1555
+ // simd_mask compound assignment [simd.mask.cassign]
1556
+ friend simd_mask& operator&=(simd_mask&, const simd_mask&) noexcept;
1557
+ friend simd_mask& operator|=(simd_mask&, const simd_mask&) noexcept;
1558
+ friend simd_mask& operator^=(simd_mask&, const simd_mask&) noexcept;
1559
+
1560
+ // simd_mask compares [simd.mask.comparison]
1561
+ friend simd_mask operator==(const simd_mask&, const simd_mask&) noexcept;
1562
+ friend simd_mask operator!=(const simd_mask&, const simd_mask&) noexcept;
1563
+ };
1564
+
1565
+ #endif // _LIBCUDACXX_STD_VER >= 17
1566
+
1567
+ _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL_SIMD
1568
+
1569
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_SIMD */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/string ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- string ----------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_STRING
11
+ #define _LIBCUDACXX_EXPERIMENTAL_STRING
12
+ /*
13
+ experimental/string synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ // basic_string using polymorphic allocator in namespace pmr
22
+ template <class charT, class traits = char_traits<charT>>
23
+ using basic_string =
24
+ std::basic_string<charT, traits, polymorphic_allocator<charT>>;
25
+
26
+ // basic_string typedef names using polymorphic allocator in namespace
27
+ // std::experimental::pmr
28
+ typedef basic_string<char> string;
29
+ typedef basic_string<char16_t> u16string;
30
+ typedef basic_string<char32_t> u32string;
31
+ typedef basic_string<wchar_t> wstring;
32
+
33
+ } // namespace pmr
34
+ } // namespace fundamentals_v1
35
+ } // namespace experimental
36
+ } // namespace std
37
+
38
+ */
39
+
40
+ #include <experimental/__config>
41
+ #include <string>
42
+ #include <experimental/memory_resource>
43
+
44
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
45
+ #pragma GCC system_header
46
+ #endif
47
+
48
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
49
+
50
+ template <class _CharT, class _Traits = char_traits<_CharT>>
51
+ using basic_string =
52
+ _CUDA_VSTD::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>;
53
+
54
+ typedef basic_string<char> string;
55
+ typedef basic_string<char16_t> u16string;
56
+ typedef basic_string<char32_t> u32string;
57
+ typedef basic_string<wchar_t> wstring;
58
+
59
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
60
+
61
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_STRING */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/type_traits ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===-------------------------- type_traits -------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_TYPE_TRAITS
11
+ #define _LIBCUDACXX_EXPERIMENTAL_TYPE_TRAITS
12
+
13
+ /**
14
+ experimental/type_traits synopsis
15
+
16
+ // C++1y
17
+ #include <type_traits>
18
+
19
+ namespace std {
20
+ namespace experimental {
21
+ inline namespace fundamentals_v1 {
22
+
23
+ // 3.3.2, Other type transformations
24
+ template <class> class invocation_type; // not defined
25
+ template <class F, class... ArgTypes> class invocation_type<F(ArgTypes...)>;
26
+ template <class> class raw_invocation_type; // not defined
27
+ template <class F, class... ArgTypes> class raw_invocation_type<F(ArgTypes...)>;
28
+
29
+ template <class T>
30
+ using invocation_type_t = typename invocation_type<T>::type;
31
+ template <class T>
32
+ using raw_invocation_type_t = typename raw_invocation_type<T>::type;
33
+
34
+ // 3.3.4, Detection idiom
35
+ template <class...> using void_t = void;
36
+
37
+ struct nonesuch {
38
+ nonesuch() = delete;
39
+ ~nonesuch() = delete;
40
+ nonesuch(nonesuch const&) = delete;
41
+ void operator=(nonesuch const&) = delete;
42
+ };
43
+
44
+ template <template<class...> class Op, class... Args>
45
+ using is_detected = see below;
46
+ template <template<class...> class Op, class... Args>
47
+ constexpr bool is_detected_v = is_detected<Op, Args...>::value;
48
+ template <template<class...> class Op, class... Args>
49
+ using detected_t = see below;
50
+ template <class Default, template<class...> class Op, class... Args>
51
+ using detected_or = see below;
52
+ template <class Default, template<class...> class Op, class... Args>
53
+ using detected_or_t = typename detected_or<Default, Op, Args...>::type;
54
+ template <class Expected, template<class...> class Op, class... Args>
55
+ using is_detected_exact = is_same<Expected, detected_t<Op, Args...>>;
56
+ template <class Expected, template<class...> class Op, class... Args>
57
+ constexpr bool is_detected_exact_v
58
+ = is_detected_exact<Expected, Op, Args...>::value;
59
+ template <class To, template<class...> class Op, class... Args>
60
+ using is_detected_convertible = is_convertible<detected_t<Op, Args...>, To>;
61
+ template <class To, template<class...> class Op, class... Args>
62
+ constexpr bool is_detected_convertible_v
63
+ = is_detected_convertible<To, Op, Args...>::value;
64
+
65
+ } // namespace fundamentals_v1
66
+ } // namespace experimental
67
+ } // namespace std
68
+
69
+ */
70
+
71
+ #include <experimental/__config>
72
+
73
+ #if _LIBCUDACXX_STD_VER > 11
74
+
75
+ #include <initializer_list>
76
+ #include <type_traits>
77
+
78
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
79
+ #pragma GCC system_header
80
+ #endif
81
+
82
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS
83
+
84
+ // 3.3.2, Other type transformations
85
+ /*
86
+ template <class>
87
+ class _LIBCUDACXX_TEMPLATE_VIS raw_invocation_type;
88
+
89
+ template <class _Fn, class ..._Args>
90
+ class _LIBCUDACXX_TEMPLATE_VIS raw_invocation_type<_Fn(_Args...)>;
91
+
92
+ template <class>
93
+ class _LIBCUDACXX_TEMPLATE_VIS invokation_type;
94
+
95
+ template <class _Fn, class ..._Args>
96
+ class _LIBCUDACXX_TEMPLATE_VIS invokation_type<_Fn(_Args...)>;
97
+
98
+ template <class _Tp>
99
+ using invokation_type_t = typename invokation_type<_Tp>::type;
100
+
101
+ template <class _Tp>
102
+ using raw_invocation_type_t = typename raw_invocation_type<_Tp>::type;
103
+ */
104
+
105
+ // 3.3.4, Detection idiom
106
+ template <class...> using void_t = void;
107
+
108
+ struct nonesuch : private _CUDA_VSTD::__nat { // make nonesuch "not an aggregate"
109
+ ~nonesuch() = delete;
110
+ nonesuch (nonesuch const&) = delete;
111
+ void operator=(nonesuch const&) = delete;
112
+ };
113
+
114
+ template <class _Default, class _AlwaysVoid, template <class...> class _Op, class... _Args>
115
+ struct _DETECTOR {
116
+ using value_t = false_type;
117
+ using type = _Default;
118
+ };
119
+
120
+ template <class _Default, template <class...> class _Op, class... _Args>
121
+ struct _DETECTOR<_Default, void_t<_Op<_Args...>>, _Op, _Args...> {
122
+ using value_t = true_type;
123
+ using type = _Op<_Args...>;
124
+ };
125
+
126
+
127
+ template <template<class...> class _Op, class... _Args>
128
+ using is_detected = typename _DETECTOR<nonesuch, void, _Op, _Args...>::value_t;
129
+ template <template<class...> class _Op, class... _Args>
130
+ using detected_t = typename _DETECTOR<nonesuch, void, _Op, _Args...>::type;
131
+ template <template<class...> class _Op, class... _Args>
132
+ _LIBCUDACXX_CONSTEXPR bool is_detected_v = is_detected<_Op, _Args...>::value;
133
+
134
+ template <class Default, template<class...> class _Op, class... _Args>
135
+ using detected_or = _DETECTOR<Default, void, _Op, _Args...>;
136
+ template <class Default, template<class...> class _Op, class... _Args>
137
+ using detected_or_t = typename detected_or<Default, _Op, _Args...>::type;
138
+
139
+ template <class Expected, template<class...> class _Op, class... _Args>
140
+ using is_detected_exact = is_same<Expected, detected_t<_Op, _Args...>>;
141
+ template <class Expected, template<class...> class _Op, class... _Args>
142
+ _LIBCUDACXX_CONSTEXPR bool is_detected_exact_v = is_detected_exact<Expected, _Op, _Args...>::value;
143
+
144
+ template <class To, template<class...> class _Op, class... _Args>
145
+ using is_detected_convertible = is_convertible<detected_t<_Op, _Args...>, To>;
146
+ template <class To, template<class...> class _Op, class... _Args>
147
+ _LIBCUDACXX_CONSTEXPR bool is_detected_convertible_v = is_detected_convertible<To, _Op, _Args...>::value;
148
+
149
+
150
+ _LIBCUDACXX_END_NAMESPACE_LFTS
151
+
152
+ #endif /* _LIBCUDACXX_STD_VER > 11 */
153
+
154
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_TYPE_TRAITS */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/unordered_map ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===------------------------- unordered_map ------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_UNORDERED_MAP
11
+ #define _LIBCUDACXX_EXPERIMENTAL_UNORDERED_MAP
12
+ /*
13
+ experimental/unordered_map synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class Key, class T,
22
+ class Hash = hash<Key>,
23
+ class Pred = equal_to<Key>>
24
+ using unordered_map =
25
+ std::unordered_map<Key, T, Hash, Pred,
26
+ polymorphic_allocator<pair<const Key,T>>>;
27
+
28
+ template <class Key, class T,
29
+ class Hash = hash<Key>,
30
+ class Pred = equal_to<Key>>
31
+ using unordered_multimap =
32
+ std::unordered_multimap<Key, T, Hash, Pred,
33
+ polymorphic_allocator<pair<const Key,T>>>;
34
+
35
+ } // namespace pmr
36
+ } // namespace fundamentals_v1
37
+ } // namespace experimental
38
+ } // namespace std
39
+
40
+ */
41
+
42
+ #include <experimental/__config>
43
+ #include <unordered_map>
44
+ #include <experimental/memory_resource>
45
+
46
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
47
+ #pragma GCC system_header
48
+ #endif
49
+
50
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
51
+
52
+ template <class _Key, class _Value,
53
+ class _Hash = hash<_Key>, class _Pred = equal_to<_Key>>
54
+ using unordered_map = _CUDA_VSTD::unordered_map<_Key, _Value, _Hash, _Pred,
55
+ polymorphic_allocator<pair<const _Key, _Value>>>;
56
+
57
+ template <class _Key, class _Value,
58
+ class _Hash = hash<_Key>, class _Pred = equal_to<_Key>>
59
+ using unordered_multimap = _CUDA_VSTD::unordered_multimap<_Key, _Value, _Hash, _Pred,
60
+ polymorphic_allocator<pair<const _Key, _Value>>>;
61
+
62
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
63
+
64
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_UNORDERED_MAP */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/unordered_set ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===------------------------- unordered_set ------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_UNORDERED_SET
11
+ #define _LIBCUDACXX_EXPERIMENTAL_UNORDERED_SET
12
+ /*
13
+ experimental/unordered_set synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class T, class Hash = hash<T>, class Pred = equal_to<T>>
22
+ using unordered_set = std::unordered_set<T, Hash, Pred,
23
+ polymorphic_allocator<T>>;
24
+
25
+ template <class T, class Hash = hash<T>, class Pred = equal_to<T>>
26
+ using unordered_multiset = std::unordered_multiset<T, Hash, Pred,
27
+ polymorphic_allocator<T>>;
28
+
29
+ } // namespace pmr
30
+ } // namespace fundamentals_v1
31
+ } // namespace experimental
32
+ } // namespace std
33
+
34
+ */
35
+
36
+ #include <experimental/__config>
37
+ #include <unordered_set>
38
+ #include <experimental/memory_resource>
39
+
40
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
41
+ #pragma GCC system_header
42
+ #endif
43
+
44
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
45
+
46
+ template <class _Value,
47
+ class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>
48
+ using unordered_set = _CUDA_VSTD::unordered_set<_Value, _Hash, _Pred,
49
+ polymorphic_allocator<_Value>>;
50
+
51
+ template <class _Value,
52
+ class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>
53
+ using unordered_multiset = _CUDA_VSTD::unordered_multiset<_Value, _Hash, _Pred,
54
+ polymorphic_allocator<_Value>>;
55
+
56
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
57
+
58
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_UNORDERED_SET */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/utility ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===-------------------------- utility ----------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_UTILITY
11
+ #define _LIBCUDACXX_EXPERIMENTAL_UTILITY
12
+
13
+ /*
14
+ experimental/utility synopsis
15
+
16
+ // C++1y
17
+
18
+ #include <utility>
19
+
20
+ namespace std {
21
+ namespace experimental {
22
+ inline namespace fundamentals_v1 {
23
+
24
+ 3.1.2, erased-type placeholder
25
+ struct erased_type { };
26
+
27
+ } // namespace fundamentals_v1
28
+ } // namespace experimental
29
+ } // namespace std
30
+
31
+ */
32
+
33
+ #include <experimental/__config>
34
+ #include <utility>
35
+
36
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
37
+ #pragma GCC system_header
38
+ #endif
39
+
40
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS
41
+
42
+ struct _LIBCUDACXX_TEMPLATE_VIS erased_type { };
43
+
44
+ _LIBCUDACXX_END_NAMESPACE_LFTS
45
+
46
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_UTILITY */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/experimental/vector ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===--------------------------- vector ------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXPERIMENTAL_VECTOR
11
+ #define _LIBCUDACXX_EXPERIMENTAL_VECTOR
12
+ /*
13
+ experimental/vector synopsis
14
+
15
+ // C++1z
16
+ namespace std {
17
+ namespace experimental {
18
+ inline namespace fundamentals_v1 {
19
+ namespace pmr {
20
+
21
+ template <class T>
22
+ using vector = std::vector<T, polymorphic_allocator<T>>;
23
+
24
+ } // namespace pmr
25
+ } // namespace fundamentals_v1
26
+ } // namespace experimental
27
+ } // namespace std
28
+
29
+ */
30
+
31
+ #include <experimental/__config>
32
+ #include <vector>
33
+ #include <experimental/memory_resource>
34
+
35
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
36
+ #pragma GCC system_header
37
+ #endif
38
+
39
+ _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR
40
+
41
+ template <class _ValueT>
42
+ using vector = _CUDA_VSTD::vector<_ValueT, polymorphic_allocator<_ValueT>>;
43
+
44
+ _LIBCUDACXX_END_NAMESPACE_LFTS_PMR
45
+
46
+ #endif /* _LIBCUDACXX_EXPERIMENTAL_VECTOR */
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/ext/__hash ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===------------------------- hash_set ------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_EXT_HASH
11
+ #define _LIBCUDACXX_EXT_HASH
12
+
13
+ #pragma GCC system_header
14
+
15
+ #include <string>
16
+ #include <cstring>
17
+
18
+ namespace __gnu_cxx {
19
+
20
+ template <typename _Tp> struct _LIBCUDACXX_TEMPLATE_VIS hash { };
21
+
22
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<const char*>
23
+ : public std::__unary_function<const char*, size_t>
24
+ {
25
+ _LIBCUDACXX_INLINE_VISIBILITY
26
+ size_t operator()(const char *__c) const _NOEXCEPT
27
+ {
28
+ return std::__do_string_hash(__c, __c + strlen(__c));
29
+ }
30
+ };
31
+
32
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<char *>
33
+ : public std::__unary_function<char*, size_t>
34
+ {
35
+ _LIBCUDACXX_INLINE_VISIBILITY
36
+ size_t operator()(char *__c) const _NOEXCEPT
37
+ {
38
+ return std::__do_string_hash<const char *>(__c, __c + strlen(__c));
39
+ }
40
+ };
41
+
42
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<char>
43
+ : public std::__unary_function<char, size_t>
44
+ {
45
+ _LIBCUDACXX_INLINE_VISIBILITY
46
+ size_t operator()(char __c) const _NOEXCEPT
47
+ {
48
+ return __c;
49
+ }
50
+ };
51
+
52
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<signed char>
53
+ : public std::__unary_function<signed char, size_t>
54
+ {
55
+ _LIBCUDACXX_INLINE_VISIBILITY
56
+ size_t operator()(signed char __c) const _NOEXCEPT
57
+ {
58
+ return __c;
59
+ }
60
+ };
61
+
62
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<unsigned char>
63
+ : public std::__unary_function<unsigned char, size_t>
64
+ {
65
+ _LIBCUDACXX_INLINE_VISIBILITY
66
+ size_t operator()(unsigned char __c) const _NOEXCEPT
67
+ {
68
+ return __c;
69
+ }
70
+ };
71
+
72
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<short>
73
+ : public std::__unary_function<short, size_t>
74
+ {
75
+ _LIBCUDACXX_INLINE_VISIBILITY
76
+ size_t operator()(short __c) const _NOEXCEPT
77
+ {
78
+ return __c;
79
+ }
80
+ };
81
+
82
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<unsigned short>
83
+ : public std::__unary_function<unsigned short, size_t>
84
+ {
85
+ _LIBCUDACXX_INLINE_VISIBILITY
86
+ size_t operator()(unsigned short __c) const _NOEXCEPT
87
+ {
88
+ return __c;
89
+ }
90
+ };
91
+
92
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<int>
93
+ : public std::__unary_function<int, size_t>
94
+ {
95
+ _LIBCUDACXX_INLINE_VISIBILITY
96
+ size_t operator()(int __c) const _NOEXCEPT
97
+ {
98
+ return __c;
99
+ }
100
+ };
101
+
102
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<unsigned int>
103
+ : public std::__unary_function<unsigned int, size_t>
104
+ {
105
+ _LIBCUDACXX_INLINE_VISIBILITY
106
+ size_t operator()(unsigned int __c) const _NOEXCEPT
107
+ {
108
+ return __c;
109
+ }
110
+ };
111
+
112
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<long>
113
+ : public std::__unary_function<long, size_t>
114
+ {
115
+ _LIBCUDACXX_INLINE_VISIBILITY
116
+ size_t operator()(long __c) const _NOEXCEPT
117
+ {
118
+ return __c;
119
+ }
120
+ };
121
+
122
+ template <> struct _LIBCUDACXX_TEMPLATE_VIS hash<unsigned long>
123
+ : public std::__unary_function<unsigned long, size_t>
124
+ {
125
+ _LIBCUDACXX_INLINE_VISIBILITY
126
+ size_t operator()(unsigned long __c) const _NOEXCEPT
127
+ {
128
+ return __c;
129
+ }
130
+ };
131
+ }
132
+
133
+ #endif // _LIBCUDACXX_EXT_HASH
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/ext/hash_map ADDED
@@ -0,0 +1,984 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===-------------------------- hash_map ----------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_HASH_MAP
11
+ #define _LIBCUDACXX_HASH_MAP
12
+
13
+ /*
14
+
15
+ hash_map synopsis
16
+
17
+ namespace __gnu_cxx
18
+ {
19
+
20
+ template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
21
+ class Alloc = allocator<pair<const Key, T>>>
22
+ class hash_map
23
+ {
24
+ public:
25
+ // types
26
+ typedef Key key_type;
27
+ typedef T mapped_type;
28
+ typedef Hash hasher;
29
+ typedef Pred key_equal;
30
+ typedef Alloc allocator_type;
31
+ typedef pair<const key_type, mapped_type> value_type;
32
+ typedef value_type& reference;
33
+ typedef const value_type& const_reference;
34
+ typedef typename allocator_traits<allocator_type>::pointer pointer;
35
+ typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
36
+ typedef typename allocator_traits<allocator_type>::size_type size_type;
37
+ typedef typename allocator_traits<allocator_type>::difference_type difference_type;
38
+
39
+ typedef /unspecified/ iterator;
40
+ typedef /unspecified/ const_iterator;
41
+
42
+ hash_map();
43
+ explicit hash_map(size_type n, const hasher& hf = hasher(),
44
+ const key_equal& eql = key_equal(),
45
+ const allocator_type& a = allocator_type());
46
+ template <class InputIterator>
47
+ hash_map(InputIterator f, InputIterator l);
48
+ template <class InputIterator>
49
+ hash_map(InputIterator f, InputIterator l,
50
+ size_type n, const hasher& hf = hasher(),
51
+ const key_equal& eql = key_equal(),
52
+ const allocator_type& a = allocator_type());
53
+ hash_map(const hash_map&);
54
+ ~hash_map();
55
+ hash_map& operator=(const hash_map&);
56
+
57
+ allocator_type get_allocator() const;
58
+
59
+ bool empty() const;
60
+ size_type size() const;
61
+ size_type max_size() const;
62
+
63
+ iterator begin();
64
+ iterator end();
65
+ const_iterator begin() const;
66
+ const_iterator end() const;
67
+
68
+ pair<iterator, bool> insert(const value_type& obj);
69
+ template <class InputIterator>
70
+ void insert(InputIterator first, InputIterator last);
71
+
72
+ void erase(const_iterator position);
73
+ size_type erase(const key_type& k);
74
+ void erase(const_iterator first, const_iterator last);
75
+ void clear();
76
+
77
+ void swap(hash_map&);
78
+
79
+ hasher hash_funct() const;
80
+ key_equal key_eq() const;
81
+
82
+ iterator find(const key_type& k);
83
+ const_iterator find(const key_type& k) const;
84
+ size_type count(const key_type& k) const;
85
+ pair<iterator, iterator> equal_range(const key_type& k);
86
+ pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
87
+
88
+ mapped_type& operator[](const key_type& k);
89
+
90
+ size_type bucket_count() const;
91
+ size_type max_bucket_count() const;
92
+
93
+ size_type elems_in_bucket(size_type n) const;
94
+
95
+ void resize(size_type n);
96
+ };
97
+
98
+ template <class Key, class T, class Hash, class Pred, class Alloc>
99
+ void swap(hash_map<Key, T, Hash, Pred, Alloc>& x,
100
+ hash_map<Key, T, Hash, Pred, Alloc>& y);
101
+
102
+ template <class Key, class T, class Hash, class Pred, class Alloc>
103
+ bool
104
+ operator==(const hash_map<Key, T, Hash, Pred, Alloc>& x,
105
+ const hash_map<Key, T, Hash, Pred, Alloc>& y);
106
+
107
+ template <class Key, class T, class Hash, class Pred, class Alloc>
108
+ bool
109
+ operator!=(const hash_map<Key, T, Hash, Pred, Alloc>& x,
110
+ const hash_map<Key, T, Hash, Pred, Alloc>& y);
111
+
112
+ template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
113
+ class Alloc = allocator<pair<const Key, T>>>
114
+ class hash_multimap
115
+ {
116
+ public:
117
+ // types
118
+ typedef Key key_type;
119
+ typedef T mapped_type;
120
+ typedef Hash hasher;
121
+ typedef Pred key_equal;
122
+ typedef Alloc allocator_type;
123
+ typedef pair<const key_type, mapped_type> value_type;
124
+ typedef value_type& reference;
125
+ typedef const value_type& const_reference;
126
+ typedef typename allocator_traits<allocator_type>::pointer pointer;
127
+ typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
128
+ typedef typename allocator_traits<allocator_type>::size_type size_type;
129
+ typedef typename allocator_traits<allocator_type>::difference_type difference_type;
130
+
131
+ typedef /unspecified/ iterator;
132
+ typedef /unspecified/ const_iterator;
133
+
134
+ explicit hash_multimap(size_type n = 193, const hasher& hf = hasher(),
135
+ const key_equal& eql = key_equal(),
136
+ const allocator_type& a = allocator_type());
137
+ template <class InputIterator>
138
+ hash_multimap(InputIterator f, InputIterator l,
139
+ size_type n = 193, const hasher& hf = hasher(),
140
+ const key_equal& eql = key_equal(),
141
+ const allocator_type& a = allocator_type());
142
+ explicit hash_multimap(const allocator_type&);
143
+ hash_multimap(const hash_multimap&);
144
+ ~hash_multimap();
145
+ hash_multimap& operator=(const hash_multimap&);
146
+
147
+ allocator_type get_allocator() const;
148
+
149
+ bool empty() const;
150
+ size_type size() const;
151
+ size_type max_size() const;
152
+
153
+ iterator begin();
154
+ iterator end();
155
+ const_iterator begin() const;
156
+ const_iterator end() const;
157
+
158
+ iterator insert(const value_type& obj);
159
+ template <class InputIterator>
160
+ void insert(InputIterator first, InputIterator last);
161
+
162
+ void erase(const_iterator position);
163
+ size_type erase(const key_type& k);
164
+ void erase(const_iterator first, const_iterator last);
165
+ void clear();
166
+
167
+ void swap(hash_multimap&);
168
+
169
+ hasher hash_funct() const;
170
+ key_equal key_eq() const;
171
+
172
+ iterator find(const key_type& k);
173
+ const_iterator find(const key_type& k) const;
174
+ size_type count(const key_type& k) const;
175
+ pair<iterator, iterator> equal_range(const key_type& k);
176
+ pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
177
+
178
+ size_type bucket_count() const;
179
+ size_type max_bucket_count() const;
180
+
181
+ size_type elems_in_bucket(size_type n) const;
182
+
183
+ void resize(size_type n);
184
+ };
185
+
186
+ template <class Key, class T, class Hash, class Pred, class Alloc>
187
+ void swap(hash_multimap<Key, T, Hash, Pred, Alloc>& x,
188
+ hash_multimap<Key, T, Hash, Pred, Alloc>& y);
189
+
190
+ template <class Key, class T, class Hash, class Pred, class Alloc>
191
+ bool
192
+ operator==(const hash_multimap<Key, T, Hash, Pred, Alloc>& x,
193
+ const hash_multimap<Key, T, Hash, Pred, Alloc>& y);
194
+
195
+ template <class Key, class T, class Hash, class Pred, class Alloc>
196
+ bool
197
+ operator!=(const hash_multimap<Key, T, Hash, Pred, Alloc>& x,
198
+ const hash_multimap<Key, T, Hash, Pred, Alloc>& y);
199
+
200
+ } // __gnu_cxx
201
+
202
+ */
203
+
204
+ #include <__config>
205
+ #include <__hash_table>
206
+ #include <functional>
207
+ #include <stdexcept>
208
+ #include <type_traits>
209
+ #include <ext/__hash>
210
+
211
+ #if __DEPRECATED
212
+ #if defined(_LIBCUDACXX_WARNING)
213
+ _LIBCUDACXX_WARNING("Use of the header <ext/hash_map> is deprecated. Migrate to <unordered_map>")
214
+ #else
215
+ # warning Use of the header <ext/hash_map> is deprecated. Migrate to <unordered_map>
216
+ #endif
217
+ #endif
218
+
219
+ #if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER)
220
+ #pragma GCC system_header
221
+ #endif
222
+
223
+ namespace __gnu_cxx {
224
+
225
+ template <class _Tp, class _Hash,
226
+ bool = std::is_empty<_Hash>::value && !std::__libcpp_is_final<_Hash>::value
227
+ >
228
+ class __hash_map_hasher
229
+ : private _Hash
230
+ {
231
+ public:
232
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_hasher() : _Hash() {}
233
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_hasher(const _Hash& __h) : _Hash(__h) {}
234
+ _LIBCUDACXX_INLINE_VISIBILITY const _Hash& hash_function() const {return *this;}
235
+ _LIBCUDACXX_INLINE_VISIBILITY
236
+ size_t operator()(const _Tp& __x) const
237
+ {return static_cast<const _Hash&>(*this)(__x.first);}
238
+ _LIBCUDACXX_INLINE_VISIBILITY
239
+ size_t operator()(const typename _Tp::first_type& __x) const
240
+ {return static_cast<const _Hash&>(*this)(__x);}
241
+ };
242
+
243
+ template <class _Tp, class _Hash>
244
+ class __hash_map_hasher<_Tp, _Hash, false>
245
+ {
246
+ _Hash __hash_;
247
+ public:
248
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_hasher() : __hash_() {}
249
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_hasher(const _Hash& __h) : __hash_(__h) {}
250
+ _LIBCUDACXX_INLINE_VISIBILITY const _Hash& hash_function() const {return __hash_;}
251
+ _LIBCUDACXX_INLINE_VISIBILITY
252
+ size_t operator()(const _Tp& __x) const
253
+ {return __hash_(__x.first);}
254
+ _LIBCUDACXX_INLINE_VISIBILITY
255
+ size_t operator()(const typename _Tp::first_type& __x) const
256
+ {return __hash_(__x);}
257
+ };
258
+
259
+ template <class _Tp, class _Pred,
260
+ bool = std::is_empty<_Pred>::value && !std::__libcpp_is_final<_Pred>::value
261
+ >
262
+ class __hash_map_equal
263
+ : private _Pred
264
+ {
265
+ public:
266
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_equal() : _Pred() {}
267
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_equal(const _Pred& __p) : _Pred(__p) {}
268
+ _LIBCUDACXX_INLINE_VISIBILITY const _Pred& key_eq() const {return *this;}
269
+ _LIBCUDACXX_INLINE_VISIBILITY
270
+ bool operator()(const _Tp& __x, const _Tp& __y) const
271
+ {return static_cast<const _Pred&>(*this)(__x.first, __y.first);}
272
+ _LIBCUDACXX_INLINE_VISIBILITY
273
+ bool operator()(const typename _Tp::first_type& __x, const _Tp& __y) const
274
+ {return static_cast<const _Pred&>(*this)(__x, __y.first);}
275
+ _LIBCUDACXX_INLINE_VISIBILITY
276
+ bool operator()(const _Tp& __x, const typename _Tp::first_type& __y) const
277
+ {return static_cast<const _Pred&>(*this)(__x.first, __y);}
278
+ _LIBCUDACXX_INLINE_VISIBILITY
279
+ bool operator()(const typename _Tp::first_type& __x,
280
+ const typename _Tp::first_type& __y) const
281
+ {return static_cast<const _Pred&>(*this)(__x, __y);}
282
+ };
283
+
284
+ template <class _Tp, class _Pred>
285
+ class __hash_map_equal<_Tp, _Pred, false>
286
+ {
287
+ _Pred __pred_;
288
+ public:
289
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_equal() : __pred_() {}
290
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_equal(const _Pred& __p) : __pred_(__p) {}
291
+ _LIBCUDACXX_INLINE_VISIBILITY const _Pred& key_eq() const {return __pred_;}
292
+ _LIBCUDACXX_INLINE_VISIBILITY
293
+ bool operator()(const _Tp& __x, const _Tp& __y) const
294
+ {return __pred_(__x.first, __y.first);}
295
+ _LIBCUDACXX_INLINE_VISIBILITY
296
+ bool operator()(const typename _Tp::first_type& __x, const _Tp& __y) const
297
+ {return __pred_(__x, __y.first);}
298
+ _LIBCUDACXX_INLINE_VISIBILITY
299
+ bool operator()(const _Tp& __x, const typename _Tp::first_type& __y) const
300
+ {return __pred_(__x.first, __y);}
301
+ _LIBCUDACXX_INLINE_VISIBILITY
302
+ bool operator()(const typename _Tp::first_type& __x,
303
+ const typename _Tp::first_type& __y) const
304
+ {return __pred_(__x, __y);}
305
+ };
306
+
307
+ template <class _Alloc>
308
+ class __hash_map_node_destructor
309
+ {
310
+ typedef _Alloc allocator_type;
311
+ typedef std::allocator_traits<allocator_type> __alloc_traits;
312
+ typedef typename __alloc_traits::value_type::__node_value_type value_type;
313
+ public:
314
+ typedef typename __alloc_traits::pointer pointer;
315
+ private:
316
+ typedef typename value_type::first_type first_type;
317
+ typedef typename value_type::second_type second_type;
318
+
319
+ allocator_type& __na_;
320
+
321
+ public:
322
+ bool __first_constructed;
323
+ bool __second_constructed;
324
+
325
+ __hash_map_node_destructor(__hash_map_node_destructor const&) = default;
326
+ __hash_map_node_destructor& operator=(const __hash_map_node_destructor&) = delete;
327
+
328
+ _LIBCUDACXX_INLINE_VISIBILITY
329
+ explicit __hash_map_node_destructor(allocator_type& __na)
330
+ : __na_(__na),
331
+ __first_constructed(false),
332
+ __second_constructed(false)
333
+ {}
334
+
335
+ #ifndef _LIBCUDACXX_CXX03_LANG
336
+ _LIBCUDACXX_INLINE_VISIBILITY
337
+ __hash_map_node_destructor(std::__hash_node_destructor<allocator_type>&& __x)
338
+ : __na_(__x.__na_),
339
+ __first_constructed(__x.__value_constructed),
340
+ __second_constructed(__x.__value_constructed)
341
+ {
342
+ __x.__value_constructed = false;
343
+ }
344
+ #else // _LIBCUDACXX_CXX03_LANG
345
+ _LIBCUDACXX_INLINE_VISIBILITY
346
+ __hash_map_node_destructor(const std::__hash_node_destructor<allocator_type>& __x)
347
+ : __na_(__x.__na_),
348
+ __first_constructed(__x.__value_constructed),
349
+ __second_constructed(__x.__value_constructed)
350
+ {
351
+ const_cast<bool&>(__x.__value_constructed) = false;
352
+ }
353
+ #endif // _LIBCUDACXX_CXX03_LANG
354
+
355
+ _LIBCUDACXX_INLINE_VISIBILITY
356
+ void operator()(pointer __p)
357
+ {
358
+ if (__second_constructed)
359
+ __alloc_traits::destroy(__na_, _CUDA_VSTD::addressof(__p->__value_.second));
360
+ if (__first_constructed)
361
+ __alloc_traits::destroy(__na_, _CUDA_VSTD::addressof(__p->__value_.first));
362
+ if (__p)
363
+ __alloc_traits::deallocate(__na_, __p, 1);
364
+ }
365
+ };
366
+
367
+ template <class _HashIterator>
368
+ class _LIBCUDACXX_TEMPLATE_VIS __hash_map_iterator
369
+ {
370
+ _HashIterator __i_;
371
+
372
+ typedef const typename _HashIterator::value_type::first_type key_type;
373
+ typedef typename _HashIterator::value_type::second_type mapped_type;
374
+ public:
375
+ typedef std::forward_iterator_tag iterator_category;
376
+ typedef std::pair<key_type, mapped_type> value_type;
377
+ typedef typename _HashIterator::difference_type difference_type;
378
+ typedef value_type& reference;
379
+ typedef typename std::__rebind_pointer<typename _HashIterator::pointer, value_type>::type
380
+ pointer;
381
+
382
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_iterator() {}
383
+
384
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_iterator(_HashIterator __i) : __i_(__i) {}
385
+
386
+ _LIBCUDACXX_INLINE_VISIBILITY reference operator*() const {return *operator->();}
387
+ _LIBCUDACXX_INLINE_VISIBILITY pointer operator->() const {return (pointer)__i_.operator->();}
388
+
389
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_iterator& operator++() {++__i_; return *this;}
390
+ _LIBCUDACXX_INLINE_VISIBILITY
391
+ __hash_map_iterator operator++(int)
392
+ {
393
+ __hash_map_iterator __t(*this);
394
+ ++(*this);
395
+ return __t;
396
+ }
397
+
398
+ friend _LIBCUDACXX_INLINE_VISIBILITY
399
+ bool operator==(const __hash_map_iterator& __x, const __hash_map_iterator& __y)
400
+ {return __x.__i_ == __y.__i_;}
401
+ friend _LIBCUDACXX_INLINE_VISIBILITY
402
+ bool operator!=(const __hash_map_iterator& __x, const __hash_map_iterator& __y)
403
+ {return __x.__i_ != __y.__i_;}
404
+
405
+ template <class, class, class, class, class> friend class _LIBCUDACXX_TEMPLATE_VIS hash_map;
406
+ template <class, class, class, class, class> friend class _LIBCUDACXX_TEMPLATE_VIS hash_multimap;
407
+ template <class> friend class _LIBCUDACXX_TEMPLATE_VIS __hash_const_iterator;
408
+ template <class> friend class _LIBCUDACXX_TEMPLATE_VIS __hash_const_local_iterator;
409
+ template <class> friend class _LIBCUDACXX_TEMPLATE_VIS __hash_map_const_iterator;
410
+ };
411
+
412
+ template <class _HashIterator>
413
+ class _LIBCUDACXX_TEMPLATE_VIS __hash_map_const_iterator
414
+ {
415
+ _HashIterator __i_;
416
+
417
+ typedef const typename _HashIterator::value_type::first_type key_type;
418
+ typedef typename _HashIterator::value_type::second_type mapped_type;
419
+ public:
420
+ typedef std::forward_iterator_tag iterator_category;
421
+ typedef std::pair<key_type, mapped_type> value_type;
422
+ typedef typename _HashIterator::difference_type difference_type;
423
+ typedef const value_type& reference;
424
+ typedef typename std::__rebind_pointer<typename _HashIterator::pointer, const value_type>::type
425
+ pointer;
426
+
427
+ _LIBCUDACXX_INLINE_VISIBILITY __hash_map_const_iterator() {}
428
+
429
+ _LIBCUDACXX_INLINE_VISIBILITY
430
+ __hash_map_const_iterator(_HashIterator __i) : __i_(__i) {}
431
+ _LIBCUDACXX_INLINE_VISIBILITY
432
+ __hash_map_const_iterator(
433
+ __hash_map_iterator<typename _HashIterator::__non_const_iterator> __i)
434
+ : __i_(__i.__i_) {}
435
+
436
+ _LIBCUDACXX_INLINE_VISIBILITY
437
+ reference operator*() const {return *operator->();}
438
+ _LIBCUDACXX_INLINE_VISIBILITY
439
+ pointer operator->() const {return (pointer)__i_.operator->();}
440
+
441
+ _LIBCUDACXX_INLINE_VISIBILITY
442
+ __hash_map_const_iterator& operator++() {++__i_; return *this;}
443
+ _LIBCUDACXX_INLINE_VISIBILITY
444
+ __hash_map_const_iterator operator++(int)
445
+ {
446
+ __hash_map_const_iterator __t(*this);
447
+ ++(*this);
448
+ return __t;
449
+ }
450
+
451
+ friend _LIBCUDACXX_INLINE_VISIBILITY
452
+ bool operator==(const __hash_map_const_iterator& __x, const __hash_map_const_iterator& __y)
453
+ {return __x.__i_ == __y.__i_;}
454
+ friend _LIBCUDACXX_INLINE_VISIBILITY
455
+ bool operator!=(const __hash_map_const_iterator& __x, const __hash_map_const_iterator& __y)
456
+ {return __x.__i_ != __y.__i_;}
457
+
458
+ template <class, class, class, class, class> friend class _LIBCUDACXX_TEMPLATE_VIS hash_map;
459
+ template <class, class, class, class, class> friend class _LIBCUDACXX_TEMPLATE_VIS hash_multimap;
460
+ template <class> friend class _LIBCUDACXX_TEMPLATE_VIS __hash_const_iterator;
461
+ template <class> friend class _LIBCUDACXX_TEMPLATE_VIS __hash_const_local_iterator;
462
+ };
463
+
464
+ template <class _Key, class _Tp, class _Hash = hash<_Key>, class _Pred = std::equal_to<_Key>,
465
+ class _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
466
+ class _LIBCUDACXX_TEMPLATE_VIS hash_map
467
+ {
468
+ public:
469
+ // types
470
+ typedef _Key key_type;
471
+ typedef _Tp mapped_type;
472
+ typedef _Tp data_type;
473
+ typedef _Hash hasher;
474
+ typedef _Pred key_equal;
475
+ typedef _Alloc allocator_type;
476
+ typedef std::pair<const key_type, mapped_type> value_type;
477
+ typedef value_type& reference;
478
+ typedef const value_type& const_reference;
479
+
480
+ private:
481
+ typedef std::pair<key_type, mapped_type> __value_type;
482
+ typedef __hash_map_hasher<__value_type, hasher> __hasher;
483
+ typedef __hash_map_equal<__value_type, key_equal> __key_equal;
484
+ typedef typename std::__rebind_alloc_helper<
485
+ std::allocator_traits<allocator_type>, __value_type>::type __allocator_type;
486
+
487
+ typedef std::__hash_table<__value_type, __hasher,
488
+ __key_equal, __allocator_type> __table;
489
+
490
+ __table __table_;
491
+
492
+ typedef typename __table::__node_pointer __node_pointer;
493
+ typedef typename __table::__node_const_pointer __node_const_pointer;
494
+ typedef typename __table::__node_traits __node_traits;
495
+ typedef typename __table::__node_allocator __node_allocator;
496
+ typedef typename __table::__node __node;
497
+ typedef __hash_map_node_destructor<__node_allocator> _Dp;
498
+ typedef std::unique_ptr<__node, _Dp> __node_holder;
499
+ typedef std::allocator_traits<allocator_type> __alloc_traits;
500
+ public:
501
+ typedef typename __alloc_traits::pointer pointer;
502
+ typedef typename __alloc_traits::const_pointer const_pointer;
503
+ typedef typename __alloc_traits::size_type size_type;
504
+ typedef typename __alloc_traits::difference_type difference_type;
505
+
506
+ typedef __hash_map_iterator<typename __table::iterator> iterator;
507
+ typedef __hash_map_const_iterator<typename __table::const_iterator> const_iterator;
508
+
509
+ _LIBCUDACXX_INLINE_VISIBILITY hash_map() { }
510
+ explicit hash_map(size_type __n, const hasher& __hf = hasher(),
511
+ const key_equal& __eql = key_equal());
512
+ hash_map(size_type __n, const hasher& __hf,
513
+ const key_equal& __eql,
514
+ const allocator_type& __a);
515
+ template <class _InputIterator>
516
+ hash_map(_InputIterator __first, _InputIterator __last);
517
+ template <class _InputIterator>
518
+ hash_map(_InputIterator __first, _InputIterator __last,
519
+ size_type __n, const hasher& __hf = hasher(),
520
+ const key_equal& __eql = key_equal());
521
+ template <class _InputIterator>
522
+ hash_map(_InputIterator __first, _InputIterator __last,
523
+ size_type __n, const hasher& __hf,
524
+ const key_equal& __eql,
525
+ const allocator_type& __a);
526
+ hash_map(const hash_map& __u);
527
+
528
+ _LIBCUDACXX_INLINE_VISIBILITY
529
+ allocator_type get_allocator() const
530
+ {return allocator_type(__table_.__node_alloc());}
531
+
532
+ _LIBCUDACXX_INLINE_VISIBILITY
533
+ bool empty() const {return __table_.size() == 0;}
534
+ _LIBCUDACXX_INLINE_VISIBILITY
535
+ size_type size() const {return __table_.size();}
536
+ _LIBCUDACXX_INLINE_VISIBILITY
537
+ size_type max_size() const {return __table_.max_size();}
538
+
539
+ _LIBCUDACXX_INLINE_VISIBILITY
540
+ iterator begin() {return __table_.begin();}
541
+ _LIBCUDACXX_INLINE_VISIBILITY
542
+ iterator end() {return __table_.end();}
543
+ _LIBCUDACXX_INLINE_VISIBILITY
544
+ const_iterator begin() const {return __table_.begin();}
545
+ _LIBCUDACXX_INLINE_VISIBILITY
546
+ const_iterator end() const {return __table_.end();}
547
+
548
+ _LIBCUDACXX_INLINE_VISIBILITY
549
+ std::pair<iterator, bool> insert(const value_type& __x)
550
+ {return __table_.__insert_unique(__x);}
551
+ _LIBCUDACXX_INLINE_VISIBILITY
552
+ iterator insert(const_iterator, const value_type& __x) {return insert(__x).first;}
553
+ template <class _InputIterator>
554
+ _LIBCUDACXX_INLINE_VISIBILITY
555
+ void insert(_InputIterator __first, _InputIterator __last);
556
+
557
+ _LIBCUDACXX_INLINE_VISIBILITY
558
+ void erase(const_iterator __p) {__table_.erase(__p.__i_);}
559
+ _LIBCUDACXX_INLINE_VISIBILITY
560
+ size_type erase(const key_type& __k) {return __table_.__erase_unique(__k);}
561
+ _LIBCUDACXX_INLINE_VISIBILITY
562
+ void erase(const_iterator __first, const_iterator __last)
563
+ {__table_.erase(__first.__i_, __last.__i_);}
564
+ _LIBCUDACXX_INLINE_VISIBILITY
565
+ void clear() {__table_.clear();}
566
+
567
+ _LIBCUDACXX_INLINE_VISIBILITY
568
+ void swap(hash_map& __u) {__table_.swap(__u.__table_);}
569
+
570
+ _LIBCUDACXX_INLINE_VISIBILITY
571
+ hasher hash_funct() const
572
+ {return __table_.hash_function().hash_function();}
573
+ _LIBCUDACXX_INLINE_VISIBILITY
574
+ key_equal key_eq() const
575
+ {return __table_.key_eq().key_eq();}
576
+
577
+ _LIBCUDACXX_INLINE_VISIBILITY
578
+ iterator find(const key_type& __k) {return __table_.find(__k);}
579
+ _LIBCUDACXX_INLINE_VISIBILITY
580
+ const_iterator find(const key_type& __k) const {return __table_.find(__k);}
581
+ _LIBCUDACXX_INLINE_VISIBILITY
582
+ size_type count(const key_type& __k) const {return __table_.__count_unique(__k);}
583
+ _LIBCUDACXX_INLINE_VISIBILITY
584
+ std::pair<iterator, iterator> equal_range(const key_type& __k)
585
+ {return __table_.__equal_range_unique(__k);}
586
+ _LIBCUDACXX_INLINE_VISIBILITY
587
+ std::pair<const_iterator, const_iterator> equal_range(const key_type& __k) const
588
+ {return __table_.__equal_range_unique(__k);}
589
+
590
+ mapped_type& operator[](const key_type& __k);
591
+
592
+ _LIBCUDACXX_INLINE_VISIBILITY
593
+ size_type bucket_count() const {return __table_.bucket_count();}
594
+ _LIBCUDACXX_INLINE_VISIBILITY
595
+ size_type max_bucket_count() const {return __table_.max_bucket_count();}
596
+
597
+ _LIBCUDACXX_INLINE_VISIBILITY
598
+ size_type elems_in_bucket(size_type __n) const
599
+ {return __table_.bucket_size(__n);}
600
+
601
+ _LIBCUDACXX_INLINE_VISIBILITY
602
+ void resize(size_type __n) {__table_.rehash(__n);}
603
+
604
+ private:
605
+ __node_holder __construct_node(const key_type& __k);
606
+ };
607
+
608
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
609
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(
610
+ size_type __n, const hasher& __hf, const key_equal& __eql)
611
+ : __table_(__hf, __eql)
612
+ {
613
+ __table_.rehash(__n);
614
+ }
615
+
616
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
617
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(
618
+ size_type __n, const hasher& __hf, const key_equal& __eql,
619
+ const allocator_type& __a)
620
+ : __table_(__hf, __eql, __a)
621
+ {
622
+ __table_.rehash(__n);
623
+ }
624
+
625
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
626
+ template <class _InputIterator>
627
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(
628
+ _InputIterator __first, _InputIterator __last)
629
+ {
630
+ insert(__first, __last);
631
+ }
632
+
633
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
634
+ template <class _InputIterator>
635
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(
636
+ _InputIterator __first, _InputIterator __last, size_type __n,
637
+ const hasher& __hf, const key_equal& __eql)
638
+ : __table_(__hf, __eql)
639
+ {
640
+ __table_.rehash(__n);
641
+ insert(__first, __last);
642
+ }
643
+
644
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
645
+ template <class _InputIterator>
646
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(
647
+ _InputIterator __first, _InputIterator __last, size_type __n,
648
+ const hasher& __hf, const key_equal& __eql, const allocator_type& __a)
649
+ : __table_(__hf, __eql, __a)
650
+ {
651
+ __table_.rehash(__n);
652
+ insert(__first, __last);
653
+ }
654
+
655
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
656
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(
657
+ const hash_map& __u)
658
+ : __table_(__u.__table_)
659
+ {
660
+ __table_.rehash(__u.bucket_count());
661
+ insert(__u.begin(), __u.end());
662
+ }
663
+
664
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
665
+ typename hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::__node_holder
666
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::__construct_node(const key_type& __k)
667
+ {
668
+ __node_allocator& __na = __table_.__node_alloc();
669
+ __node_holder __h(__node_traits::allocate(__na, 1), _Dp(__na));
670
+ __node_traits::construct(__na, _CUDA_VSTD::addressof(__h->__value_.first), __k);
671
+ __h.get_deleter().__first_constructed = true;
672
+ __node_traits::construct(__na, _CUDA_VSTD::addressof(__h->__value_.second));
673
+ __h.get_deleter().__second_constructed = true;
674
+ return _LIBCUDACXX_EXPLICIT_MOVE(__h); // explicitly moved for C++03
675
+ }
676
+
677
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
678
+ template <class _InputIterator>
679
+ inline
680
+ void
681
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator __first,
682
+ _InputIterator __last)
683
+ {
684
+ for (; __first != __last; ++__first)
685
+ __table_.__insert_unique(*__first);
686
+ }
687
+
688
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
689
+ _Tp&
690
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type& __k)
691
+ {
692
+ iterator __i = find(__k);
693
+ if (__i != end())
694
+ return __i->second;
695
+ __node_holder __h = __construct_node(__k);
696
+ std::pair<iterator, bool> __r = __table_.__node_insert_unique(__h.get());
697
+ __h.release();
698
+ return __r.first->second;
699
+ }
700
+
701
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
702
+ inline _LIBCUDACXX_INLINE_VISIBILITY
703
+ void
704
+ swap(hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
705
+ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y)
706
+ {
707
+ __x.swap(__y);
708
+ }
709
+
710
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
711
+ bool
712
+ operator==(const hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
713
+ const hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y)
714
+ {
715
+ if (__x.size() != __y.size())
716
+ return false;
717
+ typedef typename hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::const_iterator
718
+ const_iterator;
719
+ for (const_iterator __i = __x.begin(), __ex = __x.end(), __ey = __y.end();
720
+ __i != __ex; ++__i)
721
+ {
722
+ const_iterator __j = __y.find(__i->first);
723
+ if (__j == __ey || !(*__i == *__j))
724
+ return false;
725
+ }
726
+ return true;
727
+ }
728
+
729
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
730
+ inline _LIBCUDACXX_INLINE_VISIBILITY
731
+ bool
732
+ operator!=(const hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
733
+ const hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y)
734
+ {
735
+ return !(__x == __y);
736
+ }
737
+
738
+ template <class _Key, class _Tp, class _Hash = hash<_Key>, class _Pred = std::equal_to<_Key>,
739
+ class _Alloc = std::allocator<std::pair<const _Key, _Tp> > >
740
+ class _LIBCUDACXX_TEMPLATE_VIS hash_multimap
741
+ {
742
+ public:
743
+ // types
744
+ typedef _Key key_type;
745
+ typedef _Tp mapped_type;
746
+ typedef _Tp data_type;
747
+ typedef _Hash hasher;
748
+ typedef _Pred key_equal;
749
+ typedef _Alloc allocator_type;
750
+ typedef std::pair<const key_type, mapped_type> value_type;
751
+ typedef value_type& reference;
752
+ typedef const value_type& const_reference;
753
+
754
+ private:
755
+ typedef std::pair<key_type, mapped_type> __value_type;
756
+ typedef __hash_map_hasher<__value_type, hasher> __hasher;
757
+ typedef __hash_map_equal<__value_type, key_equal> __key_equal;
758
+ typedef typename std::__rebind_alloc_helper<std::allocator_traits<allocator_type>, __value_type>::type __allocator_type;
759
+
760
+ typedef std::__hash_table<__value_type, __hasher,
761
+ __key_equal, __allocator_type> __table;
762
+
763
+ __table __table_;
764
+
765
+ typedef typename __table::__node_traits __node_traits;
766
+ typedef typename __table::__node_allocator __node_allocator;
767
+ typedef typename __table::__node __node;
768
+ typedef __hash_map_node_destructor<__node_allocator> _Dp;
769
+ typedef std::unique_ptr<__node, _Dp> __node_holder;
770
+ typedef std::allocator_traits<allocator_type> __alloc_traits;
771
+ public:
772
+ typedef typename __alloc_traits::pointer pointer;
773
+ typedef typename __alloc_traits::const_pointer const_pointer;
774
+ typedef typename __alloc_traits::size_type size_type;
775
+ typedef typename __alloc_traits::difference_type difference_type;
776
+
777
+ typedef __hash_map_iterator<typename __table::iterator> iterator;
778
+ typedef __hash_map_const_iterator<typename __table::const_iterator> const_iterator;
779
+
780
+ _LIBCUDACXX_INLINE_VISIBILITY
781
+ hash_multimap() { }
782
+ explicit hash_multimap(size_type __n, const hasher& __hf = hasher(),
783
+ const key_equal& __eql = key_equal());
784
+ hash_multimap(size_type __n, const hasher& __hf,
785
+ const key_equal& __eql,
786
+ const allocator_type& __a);
787
+ template <class _InputIterator>
788
+ hash_multimap(_InputIterator __first, _InputIterator __last);
789
+ template <class _InputIterator>
790
+ hash_multimap(_InputIterator __first, _InputIterator __last,
791
+ size_type __n, const hasher& __hf = hasher(),
792
+ const key_equal& __eql = key_equal());
793
+ template <class _InputIterator>
794
+ hash_multimap(_InputIterator __first, _InputIterator __last,
795
+ size_type __n, const hasher& __hf,
796
+ const key_equal& __eql,
797
+ const allocator_type& __a);
798
+ hash_multimap(const hash_multimap& __u);
799
+
800
+ _LIBCUDACXX_INLINE_VISIBILITY
801
+ allocator_type get_allocator() const
802
+ {return allocator_type(__table_.__node_alloc());}
803
+
804
+ _LIBCUDACXX_INLINE_VISIBILITY
805
+ bool empty() const {return __table_.size() == 0;}
806
+ _LIBCUDACXX_INLINE_VISIBILITY
807
+ size_type size() const {return __table_.size();}
808
+ _LIBCUDACXX_INLINE_VISIBILITY
809
+ size_type max_size() const {return __table_.max_size();}
810
+
811
+ _LIBCUDACXX_INLINE_VISIBILITY
812
+ iterator begin() {return __table_.begin();}
813
+ _LIBCUDACXX_INLINE_VISIBILITY
814
+ iterator end() {return __table_.end();}
815
+ _LIBCUDACXX_INLINE_VISIBILITY
816
+ const_iterator begin() const {return __table_.begin();}
817
+ _LIBCUDACXX_INLINE_VISIBILITY
818
+ const_iterator end() const {return __table_.end();}
819
+
820
+ _LIBCUDACXX_INLINE_VISIBILITY
821
+ iterator insert(const value_type& __x) {return __table_.__insert_multi(__x);}
822
+ _LIBCUDACXX_INLINE_VISIBILITY
823
+ iterator insert(const_iterator, const value_type& __x) {return insert(__x);}
824
+ template <class _InputIterator>
825
+ _LIBCUDACXX_INLINE_VISIBILITY
826
+ void insert(_InputIterator __first, _InputIterator __last);
827
+
828
+ _LIBCUDACXX_INLINE_VISIBILITY
829
+ void erase(const_iterator __p) {__table_.erase(__p.__i_);}
830
+ _LIBCUDACXX_INLINE_VISIBILITY
831
+ size_type erase(const key_type& __k) {return __table_.__erase_multi(__k);}
832
+ _LIBCUDACXX_INLINE_VISIBILITY
833
+ void erase(const_iterator __first, const_iterator __last)
834
+ {__table_.erase(__first.__i_, __last.__i_);}
835
+ _LIBCUDACXX_INLINE_VISIBILITY
836
+ void clear() {__table_.clear();}
837
+
838
+ _LIBCUDACXX_INLINE_VISIBILITY
839
+ void swap(hash_multimap& __u) {__table_.swap(__u.__table_);}
840
+
841
+ _LIBCUDACXX_INLINE_VISIBILITY
842
+ hasher hash_funct() const
843
+ {return __table_.hash_function().hash_function();}
844
+ _LIBCUDACXX_INLINE_VISIBILITY
845
+ key_equal key_eq() const
846
+ {return __table_.key_eq().key_eq();}
847
+
848
+ _LIBCUDACXX_INLINE_VISIBILITY
849
+ iterator find(const key_type& __k) {return __table_.find(__k);}
850
+ _LIBCUDACXX_INLINE_VISIBILITY
851
+ const_iterator find(const key_type& __k) const {return __table_.find(__k);}
852
+ _LIBCUDACXX_INLINE_VISIBILITY
853
+ size_type count(const key_type& __k) const {return __table_.__count_multi(__k);}
854
+ _LIBCUDACXX_INLINE_VISIBILITY
855
+ std::pair<iterator, iterator> equal_range(const key_type& __k)
856
+ {return __table_.__equal_range_multi(__k);}
857
+ _LIBCUDACXX_INLINE_VISIBILITY
858
+ std::pair<const_iterator, const_iterator> equal_range(const key_type& __k) const
859
+ {return __table_.__equal_range_multi(__k);}
860
+
861
+ _LIBCUDACXX_INLINE_VISIBILITY
862
+ size_type bucket_count() const {return __table_.bucket_count();}
863
+ _LIBCUDACXX_INLINE_VISIBILITY
864
+ size_type max_bucket_count() const {return __table_.max_bucket_count();}
865
+
866
+ _LIBCUDACXX_INLINE_VISIBILITY
867
+ size_type elems_in_bucket(size_type __n) const
868
+ {return __table_.bucket_size(__n);}
869
+
870
+ _LIBCUDACXX_INLINE_VISIBILITY
871
+ void resize(size_type __n) {__table_.rehash(__n);}
872
+ };
873
+
874
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
875
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(
876
+ size_type __n, const hasher& __hf, const key_equal& __eql)
877
+ : __table_(__hf, __eql)
878
+ {
879
+ __table_.rehash(__n);
880
+ }
881
+
882
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
883
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(
884
+ size_type __n, const hasher& __hf, const key_equal& __eql,
885
+ const allocator_type& __a)
886
+ : __table_(__hf, __eql, __a)
887
+ {
888
+ __table_.rehash(__n);
889
+ }
890
+
891
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
892
+ template <class _InputIterator>
893
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(
894
+ _InputIterator __first, _InputIterator __last)
895
+ {
896
+ insert(__first, __last);
897
+ }
898
+
899
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
900
+ template <class _InputIterator>
901
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(
902
+ _InputIterator __first, _InputIterator __last, size_type __n,
903
+ const hasher& __hf, const key_equal& __eql)
904
+ : __table_(__hf, __eql)
905
+ {
906
+ __table_.rehash(__n);
907
+ insert(__first, __last);
908
+ }
909
+
910
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
911
+ template <class _InputIterator>
912
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(
913
+ _InputIterator __first, _InputIterator __last, size_type __n,
914
+ const hasher& __hf, const key_equal& __eql, const allocator_type& __a)
915
+ : __table_(__hf, __eql, __a)
916
+ {
917
+ __table_.rehash(__n);
918
+ insert(__first, __last);
919
+ }
920
+
921
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
922
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(
923
+ const hash_multimap& __u)
924
+ : __table_(__u.__table_)
925
+ {
926
+ __table_.rehash(__u.bucket_count());
927
+ insert(__u.begin(), __u.end());
928
+ }
929
+
930
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
931
+ template <class _InputIterator>
932
+ inline
933
+ void
934
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator __first,
935
+ _InputIterator __last)
936
+ {
937
+ for (; __first != __last; ++__first)
938
+ __table_.__insert_multi(*__first);
939
+ }
940
+
941
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
942
+ inline _LIBCUDACXX_INLINE_VISIBILITY
943
+ void
944
+ swap(hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
945
+ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y)
946
+ {
947
+ __x.swap(__y);
948
+ }
949
+
950
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
951
+ bool
952
+ operator==(const hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
953
+ const hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y)
954
+ {
955
+ if (__x.size() != __y.size())
956
+ return false;
957
+ typedef typename hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::const_iterator
958
+ const_iterator;
959
+ typedef std::pair<const_iterator, const_iterator> _EqRng;
960
+ for (const_iterator __i = __x.begin(), __ex = __x.end(); __i != __ex;)
961
+ {
962
+ _EqRng __xeq = __x.equal_range(__i->first);
963
+ _EqRng __yeq = __y.equal_range(__i->first);
964
+ if (_CUDA_VSTD::distance(__xeq.first, __xeq.second) !=
965
+ _CUDA_VSTD::distance(__yeq.first, __yeq.second) ||
966
+ !_CUDA_VSTD::is_permutation(__xeq.first, __xeq.second, __yeq.first))
967
+ return false;
968
+ __i = __xeq.second;
969
+ }
970
+ return true;
971
+ }
972
+
973
+ template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
974
+ inline _LIBCUDACXX_INLINE_VISIBILITY
975
+ bool
976
+ operator!=(const hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
977
+ const hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y)
978
+ {
979
+ return !(__x == __y);
980
+ }
981
+
982
+ } // __gnu_cxx
983
+
984
+ #endif // _LIBCUDACXX_HASH_MAP
miniconda3/envs/active_proaction/lib/python3.10/site-packages/tensorflow/include/third_party/gpus/cuda/include/cuda/std/detail/libcxx/include/ext/hash_set ADDED
@@ -0,0 +1,659 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // -*- C++ -*-
2
+ //===------------------------- hash_set ------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCUDACXX_HASH_SET
11
+ #define _LIBCUDACXX_HASH_SET
12
+
13
+ /*
14
+
15
+ hash_set synopsis
16
+
17
+ namespace __gnu_cxx
18
+ {
19
+
20
+ template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
21
+ class Alloc = allocator<Value>>
22
+ class hash_set
23
+ {
24
+ public:
25
+ // types
26
+ typedef Value key_type;
27
+ typedef key_type value_type;
28
+ typedef Hash hasher;
29
+ typedef Pred key_equal;
30
+ typedef Alloc allocator_type;
31
+ typedef value_type& reference;
32
+ typedef const value_type& const_reference;
33
+ typedef typename allocator_traits<allocator_type>::pointer pointer;
34
+ typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
35
+ typedef typename allocator_traits<allocator_type>::size_type size_type;
36
+ typedef typename allocator_traits<allocator_type>::difference_type difference_type;
37
+
38
+ typedef /unspecified/ iterator;
39
+ typedef /unspecified/ const_iterator;
40
+
41
+ explicit hash_set(size_type n = 193, const hasher& hf = hasher(),
42
+ const key_equal& eql = key_equal(),
43
+ const allocator_type& a = allocator_type());
44
+ template <class InputIterator>
45
+ hash_set(InputIterator f, InputIterator l,
46
+ size_type n = 193, const hasher& hf = hasher(),
47
+ const key_equal& eql = key_equal(),
48
+ const allocator_type& a = allocator_type());
49
+ hash_set(const hash_set&);
50
+ ~hash_set();
51
+ hash_set& operator=(const hash_set&);
52
+
53
+ allocator_type get_allocator() const;
54
+
55
+ bool empty() const;
56
+ size_type size() const;
57
+ size_type max_size() const;
58
+
59
+ iterator begin();
60
+ iterator end();
61
+ const_iterator begin() const;
62
+ const_iterator end() const;
63
+
64
+ pair<iterator, bool> insert(const value_type& obj);
65
+ template <class InputIterator>
66
+ void insert(InputIterator first, InputIterator last);
67
+
68
+ void erase(const_iterator position);
69
+ size_type erase(const key_type& k);
70
+ void erase(const_iterator first, const_iterator last);
71
+ void clear();
72
+
73
+ void swap(hash_set&);
74
+
75
+ hasher hash_funct() const;
76
+ key_equal key_eq() const;
77
+
78
+ iterator find(const key_type& k);
79
+ const_iterator find(const key_type& k) const;
80
+ size_type count(const key_type& k) const;
81
+ pair<iterator, iterator> equal_range(const key_type& k);
82
+ pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
83
+
84
+ size_type bucket_count() const;
85
+ size_type max_bucket_count() const;
86
+
87
+ size_type elems_in_bucket(size_type n) const;
88
+
89
+ void resize(size_type n);
90
+ };
91
+
92
+ template <class Value, class Hash, class Pred, class Alloc>
93
+ void swap(hash_set<Value, Hash, Pred, Alloc>& x,
94
+ hash_set<Value, Hash, Pred, Alloc>& y);
95
+
96
+ template <class Value, class Hash, class Pred, class Alloc>
97
+ bool
98
+ operator==(const hash_set<Value, Hash, Pred, Alloc>& x,
99
+ const hash_set<Value, Hash, Pred, Alloc>& y);
100
+
101
+ template <class Value, class Hash, class Pred, class Alloc>
102
+ bool
103
+ operator!=(const hash_set<Value, Hash, Pred, Alloc>& x,
104
+ const hash_set<Value, Hash, Pred, Alloc>& y);
105
+
106
+ template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
107
+ class Alloc = allocator<Value>>
108
+ class hash_multiset
109
+ {
110
+ public:
111
+ // types
112
+ typedef Value key_type;
113
+ typedef key_type value_type;
114
+ typedef Hash hasher;
115
+ typedef Pred key_equal;
116
+ typedef Alloc allocator_type;
117
+ typedef value_type& reference;
118
+ typedef const value_type& const_reference;
119
+ typedef typename allocator_traits<allocator_type>::pointer pointer;
120
+ typedef typename allocator_traits<allocator_type>::const_pointer const_pointer;
121
+ typedef typename allocator_traits<allocator_type>::size_type size_type;
122
+ typedef typename allocator_traits<allocator_type>::difference_type difference_type;
123
+
124
+ typedef /unspecified/ iterator;
125
+ typedef /unspecified/ const_iterator;
126
+
127
+ explicit hash_multiset(size_type n = 193, const hasher& hf = hasher(),
128
+ const key_equal& eql = key_equal(),
129
+ const allocator_type& a = allocator_type());
130
+ template <class InputIterator>
131
+ hash_multiset(InputIterator f, InputIterator l,
132
+ size_type n = 193, const hasher& hf = hasher(),
133
+ const key_equal& eql = key_equal(),
134
+ const allocator_type& a = allocator_type());
135
+ hash_multiset(const hash_multiset&);
136
+ ~hash_multiset();
137
+ hash_multiset& operator=(const hash_multiset&);
138
+
139
+ allocator_type get_allocator() const;
140
+
141
+ bool empty() const;
142
+ size_type size() const;
143
+ size_type max_size() const;
144
+
145
+ iterator begin();
146
+ iterator end();
147
+ const_iterator begin() const;
148
+ const_iterator end() const;
149
+
150
+ iterator insert(const value_type& obj);
151
+ template <class InputIterator>
152
+ void insert(InputIterator first, InputIterator last);
153
+
154
+ void erase(const_iterator position);
155
+ size_type erase(const key_type& k);
156
+ void erase(const_iterator first, const_iterator last);
157
+ void clear();
158
+
159
+ void swap(hash_multiset&);
160
+
161
+ hasher hash_funct() const;
162
+ key_equal key_eq() const;
163
+
164
+ iterator find(const key_type& k);
165
+ const_iterator find(const key_type& k) const;
166
+ size_type count(const key_type& k) const;
167
+ pair<iterator, iterator> equal_range(const key_type& k);
168
+ pair<const_iterator, const_iterator> equal_range(const key_type& k) const;
169
+
170
+ size_type bucket_count() const;
171
+ size_type max_bucket_count() const;
172
+
173
+ size_type elems_in_bucket(size_type n) const;
174
+
175
+ void resize(size_type n);
176
+ };
177
+
178
+ template <class Value, class Hash, class Pred, class Alloc>
179
+ void swap(hash_multiset<Value, Hash, Pred, Alloc>& x,
180
+ hash_multiset<Value, Hash, Pred, Alloc>& y);
181
+
182
+ template <class Value, class Hash, class Pred, class Alloc>
183
+ bool
184
+ operator==(const hash_multiset<Value, Hash, Pred, Alloc>& x,
185
+ const hash_multiset<Value, Hash, Pred, Alloc>& y);
186
+
187
+ template <class Value, class Hash, class Pred, class Alloc>
188
+ bool
189
+ operator!=(const hash_multiset<Value, Hash, Pred, Alloc>& x,
190
+ const hash_multiset<Value, Hash, Pred, Alloc>& y);
191
+ } // __gnu_cxx
192
+
193
+ */
194
+
195
+ #include <__config>
196
+ #include <__hash_table>
197
+ #include <functional>
198
+ #include <ext/__hash>
199
+
200
+ #if __DEPRECATED
201
+ #if defined(_LIBCUDACXX_WARNING)
202
+ _LIBCUDACXX_WARNING("Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set>")
203
+ #else
204
+ # warning Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set>
205
+ #endif
206
+ #endif
207
+
208
+ namespace __gnu_cxx {
209
+
210
+
211
+ template <class _Value, class _Hash = hash<_Value>, class _Pred = std::equal_to<_Value>,
212
+ class _Alloc = std::allocator<_Value> >
213
+ class _LIBCUDACXX_TEMPLATE_VIS hash_set
214
+ {
215
+ public:
216
+ // types
217
+ typedef _Value key_type;
218
+ typedef key_type value_type;
219
+ typedef _Hash hasher;
220
+ typedef _Pred key_equal;
221
+ typedef _Alloc allocator_type;
222
+ typedef value_type& reference;
223
+ typedef const value_type& const_reference;
224
+
225
+ private:
226
+ typedef std::__hash_table<value_type, hasher, key_equal, allocator_type> __table;
227
+
228
+ __table __table_;
229
+
230
+ public:
231
+ typedef typename __table::pointer pointer;
232
+ typedef typename __table::const_pointer const_pointer;
233
+ typedef typename __table::size_type size_type;
234
+ typedef typename __table::difference_type difference_type;
235
+
236
+ typedef typename __table::const_iterator iterator;
237
+ typedef typename __table::const_iterator const_iterator;
238
+
239
+ _LIBCUDACXX_INLINE_VISIBILITY
240
+ hash_set() { }
241
+ explicit hash_set(size_type __n, const hasher& __hf = hasher(),
242
+ const key_equal& __eql = key_equal());
243
+ hash_set(size_type __n, const hasher& __hf, const key_equal& __eql,
244
+ const allocator_type& __a);
245
+ template <class _InputIterator>
246
+ hash_set(_InputIterator __first, _InputIterator __last);
247
+ template <class _InputIterator>
248
+ hash_set(_InputIterator __first, _InputIterator __last,
249
+ size_type __n, const hasher& __hf = hasher(),
250
+ const key_equal& __eql = key_equal());
251
+ template <class _InputIterator>
252
+ hash_set(_InputIterator __first, _InputIterator __last,
253
+ size_type __n, const hasher& __hf, const key_equal& __eql,
254
+ const allocator_type& __a);
255
+ hash_set(const hash_set& __u);
256
+
257
+ _LIBCUDACXX_INLINE_VISIBILITY
258
+ allocator_type get_allocator() const
259
+ {return allocator_type(__table_.__node_alloc());}
260
+
261
+ _LIBCUDACXX_INLINE_VISIBILITY
262
+ bool empty() const {return __table_.size() == 0;}
263
+ _LIBCUDACXX_INLINE_VISIBILITY
264
+ size_type size() const {return __table_.size();}
265
+ _LIBCUDACXX_INLINE_VISIBILITY
266
+ size_type max_size() const {return __table_.max_size();}
267
+
268
+ _LIBCUDACXX_INLINE_VISIBILITY
269
+ iterator begin() {return __table_.begin();}
270
+ _LIBCUDACXX_INLINE_VISIBILITY
271
+ iterator end() {return __table_.end();}
272
+ _LIBCUDACXX_INLINE_VISIBILITY
273
+ const_iterator begin() const {return __table_.begin();}
274
+ _LIBCUDACXX_INLINE_VISIBILITY
275
+ const_iterator end() const {return __table_.end();}
276
+
277
+ _LIBCUDACXX_INLINE_VISIBILITY
278
+ std::pair<iterator, bool> insert(const value_type& __x)
279
+ {return __table_.__insert_unique(__x);}
280
+ _LIBCUDACXX_INLINE_VISIBILITY
281
+ iterator insert(const_iterator, const value_type& __x) {return insert(__x).first;}
282
+ template <class _InputIterator>
283
+ _LIBCUDACXX_INLINE_VISIBILITY
284
+ void insert(_InputIterator __first, _InputIterator __last);
285
+
286
+ _LIBCUDACXX_INLINE_VISIBILITY
287
+ void erase(const_iterator __p) {__table_.erase(__p);}
288
+ _LIBCUDACXX_INLINE_VISIBILITY
289
+ size_type erase(const key_type& __k) {return __table_.__erase_unique(__k);}
290
+ _LIBCUDACXX_INLINE_VISIBILITY
291
+ void erase(const_iterator __first, const_iterator __last)
292
+ {__table_.erase(__first, __last);}
293
+ _LIBCUDACXX_INLINE_VISIBILITY
294
+ void clear() {__table_.clear();}
295
+
296
+ _LIBCUDACXX_INLINE_VISIBILITY
297
+ void swap(hash_set& __u) {__table_.swap(__u.__table_);}
298
+
299
+ _LIBCUDACXX_INLINE_VISIBILITY
300
+ hasher hash_funct() const {return __table_.hash_function();}
301
+ _LIBCUDACXX_INLINE_VISIBILITY
302
+ key_equal key_eq() const {return __table_.key_eq();}
303
+
304
+ _LIBCUDACXX_INLINE_VISIBILITY
305
+ iterator find(const key_type& __k) {return __table_.find(__k);}
306
+ _LIBCUDACXX_INLINE_VISIBILITY
307
+ const_iterator find(const key_type& __k) const {return __table_.find(__k);}
308
+ _LIBCUDACXX_INLINE_VISIBILITY
309
+ size_type count(const key_type& __k) const {return __table_.__count_unique(__k);}
310
+ _LIBCUDACXX_INLINE_VISIBILITY
311
+ std::pair<iterator, iterator> equal_range(const key_type& __k)
312
+ {return __table_.__equal_range_unique(__k);}
313
+ _LIBCUDACXX_INLINE_VISIBILITY
314
+ std::pair<const_iterator, const_iterator> equal_range(const key_type& __k) const
315
+ {return __table_.__equal_range_unique(__k);}
316
+
317
+ _LIBCUDACXX_INLINE_VISIBILITY
318
+ size_type bucket_count() const {return __table_.bucket_count();}
319
+ _LIBCUDACXX_INLINE_VISIBILITY
320
+ size_type max_bucket_count() const {return __table_.max_bucket_count();}
321
+
322
+ _LIBCUDACXX_INLINE_VISIBILITY
323
+ size_type elems_in_bucket(size_type __n) const {return __table_.bucket_size(__n);}
324
+
325
+ _LIBCUDACXX_INLINE_VISIBILITY
326
+ void resize(size_type __n) {__table_.rehash(__n);}
327
+ };
328
+
329
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
330
+ hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(size_type __n,
331
+ const hasher& __hf, const key_equal& __eql)
332
+ : __table_(__hf, __eql)
333
+ {
334
+ __table_.rehash(__n);
335
+ }
336
+
337
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
338
+ hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(size_type __n,
339
+ const hasher& __hf, const key_equal& __eql, const allocator_type& __a)
340
+ : __table_(__hf, __eql, __a)
341
+ {
342
+ __table_.rehash(__n);
343
+ }
344
+
345
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
346
+ template <class _InputIterator>
347
+ hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(
348
+ _InputIterator __first, _InputIterator __last)
349
+ {
350
+ insert(__first, __last);
351
+ }
352
+
353
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
354
+ template <class _InputIterator>
355
+ hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(
356
+ _InputIterator __first, _InputIterator __last, size_type __n,
357
+ const hasher& __hf, const key_equal& __eql)
358
+ : __table_(__hf, __eql)
359
+ {
360
+ __table_.rehash(__n);
361
+ insert(__first, __last);
362
+ }
363
+
364
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
365
+ template <class _InputIterator>
366
+ hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(
367
+ _InputIterator __first, _InputIterator __last, size_type __n,
368
+ const hasher& __hf, const key_equal& __eql, const allocator_type& __a)
369
+ : __table_(__hf, __eql, __a)
370
+ {
371
+ __table_.rehash(__n);
372
+ insert(__first, __last);
373
+ }
374
+
375
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
376
+ hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(
377
+ const hash_set& __u)
378
+ : __table_(__u.__table_)
379
+ {
380
+ __table_.rehash(__u.bucket_count());
381
+ insert(__u.begin(), __u.end());
382
+ }
383
+
384
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
385
+ template <class _InputIterator>
386
+ inline
387
+ void
388
+ hash_set<_Value, _Hash, _Pred, _Alloc>::insert(_InputIterator __first,
389
+ _InputIterator __last)
390
+ {
391
+ for (; __first != __last; ++__first)
392
+ __table_.__insert_unique(*__first);
393
+ }
394
+
395
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
396
+ inline _LIBCUDACXX_INLINE_VISIBILITY
397
+ void
398
+ swap(hash_set<_Value, _Hash, _Pred, _Alloc>& __x,
399
+ hash_set<_Value, _Hash, _Pred, _Alloc>& __y)
400
+ {
401
+ __x.swap(__y);
402
+ }
403
+
404
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
405
+ bool
406
+ operator==(const hash_set<_Value, _Hash, _Pred, _Alloc>& __x,
407
+ const hash_set<_Value, _Hash, _Pred, _Alloc>& __y)
408
+ {
409
+ if (__x.size() != __y.size())
410
+ return false;
411
+ typedef typename hash_set<_Value, _Hash, _Pred, _Alloc>::const_iterator
412
+ const_iterator;
413
+ for (const_iterator __i = __x.begin(), __ex = __x.end(), __ey = __y.end();
414
+ __i != __ex; ++__i)
415
+ {
416
+ const_iterator __j = __y.find(*__i);
417
+ if (__j == __ey || !(*__i == *__j))
418
+ return false;
419
+ }
420
+ return true;
421
+ }
422
+
423
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
424
+ inline _LIBCUDACXX_INLINE_VISIBILITY
425
+ bool
426
+ operator!=(const hash_set<_Value, _Hash, _Pred, _Alloc>& __x,
427
+ const hash_set<_Value, _Hash, _Pred, _Alloc>& __y)
428
+ {
429
+ return !(__x == __y);
430
+ }
431
+
432
+ template <class _Value, class _Hash = hash<_Value>, class _Pred = std::equal_to<_Value>,
433
+ class _Alloc = std::allocator<_Value> >
434
+ class _LIBCUDACXX_TEMPLATE_VIS hash_multiset
435
+ {
436
+ public:
437
+ // types
438
+ typedef _Value key_type;
439
+ typedef key_type value_type;
440
+ typedef _Hash hasher;
441
+ typedef _Pred key_equal;
442
+ typedef _Alloc allocator_type;
443
+ typedef value_type& reference;
444
+ typedef const value_type& const_reference;
445
+
446
+ private:
447
+ typedef std::__hash_table<value_type, hasher, key_equal, allocator_type> __table;
448
+
449
+ __table __table_;
450
+
451
+ public:
452
+ typedef typename __table::pointer pointer;
453
+ typedef typename __table::const_pointer const_pointer;
454
+ typedef typename __table::size_type size_type;
455
+ typedef typename __table::difference_type difference_type;
456
+
457
+ typedef typename __table::const_iterator iterator;
458
+ typedef typename __table::const_iterator const_iterator;
459
+
460
+ _LIBCUDACXX_INLINE_VISIBILITY
461
+ hash_multiset() { }
462
+ explicit hash_multiset(size_type __n, const hasher& __hf = hasher(),
463
+ const key_equal& __eql = key_equal());
464
+ hash_multiset(size_type __n, const hasher& __hf,
465
+ const key_equal& __eql, const allocator_type& __a);
466
+ template <class _InputIterator>
467
+ hash_multiset(_InputIterator __first, _InputIterator __last);
468
+ template <class _InputIterator>
469
+ hash_multiset(_InputIterator __first, _InputIterator __last,
470
+ size_type __n, const hasher& __hf = hasher(),
471
+ const key_equal& __eql = key_equal());
472
+ template <class _InputIterator>
473
+ hash_multiset(_InputIterator __first, _InputIterator __last,
474
+ size_type __n , const hasher& __hf,
475
+ const key_equal& __eql, const allocator_type& __a);
476
+ hash_multiset(const hash_multiset& __u);
477
+
478
+ _LIBCUDACXX_INLINE_VISIBILITY
479
+ allocator_type get_allocator() const
480
+ {return allocator_type(__table_.__node_alloc());}
481
+
482
+ _LIBCUDACXX_INLINE_VISIBILITY
483
+ bool empty() const {return __table_.size() == 0;}
484
+ _LIBCUDACXX_INLINE_VISIBILITY
485
+ size_type size() const {return __table_.size();}
486
+ _LIBCUDACXX_INLINE_VISIBILITY
487
+ size_type max_size() const {return __table_.max_size();}
488
+
489
+ _LIBCUDACXX_INLINE_VISIBILITY
490
+ iterator begin() {return __table_.begin();}
491
+ _LIBCUDACXX_INLINE_VISIBILITY
492
+ iterator end() {return __table_.end();}
493
+ _LIBCUDACXX_INLINE_VISIBILITY
494
+ const_iterator begin() const {return __table_.begin();}
495
+ _LIBCUDACXX_INLINE_VISIBILITY
496
+ const_iterator end() const {return __table_.end();}
497
+
498
+ _LIBCUDACXX_INLINE_VISIBILITY
499
+ iterator insert(const value_type& __x) {return __table_.__insert_multi(__x);}
500
+ _LIBCUDACXX_INLINE_VISIBILITY
501
+ iterator insert(const_iterator, const value_type& __x) {return insert(__x);}
502
+ template <class _InputIterator>
503
+ _LIBCUDACXX_INLINE_VISIBILITY
504
+ void insert(_InputIterator __first, _InputIterator __last);
505
+
506
+ _LIBCUDACXX_INLINE_VISIBILITY
507
+ void erase(const_iterator __p) {__table_.erase(__p);}
508
+ _LIBCUDACXX_INLINE_VISIBILITY
509
+ size_type erase(const key_type& __k) {return __table_.__erase_multi(__k);}
510
+ _LIBCUDACXX_INLINE_VISIBILITY
511
+ void erase(const_iterator __first, const_iterator __last)
512
+ {__table_.erase(__first, __last);}
513
+ _LIBCUDACXX_INLINE_VISIBILITY
514
+ void clear() {__table_.clear();}
515
+
516
+ _LIBCUDACXX_INLINE_VISIBILITY
517
+ void swap(hash_multiset& __u) {__table_.swap(__u.__table_);}
518
+
519
+ _LIBCUDACXX_INLINE_VISIBILITY
520
+ hasher hash_funct() const {return __table_.hash_function();}
521
+ _LIBCUDACXX_INLINE_VISIBILITY
522
+ key_equal key_eq() const {return __table_.key_eq();}
523
+
524
+ _LIBCUDACXX_INLINE_VISIBILITY
525
+ iterator find(const key_type& __k) {return __table_.find(__k);}
526
+ _LIBCUDACXX_INLINE_VISIBILITY
527
+ const_iterator find(const key_type& __k) const {return __table_.find(__k);}
528
+ _LIBCUDACXX_INLINE_VISIBILITY
529
+ size_type count(const key_type& __k) const {return __table_.__count_multi(__k);}
530
+ _LIBCUDACXX_INLINE_VISIBILITY
531
+ std::pair<iterator, iterator> equal_range(const key_type& __k)
532
+ {return __table_.__equal_range_multi(__k);}
533
+ _LIBCUDACXX_INLINE_VISIBILITY
534
+ std::pair<const_iterator, const_iterator> equal_range(const key_type& __k) const
535
+ {return __table_.__equal_range_multi(__k);}
536
+
537
+ _LIBCUDACXX_INLINE_VISIBILITY
538
+ size_type bucket_count() const {return __table_.bucket_count();}
539
+ _LIBCUDACXX_INLINE_VISIBILITY
540
+ size_type max_bucket_count() const {return __table_.max_bucket_count();}
541
+
542
+ _LIBCUDACXX_INLINE_VISIBILITY
543
+ size_type elems_in_bucket(size_type __n) const {return __table_.bucket_size(__n);}
544
+
545
+ _LIBCUDACXX_INLINE_VISIBILITY
546
+ void resize(size_type __n) {__table_.rehash(__n);}
547
+ };
548
+
549
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
550
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>::hash_multiset(
551
+ size_type __n, const hasher& __hf, const key_equal& __eql)
552
+ : __table_(__hf, __eql)
553
+ {
554
+ __table_.rehash(__n);
555
+ }
556
+
557
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
558
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>::hash_multiset(
559
+ size_type __n, const hasher& __hf, const key_equal& __eql,
560
+ const allocator_type& __a)
561
+ : __table_(__hf, __eql, __a)
562
+ {
563
+ __table_.rehash(__n);
564
+ }
565
+
566
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
567
+ template <class _InputIterator>
568
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>::hash_multiset(
569
+ _InputIterator __first, _InputIterator __last)
570
+ {
571
+ insert(__first, __last);
572
+ }
573
+
574
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
575
+ template <class _InputIterator>
576
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>::hash_multiset(
577
+ _InputIterator __first, _InputIterator __last, size_type __n,
578
+ const hasher& __hf, const key_equal& __eql)
579
+ : __table_(__hf, __eql)
580
+ {
581
+ __table_.rehash(__n);
582
+ insert(__first, __last);
583
+ }
584
+
585
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
586
+ template <class _InputIterator>
587
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>::hash_multiset(
588
+ _InputIterator __first, _InputIterator __last, size_type __n,
589
+ const hasher& __hf, const key_equal& __eql, const allocator_type& __a)
590
+ : __table_(__hf, __eql, __a)
591
+ {
592
+ __table_.rehash(__n);
593
+ insert(__first, __last);
594
+ }
595
+
596
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
597
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>::hash_multiset(
598
+ const hash_multiset& __u)
599
+ : __table_(__u.__table_)
600
+ {
601
+ __table_.rehash(__u.bucket_count());
602
+ insert(__u.begin(), __u.end());
603
+ }
604
+
605
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
606
+ template <class _InputIterator>
607
+ inline
608
+ void
609
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>::insert(_InputIterator __first,
610
+ _InputIterator __last)
611
+ {
612
+ for (; __first != __last; ++__first)
613
+ __table_.__insert_multi(*__first);
614
+ }
615
+
616
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
617
+ inline _LIBCUDACXX_INLINE_VISIBILITY
618
+ void
619
+ swap(hash_multiset<_Value, _Hash, _Pred, _Alloc>& __x,
620
+ hash_multiset<_Value, _Hash, _Pred, _Alloc>& __y)
621
+ {
622
+ __x.swap(__y);
623
+ }
624
+
625
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
626
+ bool
627
+ operator==(const hash_multiset<_Value, _Hash, _Pred, _Alloc>& __x,
628
+ const hash_multiset<_Value, _Hash, _Pred, _Alloc>& __y)
629
+ {
630
+ if (__x.size() != __y.size())
631
+ return false;
632
+ typedef typename hash_multiset<_Value, _Hash, _Pred, _Alloc>::const_iterator
633
+ const_iterator;
634
+ typedef std::pair<const_iterator, const_iterator> _EqRng;
635
+ for (const_iterator __i = __x.begin(), __ex = __x.end(); __i != __ex;)
636
+ {
637
+ _EqRng __xeq = __x.equal_range(*__i);
638
+ _EqRng __yeq = __y.equal_range(*__i);
639
+ if (_CUDA_VSTD::distance(__xeq.first, __xeq.second) !=
640
+ _CUDA_VSTD::distance(__yeq.first, __yeq.second) ||
641
+ !_CUDA_VSTD::is_permutation(__xeq.first, __xeq.second, __yeq.first))
642
+ return false;
643
+ __i = __xeq.second;
644
+ }
645
+ return true;
646
+ }
647
+
648
+ template <class _Value, class _Hash, class _Pred, class _Alloc>
649
+ inline _LIBCUDACXX_INLINE_VISIBILITY
650
+ bool
651
+ operator!=(const hash_multiset<_Value, _Hash, _Pred, _Alloc>& __x,
652
+ const hash_multiset<_Value, _Hash, _Pred, _Alloc>& __y)
653
+ {
654
+ return !(__x == __y);
655
+ }
656
+
657
+ } // __gnu_cxx
658
+
659
+ #endif // _LIBCUDACXX_HASH_SET