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/dppy rt extension #393

Merged
merged 3 commits into from
May 25, 2021
Merged

Conversation

diptorupd
Copy link
Contributor

The dppy_rt.c extension module stopped working with dpctl 0.8.0rc1 due to the introduction of soversion names in dpctl's libDPCTLSyclInterface. The PR fixes the problem by properly adding the libDPCTLSyclInterface to the rpath using setup.py. Additionally, the extension itself was refactored to not use dlopen but rather properly include dpctl C API headers.

The refactored extension is renamed and moved into the driver sub-module.

Diptorup Deb added 2 commits May 24, 2021 21:37
  - Fix the library search string for libDPCTLSyclInterface.so on linux.
    Without the change the search was failing to properly load
    libDPCTLSyclInterface.so after the recent addition of soversions in
    dpctl 0.8.0rc1.
  - Removed unused code for the function and renamed initialize_all to
    load_dpctl_sycl_interface.
  - Properly add the dpctl library path and include path to
    setup.py for the extension. With the change we do not need
    to do a dlopen for libDPCTLSyclInterface.
  - Renamed the extension and moved the source under the driver module.
  - Code formating changes and added license header.
@diptorupd diptorupd requested a review from reazulhoque May 25, 2021 03:33
@PokhodenkoSA
Copy link
Contributor

The PR fixes the problem by properly adding the libDPCTLSyclInterface to the rpath using setup.py.

I think conda build process removes rpath. It could be the problem.

@diptorupd diptorupd merged commit fba92ca into IntelPython:main May 25, 2021
@diptorupd diptorupd deleted the fix/dppy_rt_extension branch May 25, 2021 23:05
@PokhodenkoSA PokhodenkoSA mentioned this pull request May 27, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Waiting: CI dpctl Integration with dpctl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants