KEMBAR78
'c10/xpu/impl/xpu_cmake_macros.h' file not found · Issue #132971 · pytorch/pytorch · GitHub
Skip to content

'c10/xpu/impl/xpu_cmake_macros.h' file not found #132971

@guangyey

Description

@guangyey

🐛 Describe the bug

When users explicitly include c10/xpu/XPUStream.h, it raises an error related to c10/xpu/impl/xpu_cmake_macros.h file not found. Because c10/xpu/impl/xpu_cmake_macros.h is not publicly exported. i.e.

In file included from /xxx/lib/python3.10/site-packages/torch/include\
/c10/xpu/XPUStream.h:5:
    In file included from /xxx/lib/python3.10/site-packages/torch/include\
/c10/xpu/XPUFunctions.h:4:
    In file included from /xxx/lib/python3.10/site-packages/torch/include\
/c10/xpu/XPUDeviceProp.h:3:
    /xxx/lib/python3.10/site-packages/torch/include/c10/xpu/XPUMacros.h:4\
:10: fatal error: 'c10/xpu/impl/xpu_cmake_macros.h' file not found
        4 | #include <c10/xpu/impl/xpu_cmake_macros.h>

This bug was reported from https://discuss.pytorch.org/t/how-to-get-the-queue-for-xpu-device/207604

cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @gujinghui @EikanWang @fengyuan14

Metadata

Metadata

Assignees

No one assigned

    Labels

    intelThis tag is for PR from Intelmodule: xpuIntel XPU related issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions