Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hello world example update #21

Open
jinz2014 opened this issue Jul 12, 2020 · 1 comment
Open

hello world example update #21

jinz2014 opened this issue Jul 12, 2020 · 1 comment

Comments

@jinz2014
Copy link

jinz2014 commented Jul 12, 2020

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));

@cmc-rep
Copy link

cmc-rep commented Jul 14, 2020

hello-world was written by a CM runtime developer. Therefore, I believe this comment is accurate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants