如何安装cudnn.torch?

How to install cudnn.torch?

Their page 包含 Installation 部分,但不了解 torch 和 lua(比如我)的人无法理解:部分列举先决条件安装,但没有字关于 cudnn.torch 本身。

存储库包含一堆 lua 文件。如何处理它们 "install"?

你必须先安装cuda (https://developer.nvidia.com/cuda-downloads), then download the cudnn bindings (https://developer.nvidia.com/cuda-downloads)。

那么如果你已经安装了torch,luarocks install cudnn应该就够了。

如需完整安装,您可以查看 this tuto

您需要从 github 存储库安装:

git clone https://github.com/soumith/cudnn.torch
cd cudnn.torch
luarocks make

根据您安装的 CUDA 版本,您可能需要指定回购的特定分支,例如git clone https://github.com/soumith/cudnn.torch.git -b R7