Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 870 Bytes

File metadata and controls

20 lines (16 loc) · 870 Bytes

usm_queries

Sample demonstrating how to query OpenCL device capabilities related to Unified Shared Memory.

To check if your device supports Unified Shared Memory you should verify if cl_intel_unified_shared_memory extension string is present in CL_DEVICE_EXTENSIONS.

Unified Shared Memory specification defines five different allocation types that you can use:

  1. Host;
  2. Device;
  3. Shared;
  4. Shared (Cross-Device);
  5. Shared System (Cross-Device);

Device can allow different set of operations for each allocation type, so you should check supported USM capabilities:

  • MEMORY_ACCESS;
  • MEMORY_ATOMIC_ACCESS;
  • MEMORY_CONCURRENT_ACCESS;
  • MEMORY_CONCURRENT_ATOMIC_ACCESS;

Usage

usm_queries