Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit f514806

Browse files
committed
Rollback files to CTK 12.0_GA
1 parent 7273003 commit f514806

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

dependencies/cub

thrust/device_new_allocator.h

+4-7
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
#include <thrust/device_reference.h>
2626
#include <thrust/device_new.h>
2727
#include <thrust/device_delete.h>
28-
29-
#include <cuda/std/cstdint>
30-
#include <cuda/std/limits>
31-
28+
#include <limits>
3229
#include <stdexcept>
3330

3431
THRUST_NAMESPACE_BEGIN
@@ -64,8 +61,8 @@ template<typename T>
6461
/*! \c const reference to allocated element, \c device_reference<const T>. */
6562
typedef device_reference<const T> const_reference;
6663

67-
/*! Type of allocation size, \c ::cuda::std::size_t. */
68-
typedef ::cuda::std::size_t size_type;
64+
/*! Type of allocation size, \c std::size_t. */
65+
typedef std::size_t size_type;
6966

7067
/*! Type of allocation difference, \c pointer::difference_type. */
7168
typedef typename pointer::difference_type difference_type;
@@ -150,7 +147,7 @@ template<typename T>
150147
__host__ __device__
151148
inline size_type max_size() const
152149
{
153-
return ::cuda::std::numeric_limits<size_type>::max THRUST_PREVENT_MACRO_SUBSTITUTION () / sizeof(T);
150+
return std::numeric_limits<size_type>::max THRUST_PREVENT_MACRO_SUBSTITUTION () / sizeof(T);
154151
} // end max_size()
155152

156153
/*! Compares against another \p device_malloc_allocator for equality.

thrust/optional.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ class optional : private detail::optional_move_assign_base<T>,
15801580

15811581
*this = nullopt;
15821582
this->construct(std::forward<Args>(args)...);
1583-
return this->m_value;
1583+
return value();
15841584
}
15851585

15861586
/// \group emplace
@@ -1594,7 +1594,7 @@ class optional : private detail::optional_move_assign_base<T>,
15941594
emplace(std::initializer_list<U> il, Args &&... args) {
15951595
*this = nullopt;
15961596
this->construct(il, std::forward<Args>(args)...);
1597-
return this->m_value;
1597+
return value();
15981598
}
15991599

16001600
/// Swaps this optional with the other.

0 commit comments

Comments
 (0)