syclreference.com
  1. SYCL
  2. | API Reference
  3. | context
  4. | context

context

MISSING


context(cl::sycl::context && rhs)
(1)
context(cl_context context, cl::sycl::async_handler asyncHandler)
(2)
context(const cl::sycl::context & rhs)
(3)
context(const cl::sycl::device & dev, cl::sycl::async_handler asyncHandler)
(4)
context(const cl::sycl::device_selector & deviceSelector, info::gl_context_interop interopFlag, cl::sycl::async_handler asyncHandler)
(5)
context(const cl::sycl::platform & plt, cl::sycl::async_handler asyncHandler)
(6)
context(vector_class<cl::sycl::device> deviceList, cl::sycl::async_handler asyncHandler)
(7)
explicit context(cl::sycl::async_handler asyncHandler)
(8)
explicit context(cl::sycl::dcontext_shptr detail)
(9)
explicit context(cl::sycl::detail::context * detail)
(10)
  1. Constructs a context object by moving another device object.
    Parameters:
    • cl::sycl::context && rhs
  2. Constructs a context object using a cl_context object.
    Parameters:
    • cl_context context : A cl_context object.
    • cl::sycl::async_handler asyncHandler
  3. Constructs a context object from another device object and retains the cl_context object if the context is not in host mode.
    Parameters:
    • const cl::sycl::context & rhs
  4. Constructs a context object using a device object. The context is constructed with the device object provided.
    Parameters:
    • const cl::sycl::device & dev
    • cl::sycl::async_handler asyncHandler : An optional parameter to specify the async_handler
  5. (deprecated (Context constructor is deprecated)) Constructs a context object using a device_selector object. The context is constructed with a single device retrieved from the device_selector object provided.
    Parameters:
    • const cl::sycl::device_selector & deviceSelector : A reference to a device_selector object.
    • info::gl_context_interop interopFlag : Specify whether to use the context for OpenGL interop.
    • cl::sycl::async_handler asyncHandler : An optional parameter to specify the async_handler
  6. Constructs a context object using a platform object. The context is constructed with all the devices available under the platform object provided.
    Parameters:
    • const cl::sycl::platform & plt
    • cl::sycl::async_handler asyncHandler : An optional parameter to specify the async_handler
  7. Constructs a context object using a vector_class of device objects. The context is constructed with the devices provided.
    Parameters:
    • vector_class<cl::sycl::device> deviceList : A vector_class of device objects.
    • cl::sycl::async_handler asyncHandler : An optional parameter to specify the async_handler
  8. Constructs a context object in host mode.
    Parameters:
    • cl::sycl::async_handler asyncHandler

  9. Parameters:
    • cl::sycl::dcontext_shptr detail

  10. Parameters:
    • cl::sycl::detail::context * detail

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000