Installing theano on Windows 8 with GPU enabled

后端 未结 7 1261
悲&欢浪女
悲&欢浪女 2020-12-02 13:52

I understand that the Theano support for Windows 8.1 is at experimental stage only but I wonder if anyone had any luck with resolving my issues. Depending on my config, I ge

7条回答
  •  盖世英雄少女心
    2020-12-02 14:19

    I used this guide, and it was quite helpful. What many of Windows Theano guides only mention in passing (or not at all) is that you will need to compile theano from mingw shell, not from your IDE.

    I ran mingw-w64.bat, and from there "python" and "import theano". Only after that importing it from pycharm works.

    Additionally, official instructions on deeplearning.net are bad because they tell you to use CUDA 5.5, but it won't work with newer video cards.

    The comments are also quite helpful. If it complains about missing crtdefs.h or basetsd.h, do what Sunando's answer says. If AFTER THAT it still complains that identifier "Iunknown" is undefined in objbase.h, stick the following in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\objbase.h file, on line 236:

    #include 
    #include 
    

    I had to do this last part to make it work with bleeding edge install (required for parts of Keras).

    I also wrote a list of things that worked for me, here: http://acoupleofrobots.com/everything/?p=2238 This is for 64 bit version.

提交回复
热议问题