PDA

View Full Version : Device lost possible?



clint3112
12-10-2012, 07:36 AM
Hi there,

is it possible that a device gets lost after it is aquired? Like a directX Device on windows logoff? I'm already handling all errors regading ressources (kernels and memory objects ect.), so this will not kill my device. Do I have to handle anything else? Do you know any possible error where the system could release a device?

Greetings,
clint3112

chippies
12-23-2012, 07:04 AM
I don't see any errors that are specific to you scenario, which makes me think that you could get any random error and that this will vary by vendor. CL_INVALID_DEVICE and CL_INVALID_PLATFORM might get generated when interrupting a function call that should not otherwise generate them, but that is real guess work on my part. The best strategy might be to retry a given operation a certain number of times with a delay in-between each retry. Re-initialising your platform, device, memory objects, kernels, etc. on the first error will also be needed.