0

我正在尝试使用 parapooling 在 matconvnet 中运行 mnist 示例。我分配了 2 个 gpus,但在尝试运行 cnn_mnist_experiments 时显示此错误:

   Error using cnn_train>(spmd) (line 157)
Error detected on workers 1 2.

Error in cnn_train (line 157)
    spmd

Error in cnn_mnist (line 55)
[net, info] = trainfn(net, imdb, getBatch(opts), ...

Error in cnn_mnist_experiments (line 3)
[net_bn, info_bn] = cnn_mnist(...

Caused by:
    Error using ParameterServer/startWithMMap (line 170)
    An UndefinedFunction error was thrown on the workers for 'vl_cudatool'.  This may be because the
    file containing 'vl_cudatool' is not accessible on the workers.  Specify the required files for
    this parallel pool using the command: addAttachedFiles(pool, ...).  See the documentation for
    parpool for more details.
        Undefined function 'vl_cudatool' for input arguments of type 'single'.
    Error using ParameterServer/startWithMMap (line 170)
    An UndefinedFunction error was thrown on the workers for 'vl_cudatool'.  This may be because the
    file containing 'vl_cudatool' is not accessible on the workers.  Specify the required files for
    this parallel pool using the command: addAttachedFiles(pool, ...).  See the documentation for
    parpool for more details.
        Undefined function 'vl_cudatool' for input arguments of type 'single'.

显然,工作人员无法访问“vl_cudatool”文件。这里可能是什么问题?

4

1 回答 1

0

'single' 类型的输入参数的未定义函数'vl_cudatool'。

这意味着您的 vl_cudatool 函数不在您的路径中

尝试

which vl_cudatool

我不知道 vl_cudatool 是什么。也许您可以尝试一些早期版本的 MatConvNet?

于 2017-06-21T21:10:25.433 回答