You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for inventing such an amazing programming language. However, when I programmed a quadtree using Bend, I found that this code did not work properly.
I really enjoy using this language and can’t wait to improve my algorithms, such as matrix multiplication. However, the implementation of quadtrees has been a persistent challenge for me.
My questions:
I don't know why this code fails to output results, even when the data size is small (n = 3). Is this because Quadtree has four member variables while MyTree has only two? These two pieces of code are really similar.
Does Bend support multi-parallelism? Like computing "return Quadtree/TreeNode{nw: gen(n - 1), ne: gen(n - 1), sw: gen(n - 1), se: gen(n - 1)}"?
If so, how should it be implemented?
Thank you very much for your time and help! I would greatly appreciate any help or guidance. Looking forward to hearing from you.
Best regards,
Siyu Wang
The text was updated successfully, but these errors were encountered:
Hi, sorry for taking so long to respond, your Issue somehow went unnoticed.
Testing a bit, there seems to be a bug with the HVM CUDA runtime, your QuadTree program is supposed to work.
We have to investigate this a bit further, the bug is not immediately apparent to me.
Thank you so much for taking the time to respond to my issue. I deeply appreciate your insights and the effort you’ve put into helping me resolve this challenge.
If it would be helpful, I am more than happy to provide additional code snippets or examples, particularly regarding the HVM CUDA runtime, to further clarify the issue or assist in debugging. Please let me know if there’s anything specific you’d like me to share or test.
Once again, thank you for your dedication and support. Your work on Bend continues to inspire, and I’m excited to further explore its potential!
Reproducing the behavior
Thank you very much for inventing such an amazing programming language. However, when I programmed a quadtree using Bend, I found that this code did not work properly.
Running command:
bend run-cu quadtree.bend -s
With code:
Error:
The program fails to stop and no results are output.
Expected behavior:
Like:
System Settings
Additional context
I have tried:
I found the program runs correctly with “bend run quadtree.bend -s”:
And for another program, using a binary tree to accelerate computing, runs correctly with “bend run-cu binaryree.bend -s":
Bend is incredibly powerful, and I’m impressed by its remarkable speed:
I really enjoy using this language and can’t wait to improve my algorithms, such as matrix multiplication. However, the implementation of quadtrees has been a persistent challenge for me.
My questions:
Thank you very much for your time and help! I would greatly appreciate any help or guidance. Looking forward to hearing from you.
Best regards,
Siyu Wang
The text was updated successfully, but these errors were encountered: