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: 
Contributor
Contributor
261 Views
Registered: ‎05-07-2019

Can SDAccel kernels use C++ templates?

Jump to solution

I would like to make a kernel that can be used with various datatypes.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
216 Views
Registered: ‎03-24-2010

回复: Can SDAccel kernels use C++ templates?

Jump to solution

You can use templates but do not use templates as top-level function.  For top-level function, you need to create unique instances.

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
217 Views
Registered: ‎03-24-2010

回复: Can SDAccel kernels use C++ templates?

Jump to solution

You can use templates but do not use templates as top-level function.  For top-level function, you need to create unique instances.

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

Contributor
Contributor
208 Views
Registered: ‎05-07-2019

回复: Can SDAccel kernels use C++ templates?

Jump to solution

Thanks!

0 Kudos