Skip to content

Conversation

@rturrado
Copy link
Contributor

@rturrado rturrado commented Jan 4, 2026

Context:
This PR addresses @lepus2589 comments from issue 1744.

Description of the Change:
Use find_package(LAPACKE).
Use a tag (v2.0.0) instead of referencin the master branch.
Remove check for EXISTS ${CMAKE_BINARY_DIR}/lib/liblapacke.3.dylib
Remove copy of liblapacke.3.dylib to ${CMAKE_BINARY_DIR}/lib.

Benefits:
Rely on find_package to check if LAPACKE library has to be downloaded.
Reference a stable LAPACKE library version.
Remove an unnecessary copy of a dynamic library.

Possible Drawbacks:
This PR has to be tested on Apple/ARM64, which I couldn't do.

Related GitHub Issues:
#1744

Remove check for ${CMAKE_BINARY_DIR}/lib/liblapacke.3.dylib
Remove copy of liblapacke.3.dylib to ${CMAKE_BINARY_DIR}/lib
@github-actions github-actions bot added the external PRs where the author is not a part of PennyLane Org (or part of external contributors team) label Jan 4, 2026
@rturrado rturrado changed the title Fix #1744: Some comments on Accelerate LAPACKE integration Issue #1744: Some comments on Accelerate LAPACKE integration Jan 4, 2026
@dime10
Copy link
Contributor

dime10 commented Jan 5, 2026

Thanks @rturrado, I'll give it a spin on mac :) I'm not 100% sure but I think the copy was not just for the conditional but so it can be used by the rest of the system, let's see..

@rturrado
Copy link
Contributor Author

rturrado commented Jan 5, 2026

Thanks @rturrado, I'll give it a spin on mac :)

Thanks!

I'm not 100% sure but I think the copy was not just for the conditional but so it can be used by the rest of the system, let's see..

Yes, that could well be. Although, in that case, we might also be better off adjusting the use in those other points so that they go and search at ${CMAKE_BINARY_DIR}/_lapacke-accelerate/install/lib/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external PRs where the author is not a part of PennyLane Org (or part of external contributors team)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants