Runtime Resource Release
Release the runtime resources including the streams, contexts, and devices in sequence.
- An explicitly created stream is destroyed by using acl.rt.destroy_stream. An explicitly created context is destroyed by using acl.rt.destroy_context. An explicitly specified device using acl.rt.set_device is reset by using acl.rt.reset_device.
- If no context or stream is explicitly created, only devices need to be reset by using acl.rt.reset_device.