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命名空間時,還有其他類似的衝突;想到數組,範圍和索引。 –