theano g++ 未检测到,但我已成功安装 g++
theano g++ not detected, But I have successfully installed g++
成功安装theano后,我使用:
import theano
它只是向我显示警告:
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will
default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
g++ 未检测到!但是我已经成功安装了 g++:
C:\Users\dell>g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=d:/mingw/bin/../libexec/gcc/mingw32/4.9.3/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-4.9.3/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,
fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-nls
Thread model: win32
gcc version 4.9.3 (GCC)
我想优化我的程序并使用GPU加速,我该如何解决这个问题?非常感谢!
- Win7,64操作系统
- 已安装 MinGW
- Pycharm
- theano-0.8.2, python2.7
我第一次import theano
的时候遇到错误error: '::hypot' has not been declared
,我跟着成功导入了。
然后以下步骤在 win10 上对我有效
- 安装mingw64
- 将
C:\Program Files\mingw-w64\mingw64\bin
添加到 PATH
- 重启电脑
然后警告消失了
成功安装theano后,我使用:
import theano
它只是向我显示警告:
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will
default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
g++ 未检测到!但是我已经成功安装了 g++:
C:\Users\dell>g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=d:/mingw/bin/../libexec/gcc/mingw32/4.9.3/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-4.9.3/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,
fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-nls
Thread model: win32
gcc version 4.9.3 (GCC)
我想优化我的程序并使用GPU加速,我该如何解决这个问题?非常感谢!
- Win7,64操作系统
- 已安装 MinGW
- Pycharm
- theano-0.8.2, python2.7
我第一次import theano
的时候遇到错误error: '::hypot' has not been declared
,我跟着
然后以下步骤在 win10 上对我有效
- 安装mingw64
- 将
C:\Program Files\mingw-w64\mingw64\bin
添加到 PATH - 重启电脑
然后警告消失了