2
0

Handle (odd) corner case of argumentless __global__ function.

Este cometimento está contido em:
Alex Voicu
2018-11-12 00:32:35 +00:00
ascendente 01ec23538e
cometimento 927b06f8d4
+2
Ver ficheiro
@@ -102,6 +102,8 @@ inline std::vector<std::uint8_t> make_kernarg(
static_assert(sizeof...(Formals) == sizeof...(Actuals),
"The count of formal arguments must match the count of actuals.");
if (sizeof...(Formals) == 0) return {};
const auto it = function_names().find(
reinterpret_cast<std::uintptr_t>(kernel));