06-13-2017 08:23 AM
I know that we can use the -std=c++0x option to support c++11 standard.
But I am working in sdaccel 2016.4 GUI and I set the -std option (It actually shows a drop-down menu to choose in the DIALECT section), but the kernel is not compiling. I get an error saying i should use -std=c++0x.
How do I set the kernel options to accept C++11 templates in GUI.
07-13-2017 12:56 AM
07-25-2017 11:20 AM
Can you confirm that if you run xocc standalone with -cflags " -std=c++11.... it still gives the failure? Is the issue that the GUI isn't allowing the flag to result in a valid build, or that xocc won't build c++11 constructs?
07-25-2017 12:17 PM
I think the issue is that OpenCL versions < 2.1 don't support C++ in the kernel language. SDAccel has OpenCL conformance for 1.0 and support for some features in newer releases but does not support 2.1 yet. C++ is supported in the host code as you pointed out and as noted above.
Some C++ can be used in HLS C kernels. See UG902.