Comments (2)
pycuda包将内置在homepod:2.0 pro版本中,标准版不支持是因为缺少cuda开发环境。
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -fwrapv -Wall -O3 -DNDEBUG -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_PYTHON_SOURCE=1 -Dboost=pycudaboost -DBOOST_THREAD_DONT_USE_CHRONO=1 -DPYGPU_PACKAGE=pycuda -DPYGPU_PYCUDA=1 -DHAVE_CURAND=1 -Isrc/cpp -Ibpl-subset/bpl_subset -I/opt/conda/lib/python3.8/site-packages/numpy/core/include -I/opt/conda/include/python3.8 -c src/cpp/cuda.cpp -o build/temp.linux-x86_64-3.8/src/cpp/cuda.o
In file included from src/cpp/cuda.cpp:4:
src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory
14 | #include <cuda.h>
| ^~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
from mlab.
使用命令:
pip3 install 'pycuda<2021.1'
否则会报错:
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python /opt/conda/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9y4nl9bn/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'numpy; python_version >= '"'"'3.10'"'"'' 'numpy==1.19.5; python_version >= '"'"'3.8'"'"' and python_version < '"'"'3.10'"'"'' 'numpy==1.15.4; python_version >= '"'"'3.7'"'"' and python_version < '"'"'3.8'"'"'' 'numpy==1.12.1; python_version < '"'"'3.7'"'"''
cwd: None
Complete output (42 lines):
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.8/site-packages/pip/__main__.py", line 26, in <module>
sys.exit(_main())
File "/opt/conda/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 73, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/opt/conda/lib/python3.8/site-packages/pip/_internal/commands/__init__.py", line 104, in create_command
module = importlib.import_module(module_path)
File "/opt/conda/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/conda/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 17, in <module>
from pip._internal.cli.req_command import RequirementCommand, with_cleanup
File "/opt/conda/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 16, in <module>
from pip._internal.index.collector import LinkCollector
File "/opt/conda/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 14, in <module>
from pip._vendor import html5lib, requests
File "/opt/conda/lib/python3.8/site-packages/pip/_vendor/requests/__init__.py", line 125, in <module>
from . import utils
File "/opt/conda/lib/python3.8/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from . import certs
File "/opt/conda/lib/python3.8/site-packages/pip/_vendor/requests/certs.py", line 15, in <module>
from pip._vendor.certifi import where
File "/opt/conda/lib/python3.8/site-packages/pip/_vendor/certifi/__init__.py", line 1, in <module>
from .core import contents, where
File "/opt/conda/lib/python3.8/site-packages/pip/_vendor/certifi/core.py", line 12, in <module>
from importlib.resources import path as get_path, read_text
File "/opt/conda/lib/python3.8/importlib/resources.py", line 11, in <module>
from typing import Iterable, Iterator, Optional, Set, Union # noqa: F401
File "/opt/conda/lib/python3.8/site-packages/typing.py", line 1359, in <module>
class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
File "/opt/conda/lib/python3.8/site-packages/typing.py", line 1007, in __new__
self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/bin/python /opt/conda/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-9y4nl9bn/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'numpy; python_version >= '"'"'3.10'"'"'' 'numpy==1.19.5; python_version >= '"'"'3.8'"'"' and python_version < '"'"'3.10'"'"'' 'numpy==1.15.4; python_version >= '"'"'3.7'"'"' and python_version < '"'"'3.8'"'"'' 'numpy==1.12.1; python_version < '"'"'3.7'"'"'' Check the logs for full command output.
from mlab.
Related Issues (20)
- homepod:2.0-pro torch.cuda.is_available return False and throws " Error 804: forward compatibility was attempted on non supported HW " HOT 5
- MLab HomdPod 2.1 待添加功能
- MLab RookPod 1.0 计划的功能
- 在MLab HomePod 2.0 pro上编译基于pybind11的程序出错 HOT 2
- Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired HOT 1
- [新功能] 自MLab HomePod 2.0 pro以来pytorch的更新 HOT 3
- coremltools >= 5.0b2 is required while numpy >= 1.20 HOT 1
- pytorch: RuntimeError: 1D tensors expected, but got 2D and 2D tensors HOT 1
- pytorch: RuntimeError: 1D tensors expected, but got 2D and 2D tensors HOT 2
- undefined symbol: _ZN3c106ivalue6Future15extractDataPtrsERKNS_6IValueE HOT 1
- HomePod上训练“TEXT CLASSIFICATION WITH THE TORCHTEXT LIBRARY”例子报错 HOT 1
- Resource punkt not found. Please use the NLTK Downloader to obtain the resource: HOT 1
- RuntimeError: cuda runtime error (710) : device-side assert triggered at ...... HOT 2
- OSError: [E050] Can't find model 'de_core_news_sm'. It doesn't seem to be a Python package or a valid path to a data directory. HOT 1
- 跑PyTorch transformer demo的时候报错:ModuleNotFoundError: No module named 'spacy' HOT 1
- 运行woeusb时出错 HOT 1
- docker pull image,pull到一半的时候报错:unauthorized: authentication required HOT 1
- Error reading custom ACPI table. (VERR_FILE_NOT_FOUND). HOT 1
- docker 启动一半报错startplasma-x11 不存在 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlab.