我正在尝试在装有 Windows 10 64 位的计算机上安装 pycuda,我安装了 GPU Toolkit 9.1 和 Anaconda 4.2 和 python 3.5 64 位。我使用预编译包安装了 pycuda:
pycuda?2017.1.1+cuda9185?cp35?cp35m?win_amd64.whl
我的 Anaconda 安装中的安装没有标记任何错误,但是当我尝试运行一个简单的示例时,我遇到了导入问题:
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycuda.driver as cuda
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
ImportError: numpy.core.multiarray failed to import
During handling of the above exception, another exception …Run Code Online (Sandbox Code Playgroud) 我的C++代码中有一些带有绑定的SQL查询,这些查询是static const std::string,因为这些查询很复杂,所以很容易出错.我想在编译时做一些非常基本的检查,例如计算逗号或:字符的数量.