CUDA Fortran aggregate data types

Hello!

A CUDA kernel call is limited to a size of 256 bytes. In C for CUDA a struct of pointers to the data can be constructed as a workaround if too many arguments are needed. I was trying to implement a similar approach in CUDA Fortran, but the compiler does not seem to recognize the aggregate type.

Is there no support for aggregate types in CUDA Fortran?

Thanks,

Volker Weichert

Hi Volker,

Is there no support for aggregate types in CUDA Fortran?

CUDA Fortran does support derived types so I’m not sure what problem you’re encountering. Can you post a sample code that shows the issue?

Thanks,
Mat