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

Returning a String in main outputs a Result: 1 instead of the string when using run-cu #610

Closed
phazejeff opened this issue Jul 1, 2024 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed HVM About the HVM

Comments

@phazejeff
Copy link

phazejeff commented Jul 1, 2024

Reproducing the behavior

I'm running a simple hello world program

def main():
  return "hello world"

When running with run or run-c it correctly outputs "Result: hello world".
But, when running with run-cu it outputs "Result: 1"
Weirdly, when running run-cu with the --verbose flag, it says (main) = "hello world" at the end of it, despite it giving Result: 1 https://pastebin.com/tPW3VjfY

System Settings

  • HVM: 2.0.19
  • Bend: 0.2.33
  • OS: WSL2 Ubuntu 20.04.6 on Windows 10
  • CPU: AMD Ryzen 7 7700X
  • GPU: RTX 3060 12GB
  • Cuda Version 12.5 (Also tested with 12.4)

Additional context

No response

@mikemcqueen
Copy link

exact same issue

  • HVM: 2.0.19
  • Bend: 0.2.33
  • OS: WSL2 Ubuntu 22.04.3 on Windows 11
  • CPU: intel I7-12700 laptop
  • GPU: RTX 4080 laptop
  • Cuda: 12.5 (Also tested with 12.4)

@developedby developedby added bug Something isn't working help wanted Extra attention is needed HVM About the HVM labels Jul 1, 2024
@developedby
Copy link
Member

HigherOrderCO/HVM#401 should fix this.

@phazejeff
Copy link
Author

HigherOrderCO/HVM#401 should fix this.

Just tested with hvm 2.0.21 and can confirm that this has fixed the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed HVM About the HVM
Projects
None yet
Development

No branches or pull requests

3 participants