OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.

Error MSB3721

Alexander_M_4
Beginner
1,146 Views

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
1,146 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

0 Kudos
Reply