3
我试图用C++ -AMP编写代码来将多个2D矢量复制到要处理的GPU内存中。但是,一旦我开始使用表达式extent<2> eM(100,100);
,我将面临以下错误:“范围”不明确。与C++中的任何其他程度表达式是否有冲突?是因为我使用的图书馆? 这些都是我包含的所有库和命名空间,我不能包含它相当长的代码,会令人困惑。不明确的陈述C++ - AMP:(范围)不明确
#include "stdafx.h"
#include <Windows.h>
#include <stdint.h>
#include <amp.h>
#include <Shlwapi.h>
#include <vector>
#include <random>
#include <iostream>
using std::endl;
using std::cout;
#include <iomanip>
#include "timer.h"
#include <fstream>
using std::ifstream;
#include <cstring>
#include <sstream>
#include <tchar.h>
using namespace std;
using namespace concurrency;
using std::vector;
当使用std和concurrency命名空间时,还有其他类似的冲突;想到数组,范围和索引。 –