Ubuntu 장착된 CPU 및 GPU 그래픽카드 확인 코드
CPU 전체 정보 확인 $ cat /proc/cpuinfo CPU 코어 수 확인 $ cat /proc/cpuinfo | grep processor | wc -l 논리 코어 수 확인 $ grep -c processor /proc/cpuinfo 물리 CPU 개수 확인 $ grep "physical id" /proc/cpuinfo | sort -u | wc -l CPU당 물리 코어 수 확인 $ grep "cpu cores" /proc/cpuinfo | tail -1 우분투 그래픽 카드 GPU 확인 방법 $ lspci | grep -i VGA 혹은 $ nvidia-smi --query | fgrep 'Product Name'
Setting/Ubuntu
2019. 5. 30. 22:20

Ubuntu에서 GPU 그래픽 카드 사용상태를 확인하는 방법에는 여러가지가 있습니다. 1. nvidia-smi $ nvidia-smi -l 1 -l 은 갱신시간 옵션이므로 1을 입력할 경우 1초마다 정보가 갱신됩니다. 이 화면이 계속 갱신되고 Processes에서 사용 중인 GPU Memory와 사용처 등을 확인할 수 있습니다. 아래 명령어로 위 방법보다 조금 더 느낌있게 사용할 수 있습니다. $ watch -d -n 0.5 nvidia-smi 2. gpustat // gpustat 설치 $ pip install gpustat // gpustat 실행 $ gpustat -i
Setting/Ubuntu
2019. 5. 7. 17:44
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- GaussianSplatting
- MacOS
- Object Detection
- nginx
- nvidia
- 2-stage Detector
- SSH
- vscode
- numpy
- GPU
- MySQL
- pytorch
- Python
- Android
- Deep Learning
- nerf
- Docker
- Novel View Synthesis
- CUDA
- git
- Computer Vision
- java
- Machine Learning
- Neural Radiance Field
- error
- 우분투
- 3Dvision
- ubuntu
- Macbook
- Anaconda
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함