Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 569 Bytes

File metadata and controls

23 lines (18 loc) · 569 Bytes
applyTo
libsyclinterface/**/*.h
libsyclinterface/**/*.hpp
libsyclinterface/**/*.cpp

C API Instructions

See libsyclinterface/AGENTS.md for conventions.

Naming

DPCTL<ClassName>_<MethodName> (e.g., DPCTLDevice_Create)

Ownership annotations (see include/syclinterface/Support/MemOwnershipAttrs.h)

  • __dpctl_give - caller must free
  • __dpctl_take - function takes ownership
  • __dpctl_keep - function only observes

Key Rules

  • Annotate all parameters and returns
  • Return NULL on failure
  • Use DPCTL_API for exports