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 5079ba2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/cuda/api/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,17 @@ 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]);


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

0 comments on commit 5079ba2

Please sign in to comment.