尽管有 4 个 GPU,每个 GPU 都有约 20GB vRAM,但 docker 无法使用以下命令运行。我该如何解决这个问题?
[20:08:28] jalal@echo:~/research/code$ docker run --shm-size 2GB -it --gpus all docurdt/heal
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container: context canceled
[20:08:20] jalal@echo:~/research/code$ nvidia-smi
Fri Apr 1 20:08:28 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.47.03 Driver Version: 510.47.03 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util …
Run Code Online (Sandbox Code Playgroud) 我收到以下错误:
jalal@klein:~$ ssh -i "hyunwoo_key.pem" ubuntu@ec2-52-23-201-2.compute-1.amazonaws.com
ssh: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libcrypto.so.1.0.0: no version information available (required by ssh)
ssh: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libcrypto.so.1.0.0: no version information available (required by ssh)
OpenSSL version mismatch. Built against 1000207f, you have 100010bf
jalal@klein:~$ openssl version
openssl: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libssl.so.1.0.0: no version information available (required by openssl)
openssl: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libssl.so.1.0.0: no version information available (required by openssl)
openssl: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libssl.so.1.0.0: no version information available (required by openssl)
openssl: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libcrypto.so.1.0.0: no version information available (required by openssl)
openssl: /home/jalal/computer_vision/MCR/v901/bin/glnxa64/libcrypto.so.1.0.0: no version information available (required by …
Run Code Online (Sandbox Code Playgroud) 我该如何解决这个问题?
mona@pascal:~$ sudo apt-get update
Ign file: InRelease
Get:1 file: Release.gpg [181 B]
Get:2 file: Release [196 B]
Ign file: Translation-en_US
Ign file: Translation-en
Hit http://storage.googleapis.com stable InRelease
Hit http://storage.googleapis.com stable/jdk1.8 amd64 Packages
Ign http://us.archive.ubuntu.com trusty InRelease
Get:3 http://us.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://ppa.launchpad.net trusty InRelease
Get:4 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:5 http://us.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Ign http://developer.download.nvidia.com InRelease
Get:6 http://developer.download.nvidia.com Release.gpg [819 B]
Hit http://developer.download.nvidia.com Release
Ign http://developer.download.nvidia.com Release
Hit http://us.archive.ubuntu.com …
Run Code Online (Sandbox Code Playgroud) 我有:
mona@pascal:~$ cat /etc/default/sysstat
#
# Default settings for /etc/init.d/sysstat, /etc/cron.d/sysstat
# and /etc/cron.daily/sysstat files
#
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
Run Code Online (Sandbox Code Playgroud)
进而:
mona@pascal:~$ sudo sar -d
Cannot open /var/log/sysstat/sa20: No such file or directory
Please check if data collecting is enabled in /etc/default/sysstat
Run Code Online (Sandbox Code Playgroud)
你能建议修复吗?
Ubuntu 14.04
Run Code Online (Sandbox Code Playgroud) 为什么 xargs 不能删除名称中带有空格的目录,以及如何解决这个问题?
76 find . -type d |xargs rm -rf
77 rm -rf fire\ hydrant/
78 rm -rf wine\ glass/
79 rm -rf tennis\ racket/
80 rm -rf traffic\ light/
81 rm -rf parking\ meter/
82 rm -rf teddy\ bear/
83 rm -rf sports\ ball/
84 rm -rf cell\ phone/
85 rm -rf stop\ sign/
86 rm -rf dining\ table/
87 rm -rf potted\ plant/
Run Code Online (Sandbox Code Playgroud) 所以我只是做了一个sudo apt-get upgrade
并回答Y
了它问我的一个问题,现在我不再是一个 sudoer。甚至我们的根也不再是 sudoer。解决办法是什么?
Configuration file '/etc/sudoers'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is …
Run Code Online (Sandbox Code Playgroud) 我应该如何解决 Ubuntu16.04 中的这个错误?
import cv2
File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/cv2/__init__.py", line 3, in <module>
from .cv2 import *
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud) 你能帮我解决这个错误吗?
mona@pascal:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
mona@pascal:~$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch
mona@pascal:~$ lsmod | grep -i nvidia
nvidia 8643887 0
drm 303102 1 nvidia
Run Code Online (Sandbox Code Playgroud)
我也在 dmesg 中得到了这个:
mona@pascal:~$ dmesg | grep -i nvidia
[623245.802854] NVRM: nvidia_frontend_ioctl: minor 255, module->ioctl failed, error -22
[623245.814561] NVRM: make sure that this kernel module and all NVIDIA driver
[623245.814568] NVRM: nvidia_frontend_ioctl: minor …
Run Code Online (Sandbox Code Playgroud) 我创建了一个 csv 文件,但忘记添加行号作为第一列。执行此操作的最快方法是什么(对于大文件)?
262145,umbrella,umbrella,carrot,carrot,carrot,carrot,person,person,person,person,person,person,person,person,person,person,person,person,umbrella,carrot,carrot,carrot,carrot,carrot,carrot,carrot,carrot,person,umbrella,carrot,person,carrot
262146,person,skis,backpack
524291,dog,dog,person,frisbee
393223,toothbrush,person
393224,tie,person,person,person,person,person
524297,person,person,person,bear
393227,person,skateboard
131084,motorcycle,person
393230,person,skis
524311,chair,person,remote
393241,frisbee,person,person,person,person,person,person,person,person,person,car,car,person,car,car,person,person,person
524314,car,person,person,teddy bear,car,handbag,cell phone,car,handbag,teddy bear
262171,boat,person,person,person,person,person,person,boat,person
131101,umbrella,person,person,backpack,handbag,person
524320,tie,person,person,suitcase,person
Run Code Online (Sandbox Code Playgroud)
我想要这样的东西:
1,262145,umbrella,umbrella,carrot,carrot,carrot,carrot,person,person,person,person,person,person,person,person,person,person,person,person,umbrella,carrot,carrot,carrot,carrot,carrot,carrot,carrot,carrot,person,umbrella,carrot,person,carrot
2,262146,person,skis,backpack
Run Code Online (Sandbox Code Playgroud) 我通过大学许可证安装了 MATLAB 2020,我注意到字体特别小。此外,在 Ubuntu 启动时,会为我的密码打开一个 GUI,它也非常小。我在 Ubuntu 20.04 中使用的其他 GUI 窗口没有这个问题。原因是什么,我该如何解决?
专门用于 MATLAB。