Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vLlm-serving] When run "VLLM_BUILD_XPU_OPS=1 pip install --no-build-isolation -v -e . ", it reports can't find dpct.hpp #10825

Closed
johnysh opened this issue Apr 22, 2024 · 11 comments
Assignees

Comments

@johnysh
Copy link

johnysh commented Apr 22, 2024

I followed the steps to install vLlm-serving , but when ran VLLM_BUILD_XPU_OPS=1 pip install --no-build-isolation -v -e ., it reports an error couldn't find dpct.hpp
log as below:
/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/intel_extension_for_pytorch/include -isystem /home/intel/miniconda3/envs/ipex-vllm/include/python3.11 -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/torch/include -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -O2 -g -DNDEBUG -std=gnu++17 -fPIC -DVLLM_BUILD_XPU_OPS -fsycl -fsycl-targets=spir64 -D_GLIBCXX_USE_CXX11_ABI=1 -MD -MT CMakeFiles/_C.dir/csrc/xpu/layernorm_xpu.cpp.o -MF CMakeFiles/_C.dir/csrc/xpu/layernorm_xpu.cpp.o.d -o CMakeFiles/_C.dir/csrc/xpu/layernorm_xpu.cpp.o -c /home/intel/vllm/csrc/xpu/layernorm_xpu.cpp
/home/intel/vllm/csrc/xpu/layernorm_xpu.cpp:6:10: fatal error: 'dpct/dpct.hpp' file not found
6 | #include <dpct/dpct.hpp>
| ^~~~~~~~~~~~~~~
1 error generated.
[3/9] Building CXX object CMakeFiles/_C.dir/csrc/xpu/cache_ops_xpu.cpp.o
FAILED: CMakeFiles/_C.dir/csrc/xpu/cache_ops_xpu.cpp.o
ccache icpx -DTORCH_EXTENSION_NAME=_C -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -D_C_EXPORTS -I/home/intel/vllm/csrc -I/opt/intel/oneapi/compiler/2024.0/include/sycl -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/intel_extension_for_pytorch/include -isystem /home/intel/miniconda3/envs/ipex-vllm/include/python3.11 -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/torch/include -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -O2 -g -DNDEBUG -std=gnu++17 -fPIC -DVLLM_BUILD_XPU_OPS -fsycl -fsycl-targets=spir64 -D_GLIBCXX_USE_CXX11_ABI=1 -MD -MT CMakeFiles/_C.dir/csrc/xpu/cache_ops_xpu.cpp.o -MF CMakeFiles/_C.dir/csrc/xpu/cache_ops_xpu.cpp.o.d -o CMakeFiles/_C.dir/csrc/xpu/cache_ops_xpu.cpp.o -c /home/intel/vllm/csrc/xpu/cache_ops_xpu.cpp
/home/intel/vllm/csrc/xpu/cache_ops_xpu.cpp:6:10: fatal error: 'dpct/dpct.hpp' file not found
6 | #include <dpct/dpct.hpp>
| ^~~~~~~~~~~~~~~
1 error generated.
[4/9] Building CXX object CMakeFiles/_C.dir/csrc/xpu/attention_xpu.cpp.o
FAILED: CMakeFiles/_C.dir/csrc/xpu/attention_xpu.cpp.o
ccache icpx -DTORCH_EXTENSION_NAME=_C -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -D_C_EXPORTS -I/home/intel/vllm/csrc -I/opt/intel/oneapi/compiler/2024.0/include/sycl -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/intel_extension_for_pytorch/include -isystem /home/intel/miniconda3/envs/ipex-vllm/include/python3.11 -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/torch/include -isystem /home/intel/miniconda3/envs/ipex-vllm/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -O2 -g -DNDEBUG -std=gnu++17 -fPIC -DVLLM_BUILD_XPU_OPS -fsycl -fsycl-targets=spir64 -D_GLIBCXX_USE_CXX11_ABI=1 -MD -MT CMakeFiles/_C.dir/csrc/xpu/attention_xpu.cpp.o -MF CMakeFiles/_C.dir/csrc/xpu/attention_xpu.cpp.o.d -o CMakeFiles/_C.dir/csrc/xpu/attention_xpu.cpp.o -c /home/intel/vllm/csrc/xpu/attention_xpu.cpp
/home/intel/vllm/csrc/xpu/attention_xpu.cpp:6:10: fatal error: 'dpct/dpct.hpp' file not found
6 | #include <dpct/dpct.hpp>

