- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcas:
- OpenCL*
- Professors
- Students
Link copiado
1 Responder
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora