Hi, I am having problems allocating host memory for a struct. I have a program that has a line like
cudaMallocHost((void**)&structPtr, sizeof(struct updateStruct));
The structure contains several reasonably large arrays of floats.
The program is really unstable. Some times it runs fine, producing the same results as my reference C solution, while at others it just crashes.
If I change the above allocation to a normal malloc everything works as it should every time.
Any ideas what this could be?