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

unique() function on weld-capi. #524

Open
kchasialis opened this issue May 12, 2022 · 0 comments
Open

unique() function on weld-capi. #524

kchasialis opened this issue May 12, 2022 · 0 comments

Comments

@kchasialis
Copy link

kchasialis commented May 12, 2022

Hello,

I want to implement the grizzly_impl.unique() function using weld-capi.

After looking at the grizzly_impl.py code I found out that this is the code for unique()

map(
         tovec(
           result(
             for(
               map(
                 obj_id,
                 |p: vec[i8]| {p,0}
               ),
               dictmerger[vec[i8],i32,+],
               |b, i, e| merge(b,e)
             )
           )
         ),
         |p: {vec[i8], i32}| p.$0
       )

However, obj_id is retrieved during runtime and I do not know how to do what using weld-capi.
Basically my question is how to write a unique() function using weld-ir that can be compiled and called using weld-capi.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant