-
-
Notifications
You must be signed in to change notification settings - Fork 35
Miniexpr for Windows #565
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
base: main
Are you sure you want to change the base?
Miniexpr for Windows #565
Conversation
| try: | ||
| res_eval._set_pref_expr(expression, operands, fp_accuracy=fp_accuracy) | ||
| print("expr->miniexpr:", expression, fp_accuracy) | ||
| # print("expr->miniexpr:", expression, fp_accuracy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this now that we are doing a release?
| expression_miniexpr = f"{reduce_op_str}({expression})" | ||
| res_eval._set_pref_expr(expression_miniexpr, operands, fp_accuracy, aux_reduc) | ||
| print("expr->miniexpr:", expression, reduce_op, fp_accuracy) | ||
| # print("expr->miniexpr:", expression, reduce_op, fp_accuracy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
| use_miniexpr = False | ||
| if not (all_ndarray and out is None): | ||
| use_miniexpr = False | ||
| has_complex = any( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be wrapped as a function (as it is called twice). Should maybe make it easier in future to get rid of this when windows is working. Maybe call it windows_check or something to make it explicit (I don't think the variables are used for anything else in the code).
Minimal modifications for allowing miniexpr to run on windows too. It currently has these limitations:
There has been a considerable amount of effort to reduce the limitations on windows to just this two cases, so I am quite satisfied with what we have now. All other cases, including SIMD accelerations for transcendental functions via SLEEF, are working really well.
Ready for review.