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

Complex number support #2

Open
StarGate01 opened this issue Jan 22, 2021 · 1 comment
Open

Complex number support #2

StarGate01 opened this issue Jan 22, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@StarGate01
Copy link
Owner

Support complex numbers in BLAS and LAPACK.

@StarGate01
Copy link
Owner Author

Using the latest version of emscripten, I managed to compile LAPACK and BLAS for complex numbers, and they seem to work. Basic complex arithmetic also works.

However, Fortran intrinsics such as EXP still cause compiler issues when used with complex numbers. I don't know if that is a bug in LLVM or if gfortran needs to be reconfigured. It seems like the exp call is routed to the double implementation instead of the complex one, or the signatures don't match. Maybe gfortran could do something with the ff2c option?

Anyway, I pushed the updated Docker image to the Docker Hub, where the updated liblapack.a and librefblas.a are contained.

wasm-validator error in function 93] call param types must match, on 
(call $96
 (f64.const 1)
 (f64.const 0)
)
(on argument 0)
[wasm-validator error in function 93] call param types must match, on 
(call $96
 (f64.const 1)
 (f64.const 0)
)
(on argument 1)

@StarGate01 StarGate01 added the help wanted Extra attention is needed label Feb 10, 2021
@StarGate01 StarGate01 added the bug Something isn't working label Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant