Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
oneapi-src
oneAPI-samples
Repository navigation
Code
Issues
64
(64)
Pull requests
7
(7)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Idiomatic Names
Jump to bottom
Edit
New page
Wei, Jimmy T edited this page
Mar 10, 2023
·
1 revision
Idiomatic Names
Samples need to balance being concise and descriptive
Prefer short descriptive words over longer phrases for naming
Prefer the following idiomatic names:
g: group
h : compute group handle (cgh)
i : iteration
j : iteration
k : iteration
q : queue
sg : subgroup
Wiki pages
Pages
31
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Accessors
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Additional Resources
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
AI Getting Started and Features and Functionality README Template
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Buffers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
CI Tips
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Code Requirements
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Code Sample General Criteria
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Compute Group Handler
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Contributing a New Sample
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
dpc_common.hpp
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
DPCpp
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Exception Handling
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
General Code Guidelines
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
General Guidelines
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Github Steps for Contribution
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Idiomatic Names
Idiomatic Names
Loading
Labels Index
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
main() function requirements
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
oneAPI Code Samples Targeted Devices
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Readme template
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Reviewers and Domain Experts
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Sample Browser
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Sample Directory Structure
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
sample json categories array
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
sample json ci test object
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
sample json specification
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Testing Samples
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Text IO Handling
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Triage Role Access
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
USM allocation template
Uh oh!
There was an error while loading.
Please reload this page
.
Show 16 more pages…
Home
DPC++ what is it?
Administration
Triage Role Access
PR Labels Index
Reviewers and Domain Experts
sample.json
Specification
Categories
CI Test Object
Sample Browser
GitHub Steps for Contribution
New Sample Submission
Contributing A New Sample
Sample Directory Structure
Code Requirements
Guidelines
General Guidelines
Sample Criteria
Coding Guidleines
General Guidelines
main() Requirements
Accessors
Buffers
Compute Group Handler
dpc_common.hpp
Exception Handling
Idiomatic Names
TXT I/O Handling
USM Allocation
Clone this wiki locally
You can’t perform that action at this time.