zeam-vm / pelemay

Pelemay is a native compiler for Elixir, which generates SIMD instructions. It has a plan to generate for GPU code.
Apache License 2.0
186 stars 14 forks source link

Deal with enif_consume_timeslice #159

Closed zacky1972 closed 3 years ago

zacky1972 commented 3 years ago

Is your feature request related to a problem? Please describe. Current Pelemay doesn't deal with enif_consume_timeslice, so I guess it and it with PelemayFp may have less performance than PelemayFp alone.

Describe the solution you'd like Pelemay should deal with enif_consume_timeslice according to this article: https://rhye.org/post/native-scheduling-erlang/

Describe alternatives you've considered Another option is to use asynchronous NIFs: https://qiita.com/zacky1972/items/0dd765a0895f19f5848f

Additional context None.

zacky1972 commented 3 years ago

Another option is to implement and use EPC: https://erlef.org/wg/epc