67 if constexpr (directional_pointer_traits<Param>::value)
69 using adapter = directional_pointer_traits<Param>;
70 using wire_type =
typename adapter::wire_type;
71 return adapter::fromWire(unpackKernelPointer<wire_type>(isNDArrayValue, buffer));
73 else if constexpr (is_pointer<Param>::value)
75 return unpackKernelPointer<Param>(isNDArrayValue, buffer);
79 Param* value = *
reinterpret_cast<Param**
>(buffer);
80 if constexpr (is_ndarray_v<Param>)
82 void* argumentAddress = *
reinterpret_cast<void**
>(buffer);
83 value = *
reinterpret_cast<Param**
>(argumentAddress);
87 void* argumentAddress = *
reinterpret_cast<void**
>(buffer);
91 void* dataPointer = ndarray->
data();
92 value = *
reinterpret_cast<Param**
>(dataPointer);
96 value = *
reinterpret_cast<Param**
>(argumentAddress);
99 return static_cast<Param&
>(*value);
NDArray is a class that can be used in both host and device code. NDArray is automatically divided in...
bool isNormalMode(uint32_t mode)