Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Alexander_M_4
Beginner
73 Views

Error MSB3721

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

0 Kudos
1 Reply
Tamer_Assad
Innovator
73 Views

Hi Alexander,

 

I don't see the OpenCL version of "my_struct_tz" in your postapparently 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