About Pytorch A collection of issues for editing on Windows

Source: Internet
Author: User
Tags pytorch

CMake automatically looks for v140 (VS2015) compiler on Windows, and now only VS2013 IDE, so to modify the compiler

Modify the compiler name of VS2015, error prompt parameter Cmake_c_compiler and cmake_cxx_compiler parameter corresponding address cannot find

These two variables are explicitly set in CMakeLists.txt, pointing to the path of the VS2013 compiler, which can be compiled

However, after the VS2015 compiler file name is changed back, the changes in the CMakeLists.txt are useless and will be compiled with the default compiler.

I got a look. How to modify the specified compiler correctly on Windows, the main reference is:

https://stackoverflow.com/questions/13054451/unable-to-specify-the-compiler-with-cmake/13089688#13089688

The answer is not to change the parameters directly in the CMakeLists.txt, but to add the environment variables cc and CXX, or the command line with the-D parameter assignment

About Pytorch A collection of issues for editing on Windows

Related Article

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.