Fix shift_left/right function on hipSYCL
authorAndrey Alekseenko <al42and@gmail.com>
Sat, 8 May 2021 11:23:23 +0000 (14:23 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 10 May 2021 12:08:35 +0000 (12:08 +0000)
commitfe0b3c8bd13326c1c5fd607a527f4dfb9bb1f5ff
tree39ed065977013c432a4da776b9c845ff714f7609
parentb14cf5fce4b9e2fb4735aec33fe66b2bc377044f
Fix shift_left/right function on hipSYCL

Having separate __host__ and __device__ definitions confused the
compiler when called from a non-annotated function. As a result,
a __host__ version, containing `assert(false)`, was always called,
leading to UB.

Refs #3965
src/gromacs/gpu_utils/sycl_kernel_utils.h