Skip to content

Commit

Permalink
DELME
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalroz committed Nov 16, 2024
1 parent b9cef21 commit 2368a69
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/cuda/api/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,29 @@ inline void copy(span<T> destination, const T(&source)[N], optional_ref<const st
return copy(destination.data(), source, sizeof(T) * N);
}

template <typename T, size_t N>
void foo(T(&destination)[N])
{
(void) destination;
return;
}

template <>
void foo<int, 10>(int(&destination)[10]);

template <typename T, size_t N>
void foo2(span<T const> source) { }

template<>
void foo2<int, 10>(span<int const> source);

template <typename T, size_t N>
void foo3(T(&destination)[N], span<T const> source) {}

template <>
void foo3<int, 10>(int(&destination)[10], span<int const> source);


/**
* Copy the contents of a span into a C-style array
*
Expand Down

0 comments on commit 2368a69

Please sign in to comment.