In case you haven't, in the OpenCL forum, you can "Search This Forum" and look for a useful phrase, like Visual Studio. You may find useful info.
Even if the indicator says it isn't answered, look anyway It is only in the past couple of months that I have pushed people to mark answers, to make a search like this more functional.
For now it's working, but there appeared something interesting.
when compiling appeared about ~150 errors, but program working.
The error associated with the same "cl :: vector <T, N>': declared deprecated"
It is generally legally? What's the problem, I do not understand.
1 of 1 people found this helpful
cl::vector has been deprecated since OpenCL 1.2 I believe. Just make sure you don't have this:
Then, just use std vectors. You can use them for OpenCL types as well:
std::vector<cl::Device> myDevices; std::vector<cl::Platform> myPlatforms; std::vector<cl::Event> myEvents;
std::vector has more functionality than the cl::vector. As to why the latter was created in the first place, I can't tell.
thesmith Thanks for helping out.
I'll add just one more thing, perhaps in excess of caution. The compiler is reporting an error regarding that code construct, but it still works. Because it is deprecated, support for this in the compiler can vanish at any time without further warning (something might appear in a release note, but support will vanish some day). The warning essentially says "Don't do this any more" but it still works for the time being.