<spanid="devicecontext"></span><h4>DeviceContext<aclass="headerlink"href="#devicecontext"title="Permalink to this headline">¶</a></h4>
<p>Fluid uses class <aclass="reference external"href="https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/platform/device_context.h#L30">DeviceContext</a> to manage the resources in different libraries, such as CUDA stream in <codeclass="docutils literal"><spanclass="pre">CDUADeviceContext</span></code>. There are also inheritance relationships between different kinds of <codeclass="docutils literal"><spanclass="pre">DeviceContext</span></code>.</p>
<p>Fluid uses class <aclass="reference external"href="https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/platform/device_context.h#L30">DeviceContext</a> to manage the resources in different libraries, such as CUDA stream in <codeclass="docutils literal"><spanclass="pre">CDUADeviceContext</span></code>. There are also inheritance relationships between different kinds of <codeclass="docutils literal"><spanclass="pre">DeviceContext</span></code>.</p>