Skip to content

Implementing a DAG graph with ak Arrays #2746

Answered by pankajp
pankajp asked this question in Q&A
Discussion options

You must be logged in to vote

I finally got it working.

  • The RuntimeError: missing Environment got fixed by removing the print() call within the lower() function.
  • That resulted in a segfault, which I fixed by adding an access to .numba_type so that the numba view is created for the record
    This segfault is what I haven been trying to fix for a long while and which led me to the complex code I shared, changing the graph implementation between a namedtuple, a jitclass, a structmodel and a structref.
    def _input__numba_lower__(context, builder, sig, args):
        print(f'_driver__numba_lower__: sig.args={[type(a) for a in sig.args]}, sig.return_type={type(sig.return_type)}, {len(args)=}')
        ret_type = sig.retur…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@pankajp
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pankajp
Comment options

Comment options

You must be logged in to vote
1 reply
@jpivarski
Comment options

Answer selected by pankajp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants