MCPcopy Create free account
hub / github.com/boostorg/compute / default_context

Method default_context

include/boost/compute/system.hpp:146–151  ·  view source on GitHub ↗

Returns the default context for the system. The default context is created for the default device on the system (as returned by default_device()). The default context is created once on the first time this function is called. Calling this function multiple times will always result in the same context object being returned.

Source from the content-addressed store, hash-verified

144 /// called. Calling this function multiple times will always result in the
145 /// same context object being returned.
146 static context default_context()
147 {
148 static context default_context(default_device());
149
150 return default_context;
151 }
152
153 /// Returns the default command queue for the system.
154 static command_queue& default_queue()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected