我想開始使用英特爾的陣列構建模塊,並且似乎只有一個關於「Hello World」的教程,位於http://www.hpc.lsu.edu/training/tutorials/sc10/tutorials/SC10Tutorials/docs/M07/M07.pdf。我真的不明白。帶有Intel ArBB的Visual Studio 2010上的Hello World?
我正在使用Visual Studio 2010,這是我從上面的鏈接得到的代碼,還挺。
#include <C:/Program Files/intel/arbb/Beta6/include/arbb.hpp>
//What do I have to do to make just "#include <arbb.hpp>" work?
using namespace arbb;
void my_function(f32& result, f32 input){
std::cout << "Hello, world!" << std::endl;
result = input + 1.0f; //"Error: no operator "+" matches these operands
}
int main(){
typedef closure<void (f32&, f32)> mfc;
mfc a = capture(my_function);
mfc b = call(my_function);
mfc c = call(my_function);
}
我還需要做什麼才能讓「Hello World」工作?
這非常含糊。絕對是Project + Properties,C/C++,General,Additional Include Directories設置。 –