Custom property memory error in CUDA

satri
satri Altair Community Member

Hello

I have a simulation

where i use the Particle replacement API i assign a custom property called metaIndex1 to all the sphero-cyl particles when i create it.

After time = T0 i get a structure

now i export this simulation deck with the custom properties to a new file.

At this point, I remove the particle replacement API from the factory and body force. Next i want to use the bond35 API for sphero-cyl where i want to access the metaIndex1. I can access it only for the 0th time step. In the rest of the time steps, the value of the meta index is 0.

In order to prevent the loss of data, I created another custom property called metaIndex2.

I try to copy the value of metaIndex1 to metaIndex2 by doing this

If i do what you see in line 83 and 84. I keep getting a memory error in CUDA.

One possible resolution I have found as of now is to export the deck without zeroing the time and keeping the particle replacement API links on factory and body force.

This way the new simulation deck will continue from new time.

But things wont work if i want to zero the time.

Please tell me if there is any way to keep my data when i zero the simulation time when i export the simulation deck?

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee

    Hi, I would expect what you described to work ok. I would check the index value for mtaID_INDEX is correct and matching what is in the cpp.

    Regards

    Stephen

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.