Open ValeriiBaidin opened 3 years ago
Hi Valerii,
You shouldn't need to manually release buffer memory.
Could you provide a code example that is producing your error?
TopicModelsVB.update_buffer!(model) helps me!!!
If your first model is using up all the buffer memory, then you will likely need to clear it before setting up your new model, however you shouldn't need to manually clear the buffers using the OpenCL API, you should just be able to do something like the following,
model = nothing
I'm not sure what other help I can provide, you may need to be more explicit in describing your steps and where the error is occurring.
Frankly, I'm not exactly sure what happens when you load multiple models into buffer memory and there isn't enough memory for all of them. The machine may overwrite the buffer without notification.
However I'm unable to reproduce a set of circumstances where loading a model into buffer memory causes an error only after a previous model has been loaded.
If your first model is using up all the buffer memory, then you will likely need to clear it before setting up your new model, however you shouldn't need to manually clear the buffers using the OpenCL API, you should just be able to do something like the following,
model = nothing
I'm not sure what other help I can provide, you may need to be more explicit in describing your steps and where the error is occurring.
Thank you, I will try it.
I try to release memory by the next code. The memory is realized, by I can't create the next new model. There is an unknown error.
Do you know, how to realise memory right way?
Thank you in advance.