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

/lib/aarch64-linux-gnu/libqmkl6.so: undefined symbol: drm_v3d_submit_csd #20

Open
Hamidreza-Ramezani opened this issue May 18, 2022 · 5 comments

Comments

@Hamidreza-Ramezani
Copy link

Hello,

I'm trying to use qmkl6 as numpy backend. I already installed py-videocore6 and libdrm_v3d.

After successfully installing numpy against qmkl6, when I'm importing numpy, I keep getting this error:

/lib/aarch64-linux-gnu/libqmkl6.so: undefined symbol: drm_v3d_submit_csd

Do you possibly have any idea how to fix this?

@Terminus-IMRC
Copy link
Contributor

What if -ldrm_v3d is added when linking your program?

@Hamidreza-Ramezani
Copy link
Author

Thanks for the reply. That worked. But I got another error:

undefined symbol: cblas_zgemm

I guess that is because qmkl6 doesn't have all cblas functions. Am I right? Do you know any workaround?

@Terminus-IMRC
Copy link
Contributor

The only workaround is to implement the missing calls, which really is a hard work... c.f. single-precision gemm: src/sgemm_rnn.py.
Or, I just came up with the idea to call other BLAS's (e.g. OpenBLAS) function if it is missing from QMKL6.

@Hamidreza-Ramezani
Copy link
Author

Hello again,

Thanks for the reply.

Or, I just came up with the idea to call other BLAS's (e.g. OpenBLAS) function if it is missing from QMKL6.

Do you possibly know what is the easiest way to do this? I mean, how to tell numpy to use QMKL in some cases and use OpenBlas in some other.

@Terminus-IMRC
Copy link
Contributor

A lookup table-based approach with dlsym seems feasible.

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

2 participants