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

IntParam value type change due to attribute writeback #313

Open
dnadlinger opened this issue Oct 14, 2022 · 0 comments
Open

IntParam value type change due to attribute writeback #313

dnadlinger opened this issue Oct 14, 2022 · 0 comments
Labels
A-experiment Involves the experiment-side code

Comments

@dnadlinger
Copy link
Member

There might be more than one root cause here, but we have observed annoying compilation failures due to the value type of IntParams changing after the first of several kernel executions due to attribute writeback. Specifically, the host-side value type was first a Python built-in int, and got inferred as a TInt32, but after the kernel exited, became a numpy.int64 on the host.

Possible solutions:

  • Fix attribute writeback – it's unclear why it should lead to the type being widened.
  • Always hard-code IntParamStore type to numpy.int32.
@dnadlinger dnadlinger added the A-experiment Involves the experiment-side code label Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-experiment Involves the experiment-side code
Projects
None yet
Development

No branches or pull requests

1 participant