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

Issues with wp.static and max unrolling #114

Open
hsalehipour opened this issue Mar 3, 2025 · 0 comments
Open

Issues with wp.static and max unrolling #114

hsalehipour opened this issue Mar 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hsalehipour
Copy link
Collaborator

This issue can be easily reproduced on main branch and running the windtunnel_3d example or any other example with more than 3 BCs.

  • add wp.config.max_unroll = 3 to the beginning of the file.

You will get this error:

warp.codegen.WarpCodegenError: Error while parsing function "kernel" at /home/hesam/REPOs/XLB_refactored/XLB/xlb/operator/stepper/nse_stepper.py:299:
    _f_post_stream = apply_bc(index, timestep, _boundary_id, _missing_mask, f_0, f_1, _f_post_collision, _f_post_stream, True)
;Error while parsing function "apply_bc" at /home/hesam/REPOs/XLB_refactored/XLB/xlb/operator/stepper/nse_stepper.py:214:
            if wp.static(self.boundary_conditions[i].implementation_step == ImplementationStep.STREAMING):
;Error evaluating static expression: name 'i' is not defined. Make sure all variables used in the static expression are constant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants