NVCC fatal:cannot find compiler ' cl.exe ' in path workaround

Source: Internet
Author: User
Tags theano nvcc

I am testing the installation of the Deep learning tool Theano. Follow the official website Baby Steps-algebra Step-by-step input.

>>> 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 No problem, define X, Y, Z are fine. The last step f = function ([x, y], z) is an error.

The error is "NVCC fatal:cannot find compiler ' cl.exe ' in PATH" said is the lack of cl.exe, do not know what this file to do, Google search for a bit. See someone say cl.exe in a directory similar to "C:\Program Files\Microsoft Visual Studio 10.0\vc\bin". Look for a look for sure, add this path to the environment variable.

Re-test, the original error no longer have, and come out a new problem, but fortunately does not affect the final result ...

>>> x = t.dsc>>> y = t.dsc>>> z = x + y>>> f = functdebug:nvcc STDOUT mod.cu ...   . .............................>>> F (2, 3) array (5.0)

  

NVCC fatal:cannot find compiler ' cl.exe ' in path workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.