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

pk_cpp is not removed if kernel changes which keeps reporting an error #234

Open
gliga opened this issue Jan 5, 2024 · 0 comments
Open

Comments

@gliga
Copy link
Contributor

gliga commented Jan 5, 2024

The following example leads to an error:

import pykokkos as pk

@pk.workunit
def map_d(i):
    #i += 1                                                                                                                                                                                                                                                                                                                                           
    pass

def main():
    SIZE = 2
    pk.parallel_for(SIZE, map_d)

main()

This happens as we do not support pass (but that is a side comment only). The key is that this results in an error.

Once I "fix" the kernel and have the resulting (correct) code:

import pykokkos as pk

@pk.workunit
def map_d(i):
    i += 1

def main():
    SIZE = 2
    pk.parallel_for(SIZE, map_d)

main()

I am still getting the same error as before. Only after deleting pk_cpp in between kernel updates, the error goes away and my example runs properly.

Action: Remove pk_cpp when kernel changes.

Used pykokkos: 2e0b664c2aec1c923c55a7dc5958fc19f0c327cd
Used command: ./pk pk_example X.py

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