I use
$nvidia-docker run -e TERM=dumb -v /usr/local/cuda:/usr/local/cuda -i -t kaixhin/torch /bin/bash
and I was able to run luarocks install cutorch
. But when testing the library, I get the error on cuda.
require 'cutorch'
THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-7401/cutorch/lib/THC/THCGeneral.c line=70 error=35 : CUDA driver version is insufficient for CUDA runtime version