Giter VIP home page Giter VIP logo

Comments (1)

williamtwomey avatar williamtwomey commented on May 20, 2024

FWIW, this appears to be recently introduced - 0.13.1 does not have this issue, but 0.14.1+ do. (This on Debian Bookworm, using python 3.11.2 as well as conda 3.11.9)

python3.11-dev is installed

[1/11] c++ -MMD -MF pt_binding.o.d -DTORCH_EXTENSION_NAME=transformer_inference -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/includes -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/includes -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/TH -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -std=c++17 -g -Wno-reorder -DBF16_AVAILABLE -c /home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp -o pt_binding.o
FAILED: pt_binding.o
c++ -MMD -MF pt_binding.o.d -DTORCH_EXTENSION_NAME=transformer_inference -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/includes -I/home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/includes -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/TH -isystem /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -std=c++17 -g -Wno-reorder -DBF16_AVAILABLE -c /home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp -o pt_binding.o
In file included from /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/Device.h:4,
                 from /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
                 from /home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/extension.h:9,
                 from /home/user/python-3.11-venv/lib/python3.11/site-packages/deepspeed/ops/csrc/transformer/inference/csrc/pt_binding.cpp:7:
/home/user/python-3.11-venv/lib/python3.11/site-packages/torch/include/torch/csrc/python_headers.h:12:10: fatal error: Python.h: No such file or directory
   12 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.

from deepspeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.