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

[fix] Fix the issues with solve, inv, and matmul #115

Merged

Conversation

forFudan
Copy link
Collaborator

@forFudan forFudan commented Sep 27, 2024

This PR is to solve the issue with solve and inv due to problems in paralellization.

For solve: Disable the parallelism and use normal loop approach for the moment until the issue is resolved.

For inv: The approach to calculate inverse is to solve the system AB=I, where I is an identity matrix, with the function solve. This is also what Numpy does.

For matmul: It seems to be related to ASAP destruction policy and can be resolved by using the variables after the paralellization.

@forFudan forFudan changed the title [fix] Fix the issues with solve and inv [fix] Fix the issues with solve, inv, and matmul Sep 27, 2024
@MadAlex1997 MadAlex1997 merged commit ea6ef61 into Mojo-Numerics-and-Algorithms-group:experimental Sep 27, 2024
1 of 3 checks passed
@forFudan forFudan deleted the inverse branch September 30, 2024 14:27
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

Successfully merging this pull request may close these issues.

2 participants