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)
    

      

  • 相关阅读:
    c# 中的线程和同步
    Javascript 观察者模式
    连接SQLite 创建ADO.net实体类
    给软件增加注册功能 c#
    log4net 使用步骤
    C# 操作 Excel
    PCL编译历程
    设计模式
    kinect
    eclipse配置servlet错误
  • 原文地址:https://www.cnblogs.com/naive/p/4796856.html
Copyright © 2011-2022 走看看