Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nim inline functions fail to compile with hippo #4

Open
monofuel opened this issue Sep 2, 2024 · 0 comments
Open

Nim inline functions fail to compile with hippo #4

monofuel opened this issue Sep 2, 2024 · 0 comments

Comments

@monofuel
Copy link
Owner

monofuel commented Sep 2, 2024

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...

  • could we convince nim not to make these fancy functions and output simple C++ code?
  • could we automatically create __device__ versions of these functions?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant