monofuel / hippo

HIP / CUDA library for Nim
MIT License
45 stars 1 forks source link

Nim inline functions fail to compile with hippo #4

Open monofuel opened 2 months ago

monofuel commented 2 months ago

trying to compute cache[cacheIndex] += cache[cacheIndex + i] from a gpu kernel gives the following error from hipcc:

test_dot_product.nim.cpp:356:6: error: no matching function for call to 'pluseq___pureZstrutils_u2431'

pluseq___pureZstrutils_u2431 looks like a helper function from the compiler, however this is not available for use as a device function.

static N_INLINE(void, pluseq___pureZstrutils_u2431)(NF& x_p0, NF y_p1);

looks like nim includes a bunch of functions that are supposed to get inlined, wonder how to handle these...