ansibleでml用のpythonでgpuを利用できる環境を自動設定する
ansibleでml用のpythonでgpuを利用できる環境を自動設定する
下記で公開。
https://github.com/notfolder/ml-ansible
下記で環境を構築します。
terminal
$ ansible-playbook -i investory playbook.yml
ubuntu 18.04を想定し、下記環境を構築します。
- pyenvをansible_userに設定
- nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04とほぼ同じセットアップでnvidiaドライバ環境構築
- nvidia-doker2環境を構築
nvidiaのdokcerイメージと同じ環境を作る方法
下記の様に目的のイメージハッシュのページを開くと、IMAGE LAYERS
ごとにコマンドを確認できる。
これをansible化しただけ。
https://hub.docker.com/layers/nvidia/cuda/11.1-cudnn8-devel-ubuntu18.04/images/sha256-c5bf5c984998cc18a3f3a741c2bd7187ed860dc6d993b6fb402d0effb9fe6579?context=explore
Author And Source
この問題について(ansibleでml用のpythonでgpuを利用できる環境を自動設定する), 我々は、より多くの情報をここで見つけました https://qiita.com/notfolder/items/6bd5f475c3c7070c9b1d著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .