intel / intel/cm-compiler

hello world example update

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
154
Forks
56
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.