UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer race
Observer
3,759 Views
Registered: ‎05-18-2017

C++11 on sdaccel

Hi,

 

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.

 

Thanks

 

Tags (3)
0 Kudos
6 Replies
Adventurer
Adventurer
3,742 Views
Registered: ‎02-09-2017

Re: C++11 on sdaccel

 

I set it here.

 

cstdset.png

0 Kudos
Observer race
Observer
3,703 Views
Registered: ‎05-18-2017

Re: C++11 on sdaccel

hi @sl_cgi,

 

It's not working. Same error saying I cannot use default arguments for template type (C++11 feature).

0 Kudos
Xilinx Employee
Xilinx Employee
3,465 Views
Registered: ‎06-07-2016

Re: C++11 on sdaccel

Hi @race

 

The correct dialog is here:

C++11.JPG

0 Kudos
Observer race
Observer
3,441 Views
Registered: ‎05-18-2017

Re: C++11 on sdaccel

Hi @dalthoff

Thanks for the reply. I tried that as well.

What I mean to say is the kernel is not accepting C++11 constructs. Maybe the host works with C++11 standard but not the kernel.

Tags (2)
0 Kudos
Xilinx Employee
Xilinx Employee
3,311 Views
Registered: ‎09-08-2011

Re: C++11 on sdaccel

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?

 

 

If at first you don't succeed, try redefining success?
0 Kudos
Xilinx Employee
Xilinx Employee
3,304 Views
Registered: ‎06-07-2016

Re: C++11 on sdaccel

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.

 

Best, 

-Dutch