Skip to content

Commit

Permalink
Fix unused parameter warning in SYCL lock array and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Feb 2, 2023
1 parent 43ccea6 commit 97ad51b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tpls/desul/include/desul/atomics/Lock_Array_SYCL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,16 @@ inline void unlock_address_sycl(void* ptr, MemoryScopeNode) {
lock_node_ref(SYCL_SPACE_ATOMIC_LOCKS_NODE[offset]);
lock_node_ref.exchange(0);
}
#else

#else // not supported

template <typename /*AlwaysInt*/ = int>
void init_lock_arrays_sycl(sycl::queue q) {
void init_lock_arrays_sycl(sycl::queue) {
assert(false);
}

template <typename /*AlwaysInt*/ = int>
void finalize_lock_arrays_sycl(sycl::queue q) {
void finalize_lock_arrays_sycl(sycl::queue) {
assert(false);
}

Expand Down

0 comments on commit 97ad51b

Please sign in to comment.