参考: https://cppx.hatenablog.com/entry/2019/01/29/134251
https://qiita.com/tatsuya11bbs/items/70205b070c7afd7dd651
既存のドライバ等を削除
sudo apt --purge remove nvidia-*
sudo apt --purge remove cuda-*参考: https://cppx.hatenablog.com/entry/2019/01/29/134251
https://qiita.com/tatsuya11bbs/items/70205b070c7afd7dd651
既存のドライバ等を削除
sudo apt --purge remove nvidia-*
sudo apt --purge remove cuda-*| julia> using CuArrays | |
| Internal error: encountered unexpected error in runtime: | |
| BoundsError(a=Array{Core.Compiler.BasicBlock, (32,)}[ | |
| Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=1, last=7), preds=Array{Int64, (1,)}[32], succs=Array{Int64, (1,)}[2]), | |
| Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=8, last=14), preds=Array{Int64, (1,)}[1], succs=Array{Int64, (2,)}[5, 3]), | |
| Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=15, last=20), preds=Array{Int64, (1,)}[2], succs=Array{Int64, (1,)}[4]), | |
| Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=21, last=21), preds=Array{Int64, (1,)}[3], succs=Array{Int64, (1,)}[7]), | |
| Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=22, last=28), preds=Array{Int64, (1,)}[2], succs=Array{Int64, (1,)}[6]), | |
| Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=29, last=29), preds=Array{Int64, (1,)}[5], succs=Array{Int64, (1,)}[7]), | |
| Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(first=30, last=47 |
| FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 | |
| #FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04 | |
| #FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu16.04 | |
| #FROM pytorch/pytorch:1.1.0-cuda10.0-cudnn7.5-devel | |
| ENV LANG C.UTF-8 | |
| ENV NVIDIA_VISIBLE_DEVICES 0 | |
| ENV NVIDIA_DRIVER_CAPABILITIES utility,compute | |
| #ENV CUDA_PATH /usr/local/cuda | |
| ENV CUDA_ROOT /usr/local/cuda |