- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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
- Etiquetas:
- OpenCL*
- Professors
- Students
Enlace copiado
1 Responder
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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
Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla