zoukankan      html  css  js  c++  java
  • nvcc fatal : Cannot find compiler 'cl.exe' in PATH解决方法

    我在测试安装的deep learning工具theano。按照官网Baby Steps - Algebra一步步输入。

    >>> import theano.tensor as T
    >>> from theano import function
    >>> x = T.dscalar('x')
    >>> y = T.dscalar('y')
    >>> z = x + y
    >>> f = function([x, y], z)
    

      import theano没有问题,定义x, y, z都没问题。最后一步f = function([x, y], z)的时候报错了。

         错误是“nvcc fatal : Cannot find compiler 'cl.exe' in PATH” 说是缺少cl.exe,不知道这个文件做什么,用Google搜索了一下。看到有人说cl.exe在类似“C:Program FilesMicrosoft Visual Studio 10.0VCin”的目录下。找了找果然有,把这个路径加入环境变量。

         重新测试,原来那个报错不再有了,又出来一个新问题,不过好在不影响最后结果。。。

    >>> x = T.dsc
    >>> y = T.dsc
    >>> z = x + y
    >>> f = funct
    DEBUG: nvcc STDOUT mod.cu
       .................................
    >>> f(2, 3)
    array(5.0)
    

      

  • 相关阅读:
    php高效率写法
    php经典bug
    cideogniter部署到阿里云服务器出现session加载错误
    linux gcc编译protocol
    linux权限问题
    http协议详解
    哈希表
    c语言函数
    socket相关函数
    构建之法阅读笔记05
  • 原文地址:https://www.cnblogs.com/naive/p/4796856.html
Copyright © 2011-2022 走看看