Skip to content

hello world example update #21

@jinz2014

Description

@jinz2014

Can you please update the hello world example if destroying surfaces, kernels, tasks, thread spaces, and queues are needed in the hello world example ? The following function seems to imply that users can just destroy a device, and others will be destroyed implicitly. I hope that a hello world example serves as a gold example for beginners.

Thanks

// Destroys the CmDevice.
// Also destroys surfaces, kernels, tasks, thread spaces, and queues that
// were created using this device instance that have not explicitly been
// destroyed by calling the respective destroy functions.
cm_result_check(::DestroyCmDevice(p_cm_device));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions