Skip to content

fatal error: 'dpctl4pybind11.hpp' file not found #808

Closed

Description

@mspronesti

Hi,
I'm trying to run this pybind11 example on Intel DevCloud as explained in the README, nevertheless I got a fatal error: file not found when including dpctl4pybind11.hpp.

Steps to reproduce the Issue

ssh devcloud
pip install dpctl
git clone https://github.com/IntelPython/dpctl
cd dpctl/examples/pybind11/use_dpctl_syclqueue
source /opt/intel/oneapi/compiler/latest/env/vars.sh
CXX=dpcpp CC=dpcpp python setup.py build_ext --inplace

Error stacktrace

running build_ext
building 'use_queue_device_ext' extension
dpcpp -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wformat -Wformat-security -fstack-protector-all -D_FORTIFY_SOURCE=2 -fpic -fPIC -O2 -Wl,-z,noexecstack,-z,relro,-z,now,-rpath,$ORIGIN/../..,-rpath,$ORIGIN/../../.. -I/glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelpython/latest/include -Wformat -Wformat-security -fstack-protector-all -D_FORTIFY_SOURCE=2 -fpic -fPIC -O2 -Wl,-z,noexecstack,-z,relro,-z,now,-rpath,$ORIGIN/../..,-rpath,$ORIGIN/../../.. -fPIC -I/glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelpython/latest/lib/python3.9/site-packages/dpctl/include -I/home/u141905/.local/lib/python3.9/site-packages/pybind11/include -I/glob/development-tools/versions/oneapi/2022.1.2/oneapi/intelpython/latest/include/python3.9 -c ./_example.cpp -o build/temp.linux-x86_64-3.9/./_example.o -fvisibility=hidden -g0 -fPIC
dpcpp: warning: -Wl,-z,noexecstack,-z,relro,-z,now,-rpath,$ORIGIN/../..,-rpath,$ORIGIN/../../..: 'linker' input unused [-Wunused-command-line-argument]
dpcpp: warning: -Wl,-z,noexecstack,-z,relro,-z,now,-rpath,$ORIGIN/../..,-rpath,$ORIGIN/../../..: 'linker' input unused [-Wunused-command-line-argument]
./_example.cpp:29:10: fatal error: 'dpctl4pybind11.hpp' file not found
#include "dpctl4pybind11.hpp"
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/glob/development-tools/versions/oneapi/2022.1.2/oneapi/compiler/2022.0.2/linux/bin/dpcpp' failed with exit code 1

Activity

  1. oleksandr-pavlyk commented on Apr 3, 2022

    @oleksandr-pavlyk
    Contributor

    @mspronesti Thank you for trying this out, and for reporting the issue. The header was added to dpctl in #685, which only made it into 0.12 release, but PyPI still has 0.11.3.

    You could either check out the matching tag of dpctl sources, or use conda package manager and install the latest dpctl from dppy/label/dev channel:

    conda install -c dppy/label/dev -c intel dpctl

    Building dpctl requires ninja and cmake 3.22 (for integration with DPC++) as well as Python dependencies installed:

    conda create -n dev_dpctl -c intel python=3.9 numpy cython scikit-build pytest
    conda activate dev_dpctl
    source /opt/intel/oneapi/compiler/latest/env/vars.sh # activate DPC++ if not yet active
    cd dpctl
    python scripts/build_locally.py --oneapi
  2. oleksandr-pavlyk commented on Aug 6, 2022

    @oleksandr-pavlyk
    Contributor

    Note that released dpctl 0.13.0 contains the header. I will resolve this ticket once dpctl 0.13.0 is installed in DevCloud with update of oneAPI.

  3. oleksandr-pavlyk commented on Oct 19, 2022

    @oleksandr-pavlyk
    Contributor

    Dev-Cloud now has dpctl 0.13.0 installed, so resolving this ticket as agreed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions