Skip to content

[BUG]: Pybind 11 not working with Intel C++ / DPC++ compilers (2022) #3799

Open
@Shmarvadon

Description

@Shmarvadon

Required prerequisites

Problem description

Apologies for a lack of detail in this bug report, i cant specify too much as i dont actually know whats causing the problem, only that it happens exclusively with pybind11.

The issue is that when using intels C++ or DPC++ compilers included in the oneapi toolkit version 2022.1.3 a module i work on compiles successfully but python throws a DLL not found error upon loading. To be clear, it compilers successfully, a .pyd is generated and it looks ok from the outside.

Just as a sanity check i decided to open up the module compiled in MSVC in a hex editor and search for its name (in this case GavinBackendDatasetUtils) and it was present in the file near the end. But in the Intel C++ / DPC++ compiler versions it can not be found in the .pyd file.

I have no clue if this is an issue on intels end or on pybind11s end. So i am posting this here while also following up with intel about the issue. If anyone knows of a fix or has encountered the same issue please reply with any additional information.

The image below is a screencapture of hex editor opening the MSVC compiled module showing the content which is NOT present in the Intel C++/ DPC++ compiled module.
image

Reproducible example code

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions