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

How can i install on cpu? #619

Open
Pathomphop opened this issue Oct 5, 2023 · 0 comments
Open

How can i install on cpu? #619

Pathomphop opened this issue Oct 5, 2023 · 0 comments

Comments

@Pathomphop
Copy link

No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/adet
copying adet/init.py -> build/lib.linux-x86_64-3.9/adet
creating build/lib.linux-x86_64-3.9/adet/utils
copying adet/utils/init.py -> build/lib.linux-x86_64-3.9/adet/utils
copying adet/utils/visualizer.py -> build/lib.linux-x86_64-3.9/adet/utils
copying adet/utils/comm.py -> build/lib.linux-x86_64-3.9/adet/utils
copying adet/utils/misc.py -> build/lib.linux-x86_64-3.9/adet/utils
creating build/lib.linux-x86_64-3.9/adet/data
copying adet/data/init.py -> build/lib.linux-x86_64-3.9/adet/data
copying adet/data/detection_utils.py -> build/lib.linux-x86_64-3.9/adet/data
copying adet/data/builtin.py -> build/lib.linux-x86_64-3.9/adet/data
copying adet/data/dataset_mapper.py -> build/lib.linux-x86_64-3.9/adet/data
copying adet/data/augmentation.py -> build/lib.linux-x86_64-3.9/adet/data
creating build/lib.linux-x86_64-3.9/adet/config
copying adet/config/init.py -> build/lib.linux-x86_64-3.9/adet/config
copying adet/config/config.py -> build/lib.linux-x86_64-3.9/adet/config
copying adet/config/defaults.py -> build/lib.linux-x86_64-3.9/adet/config
creating build/lib.linux-x86_64-3.9/adet/checkpoint
copying adet/checkpoint/adet_checkpoint.py -> build/lib.linux-x86_64-3.9/adet/checkpoint
copying adet/checkpoint/init.py -> build/lib.linux-x86_64-3.9/adet/checkpoint
creating build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/rrc_evaluation_funcs_det.py -> build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/text_eval_script.py -> build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/text_eval_script_det.py -> build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/init.py -> build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/lexicon_procesor.py -> build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/text_evaluation.py -> build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/text_evaluation_det.py -> build/lib.linux-x86_64-3.9/adet/evaluation
copying adet/evaluation/rrc_evaluation_funcs.py -> build/lib.linux-x86_64-3.9/adet/evaluation
creating build/lib.linux-x86_64-3.9/adet/modeling
copying adet/modeling/init.py -> build/lib.linux-x86_64-3.9/adet/modeling
copying adet/modeling/transformer_detector.py -> build/lib.linux-x86_64-3.9/adet/modeling
creating build/lib.linux-x86_64-3.9/adet/layers
copying adet/layers/deformable_transformer.py -> build/lib.linux-x86_64-3.9/adet/layers
copying adet/layers/ms_deform_attn.py -> build/lib.linux-x86_64-3.9/adet/layers
copying adet/layers/init.py -> build/lib.linux-x86_64-3.9/adet/layers
copying adet/layers/pos_encoding.py -> build/lib.linux-x86_64-3.9/adet/layers
creating build/lib.linux-x86_64-3.9/adet/modeling/dptext_detr
copying adet/modeling/dptext_detr/utils.py -> build/lib.linux-x86_64-3.9/adet/modeling/dptext_detr
copying adet/modeling/dptext_detr/matcher.py -> build/lib.linux-x86_64-3.9/adet/modeling/dptext_detr
copying adet/modeling/dptext_detr/init.py -> build/lib.linux-x86_64-3.9/adet/modeling/dptext_detr
copying adet/modeling/dptext_detr/models.py -> build/lib.linux-x86_64-3.9/adet/modeling/dptext_detr
copying adet/modeling/dptext_detr/losses.py -> build/lib.linux-x86_64-3.9/adet/modeling/dptext_detr
running build_ext
/usr/local/lib/python3.9/site-packages/torch/utils/cpp_extension.py:370: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
building 'adet._C' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/content
creating build/temp.linux-x86_64-3.9/content/DPText-DETR
creating build/temp.linux-x86_64-3.9/content/DPText-DETR/adet
creating build/temp.linux-x86_64-3.9/content/DPText-DETR/adet/layers
creating build/temp.linux-x86_64-3.9/content/DPText-DETR/adet/layers/csrc
creating build/temp.linux-x86_64-3.9/content/DPText-DETR/adet/layers/csrc/DeformAttn
gcc -pthread -B /usr/local/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /usr/local/include -fPIC -O2 -isystem /usr/local/include -fPIC -I/content/DPText-DETR/adet/layers/csrc -I/usr/local/lib/python3.9/site-packages/torch/include -I/usr/local/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.9/site-packages/torch/include/TH -I/usr/local/lib/python3.9/site-packages/torch/include/THC -I/usr/local/include/python3.9 -c /content/DPText-DETR/adet/layers/csrc/DeformAttn/ms_deform_attn_cpu.cpp -o build/temp.linux-x86_64-3.9/content/DPText-DETR/adet/layers/csrc/DeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
In file included from /content/DPText-DETR/adet/layers/csrc/DeformAttn/ms_deform_attn_cpu.cpp:14:
/usr/local/lib/python3.9/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory
5 | #include <cuda_runtime_api.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1

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

No branches or pull requests

1 participant