- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've got some problem with my __kernel. I tried use my custom types.
typedef struct my_srtuct my_struct_t; struct my_struct { /* some fields... */ };
And tried to transfer same type from the host, so I did this:
void __kernel (__global my_struct_t *et) { /* program body */ }
But compiler sad I've done smth wrong (error MSB3721 with errcode -1073741819). But if remove this .cl file from the solution everything's Ok. Have you ever met this problem and what did you do to fix it?
P.S.: I'm using VS 2015 Enterprise
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alexander,
I don't see the OpenCL version of "my_struct_tz"
in your post,
apparently it is defined on the host only, and
OpenCL environment does not know about it.
does
"my_struct_tz" contain pointers? :(
Consider passing variables directly without encapsulation, (1) validate each arg. (2) avoid possible platform implementation issues.
Best regards,
Tamer
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