- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm using the 16.1 SDK to develop an OpenCL library. After added a second input parameter to my function, I get this error message (twice): error: Unexpected use of HDL library function(s) (possibly due to taking the address of the function)!
error: Unexpected use of HDL library function(s) (possibly due to taking the address of the function)!
I'm definitely not taking the address of the function. Do you have any suggestion as to what this error message could mean? If I remove the second argument to the function everything works as expected. This seems like a bug to me. (The entire setup is basically the same as in the OpenCL library example where they show a floating point division example.) Thanks, Hanno
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Upon further testing, this seems to be related to the datatype. If I use "unsigned long" in the RTL library, I get the error. If I use "unsigned long long" it works. So there seems to be a mismatch of the inferred width between the different compiler parts. (I guess the vague C standard is partly to blame here, but a better error message would have saved me a lot of time).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page