@gc-fu
Copy link
Contributor

gc-fu commented Apr 22, 2024

Hi, I am working on to reproduce this issue. Will update to this thread.

@gc-fu
Copy link
Contributor

gc-fu commented Apr 22, 2024

My installment according to this https://github.com/intel-analytics/ipex-llm/tree/main/python/llm/example/GPU/vLLM-Serving#1-install-1 succussed without error.

Can you check your oneAPI version through:

source /opt/intel/oneapi/setvars.sh
dpcpp --version

Also, can you try to search dpct.hpp like this:

find /opt/intel/oneapi/ -name "dpct.hpp"

@johnysh
Copy link
Author

johnysh commented Apr 22, 2024

(ipex-vllm) intel@intel-0:~/vllm$ source /opt/intel/oneapi/setvars.sh --force

:: initializing oneAPI environment ...
-bash: BASH_VERSION = 5.1.16(1)-release
args: Using "$@" for setvars.sh arguments: --force
:: ccl -- latest
:: compiler -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dnnl -- latest
:: dpl -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: oneAPI environment initialized ::

(ipex-vllm) intel@intel-0:/vllm$ dpcpp --version
icpx: warning: use of 'dpcpp' is deprecated and will be removed in a future release. Use 'icpx -fsycl' [-Wdeprecated]
Intel(R) oneAPI DPC++/C++ Compiler 2024.0.2 (2024.0.2.20231213)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.0/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.0/bin/compiler/../icpx.cfg
(ipex-vllm) intel@intel-0:
/vllm$

@gc-fu
Copy link
Contributor

gc-fu commented Apr 22, 2024

Hi, can you search for file "dpct.hpp"?

In my environment, it shows that it is located in oneAPI install dir:
image

@johnysh
Copy link
Author

johnysh commented Apr 22, 2024

In my environment , I can't find this
(ipex-vllm) intel@intel-0:/opt/intel/oneapi$ ls
ccl common compiler debugger dev-utilities diagnostics dnnl dpl licensing mkl modulefiles-setup.sh mpi setvars.sh support.txt tbb tcm

I use below commnad to install
sudo apt install intel-oneapi-common-vars=2024.0.0-49406
intel-oneapi-compiler-cpp-eclipse-cfg=2024.0.2-49895
intel-oneapi-compiler-dpcpp-eclipse-cfg=2024.0.2-49895
intel-oneapi-diagnostics-utility=2024.0.0-49093
intel-oneapi-compiler-dpcpp-cpp=2024.0.2-49895
intel-oneapi-mkl=2024.0.0-49656
intel-oneapi-mkl-devel=2024.0.0-49656
intel-oneapi-mpi=2021.11.0-49493
intel-oneapi-mpi-devel=2021.11.0-49493
intel-oneapi-tbb=2021.11.0-49513
intel-oneapi-tbb-devel=2021.11.0-49513
intel-oneapi-ccl=2021.11.2-5
intel-oneapi-ccl-devel=2021.11.2-5
intel-oneapi-dnnl-devel=2024.0.0-49521
intel-oneapi-dnnl=2024.0.0-49521
intel-oneapi-tcm-1.0=1.0.0-435

@gc-fu
Copy link
Contributor

gc-fu commented Apr 22, 2024

I will try to reproduce this issue according to your config.

@johnysh
Copy link
Author

johnysh commented Apr 22, 2024

I uninstall before it , and use this cmd to install again
sudo bash ./l_BaseKit_p_2024.0.1.46_offline.sh -a --silent --eula accept --install-dir=/opt/intel/oneapi
then could find header file and compile successfully , but I don't know why previous oneapi install cmd couldn't install successfully.

@johnysh
Copy link
Author

johnysh commented Apr 22, 2024

when I run "pip install interegular cloudpickle diskcache joblib lark nest-asyncio numba scipy", I meet
image

Can I ignore it?

@gc-fu
Copy link
Contributor

gc-fu commented Apr 22, 2024

Yes, you can ignore it.

@gc-fu
Copy link
Contributor

gc-fu commented Apr 25, 2024

This problem is caused by not installing this package:
intel-oneapi-dpcpp-ct-2024.0 through apt-get

@gc-fu gc-fu self-assigned this Apr 25, 2024
@gc-fu
Copy link
Contributor

gc-fu commented Apr 25, 2024

Closed.

If you still have problems, feel free to reopen this.

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

No branches or pull requests

3 participants