computecpp-sdk icon indicating copy to clipboard operation
computecpp-sdk copied to clipboard

about __SYCL_DEVICE_ONLY__ macro

Open mtxuhao opened this issue 3 years ago • 1 comments

i want to implement a function by device buildin fun.but may SYCL_DEVICE_ONLY not defined ,so it not work . i need your help ,thanks very much i call device_buildin fun inter parallel_for ensure compute++ work and compile sycl code err is followed : error: ‘helper_asp’ is not a member of ‘cl::sycl::detail’

i want to call this function: inline sycl::cl_long atom_cmpxchg( detail::helper_ptr<detail::helper_asp::asp_global, COMPUTECPP_CL_ASP_GLOBAL volatile sycl::cl_long*> p, sycl::cl_long cmp, sycl::cl_long val) noexcept { return sycl::cl_long(::_Z12atom_cmpxchgPU3AS1Vlll(p, cmp, val)); }

mtxuhao avatar Sep 03 '21 03:09 mtxuhao

Can you provide a small repro example or similar to help us understand your problem better please? Thanks, Rod.

rodburns avatar Sep 07 '21 08:09 rodburns