-
Notifications
You must be signed in to change notification settings - Fork 30
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
Introduce DPCTL_WITH_REDIST cmake option to fix gh-1892 #1893
Conversation
Deduplicated common steps among two pybind11 extensions in this dpctl.utils Fixed typo CUMAKE_CURRENT_SOURCE_DIR -> CMAKE_CURRENT_SOURCE_DIR
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.19.0dev0=py310hdf72452_212 ran successfully. |
I can see that RUNPATH is set as expected in conda package:
but it is not set correctly in the wheels built by our CI (wheel is built in
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310hdf72452_214 ran successfully. |
…e preceding comment
…e preceding comment
Array API standard conformance tests for dpctl=0.19.0dev0=py310hdf72452_218 ran successfully. |
Array API standard conformance tests for dpctl=0.19.0dev0=py310hdf72452_219 ran successfully. |
This PR has fixed the issue now:
Both |
Array API standard conformance tests for dpctl=0.19.0dev0=py310hdf72452_234 ran successfully. |
Debugging output added in the last commit shows that in GitHub public CI the
in the internal CI it is:
The necessary components are there, but it would be nice to get rid of extraneous and invalid paths like |
fc144ab
to
e4f3964
Compare
The root-cause that introduced "invalid paths like I confirmed that with both wheels generated by Github Actions CI and by internal CI, the issues filed in gh-1892 is resolved. |
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.
I have also verified the fix and it works correctly on Linux.
LGTM!
Array API standard conformance tests for dpctl=0.19.0dev0=py310hdf72452_233 ran successfully. |
Closes gh-1892
This PR introduced
DPCTL_WITH_REDIST
cmake options, defaulting toOFF
.If set, cmake script add to RUNPATH an entry relative to
$ORIGIN
that would point to$PREFIX/lib
, hence allowing native extensions to find DPC++ redistributable libraries.conda-recipe/build.sh
is modified to setDPCTL_WITH_REDIST=TRUE
.