Skip to content

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

@mspronesti

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

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