I tried to use C++ amp in Visual Studio 2017, but compiler said, "error C3564" and I tried the old code(which worked in Visual Studio 2015), and it said same thing. Does Visual Studio 2017 support C++ amp?
#include "stdafx.h"
using namespace concurrency;
int main(void){
int size;
scanf_s("%d", &size);
array_view<int, 1> a(1);
parallel_for_each(extent<1>(1),
[=](index<1> &idx) restrict(amp)
{
a(idx) = size;
});
}
the code above will generate problem.
just added the amp.h file and the code above compiles.
i am also working on other project with C++AMP in vs 2017 and it working fine.