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

Commit

Permalink
Rollback files to CTK 12.0_GA
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Dec 13, 2022
1 parent 7273003 commit f514806
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dependencies/cub
Submodule cub updated 1 files
+1 −74 cub/util_namespace.cuh
11 changes: 4 additions & 7 deletions thrust/device_new_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
#include <thrust/device_reference.h>
#include <thrust/device_new.h>
#include <thrust/device_delete.h>

#include <cuda/std/cstdint>
#include <cuda/std/limits>

#include <limits>
#include <stdexcept>

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

/*! Type of allocation size, \c ::cuda::std::size_t. */
typedef ::cuda::std::size_t size_type;
/*! Type of allocation size, \c std::size_t. */
typedef std::size_t size_type;

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

/*! Compares against another \p device_malloc_allocator for equality.
Expand Down
4 changes: 2 additions & 2 deletions thrust/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ class optional : private detail::optional_move_assign_base<T>,

*this = nullopt;
this->construct(std::forward<Args>(args)...);
return this->m_value;
return value();
}

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

/// Swaps this optional with the other.
Expand Down

0 comments on commit f514806

Please sign in to comment.