Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atomic: Fix missing template type names in the function definitions #30

Merged
merged 1 commit into from
Nov 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions src/stdgpu/impl/atomic_detail.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ atomic<T>::compare_exchange_strong(T& expected,


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_add(const T arg)
{
Expand All @@ -119,7 +119,7 @@ atomic<T>::fetch_add(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_sub(const T arg)
{
Expand All @@ -128,7 +128,7 @@ atomic<T>::fetch_sub(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_and(const T arg)
{
Expand All @@ -137,7 +137,7 @@ atomic<T>::fetch_and(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_or(const T arg)
{
Expand All @@ -146,7 +146,7 @@ atomic<T>::fetch_or(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_xor(const T arg)
{
Expand All @@ -155,7 +155,7 @@ atomic<T>::fetch_xor(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_min(const T arg)
{
Expand All @@ -164,7 +164,7 @@ atomic<T>::fetch_min(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_max(const T arg)
{
Expand All @@ -173,7 +173,7 @@ atomic<T>::fetch_max(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_inc_mod(const T arg)
{
Expand All @@ -182,7 +182,7 @@ atomic<T>::fetch_inc_mod(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::fetch_dec_mod(const T arg)
{
Expand All @@ -191,7 +191,7 @@ atomic<T>::fetch_dec_mod(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator++()
{
Expand All @@ -200,7 +200,7 @@ atomic<T>::operator++()


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator++(int)
{
Expand All @@ -209,7 +209,7 @@ atomic<T>::operator++(int)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator--()
{
Expand All @@ -218,7 +218,7 @@ atomic<T>::operator--()


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator--(int)
{
Expand All @@ -227,7 +227,7 @@ atomic<T>::operator--(int)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator+=(const T arg)
{
Expand All @@ -236,7 +236,7 @@ atomic<T>::operator+=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator-=(const T arg)
{
Expand All @@ -245,7 +245,7 @@ atomic<T>::operator-=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator&=(const T arg)
{
Expand All @@ -254,7 +254,7 @@ atomic<T>::operator&=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator|=(const T arg)
{
Expand All @@ -263,7 +263,7 @@ atomic<T>::operator|=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic<T>::operator^=(const T arg)
{
Expand Down Expand Up @@ -347,7 +347,7 @@ atomic_ref<T>::compare_exchange_strong(T& expected,


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_add(const T arg)
{
Expand All @@ -356,7 +356,7 @@ atomic_ref<T>::fetch_add(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_sub(const T arg)
{
Expand All @@ -365,7 +365,7 @@ atomic_ref<T>::fetch_sub(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_and(const T arg)
{
Expand All @@ -374,7 +374,7 @@ atomic_ref<T>::fetch_and(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_or(const T arg)
{
Expand All @@ -383,7 +383,7 @@ atomic_ref<T>::fetch_or(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_xor(const T arg)
{
Expand All @@ -392,7 +392,7 @@ atomic_ref<T>::fetch_xor(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_min(const T arg)
{
Expand All @@ -401,7 +401,7 @@ atomic_ref<T>::fetch_min(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_max(const T arg)
{
Expand All @@ -410,7 +410,7 @@ atomic_ref<T>::fetch_max(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_inc_mod(const T arg)
{
Expand All @@ -419,7 +419,7 @@ atomic_ref<T>::fetch_inc_mod(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::fetch_dec_mod(const T arg)
{
Expand All @@ -428,7 +428,7 @@ atomic_ref<T>::fetch_dec_mod(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator++()
{
Expand All @@ -437,7 +437,7 @@ atomic_ref<T>::operator++()


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator++(int)
{
Expand All @@ -446,7 +446,7 @@ atomic_ref<T>::operator++(int)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator--()
{
Expand All @@ -455,7 +455,7 @@ atomic_ref<T>::operator--()


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator--(int)
{
Expand All @@ -464,7 +464,7 @@ atomic_ref<T>::operator--(int)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator+=(const T arg)
{
Expand All @@ -473,7 +473,7 @@ atomic_ref<T>::operator+=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator-=(const T arg)
{
Expand All @@ -482,7 +482,7 @@ atomic_ref<T>::operator-=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator&=(const T arg)
{
Expand All @@ -491,7 +491,7 @@ atomic_ref<T>::operator&=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator|=(const T arg)
{
Expand All @@ -500,7 +500,7 @@ atomic_ref<T>::operator|=(const T arg)


template <typename T>
template <typename, typename>
template <typename U, typename>
inline STDGPU_DEVICE_ONLY T
atomic_ref<T>::operator^=(const T arg)
{
Expand Down