I am Charmie

メモとログ

cuda

CUDAで使うGPUを環境変数で設定

ここに書いてある通り,CUDA_VISIBLE_DEVICESという環境変数にCUDAが使用するGPUのデバイス番号を設定すればいい .bashrcに以下の命令を書き足せばOKかな? # 0番と1番のGPUを使用可能にする場合 export CUDA_VISIBLE_DEVICES=0,1 # 0番と1番のGPUを使用可能…

PyTorch 1.9.0 on Ubuntu 20.04

ここを参考にして,以下の構成でCUDA, gpytorch, botorch, axのインストールに成功 nvidia-driver: 470 CUDA: 11.1 cuDNN: 8.20 PyTorch: 1.9.0の組み合わせ GPyTorch: botorch: 0. バックアップ timeshiftをインストールして,システムバックアップを取る.…

Nvidiaのドライバを間違えてupgradeしちゃった時の対処

3行で nvidiaのドライバを削除 cuda関係のファイルを削除 再インストール 経緯 ubuntuのパッケージマネージャでupgradeをした時に,nvidiaのドライバをupgradeしてしまったっぽく,pytorchでcudaを使った処理ができなくて困った. (実は未だに)状況を完全に…

PyTorch 1.0 with CUDA 10.0 and cuDNN 7.5 on Ubuntu 18.04

This post describes how to setup PyTorch 1.0 with CUDA 10.0 and cuDNN 7.5 on Ubuntu 18.04. Step 0 uninstall CUDA 10.1 related components# uninstall PyTorchconda uninstall pytorch torchvision cudatoolkit# uninstall cuDNNsudo dpkg -r libcudn…

CUDA 10.1 on Ubuntu 18.04

You should first check the compatibility between NVIDIA driver and CUDA here so that you can avoid installing/uninstalling wrong combinations of them. Also, you should check which version are supported by some applications. In my case, I u…

TensorFlow's DLL import error on windows

We need the appropriate cuDNN and this kind of import error occurred by missing the right version. See this release note. TensorFlow 1.3.0 (and other prebuilt binaries) have been built with cuDNN 6 and TensorFlow 1.4 with cuDNN 7. cuDNN in…

cuda toolkit installation on Ubuntu 16.04 after upgrading from Ubuntu 14.04

This post explains how to upgrade cuda toolkit on ubuntu 16.04 after upgrading OS from ubuntu 14.04. I got the following error when I tried to upgrade cuda toolkit from 7.5 to 8.0 by sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb on …

unable to update cuda *** on Ubuntu 14.04

You may have GPG error (NO PUBKEY) related to nvidia's cuda when you apt-get update like: GPG error: http://developer.download.nvidia.com Release: The following signatures couldn't be verified because the public key is not available: NO_PU…