Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sample Directory Structure

Wei, Jimmy T edited this pageMar 10, 2023 ·1 revision

Code Sample Folder and file Names Guidelines

  • Names should be short and meaningful, do not excessively abbreviate
  • Names should be written in Camel case - Example: /DirectProgramming/DPC++/CombinationalLogic/
    • Spaces and underscores not allowed
    • Hyphens use only when part of a name - Example: N-Body
  • Readme file letter casing should beREADME.md
  • License file letter casing should be License.txt

Directory Layouts

Sample repositories can only accept samples matching one of the following directory layouts:

  • Flat repository - Generally used format, especially for segment samples and reference implementations, or samples that will only support a single language.
  • Language folders - Individual language folders may contain the sample code sources when making the same sample available under multiple programming languages. This replaces thesrc directory with one of the followingc|cpp|python. Supported languages are defined undersample.json (a) or as individuallanguage.json files (b).

File Structure

In both cases, additional directories and files can be added at the developer's discretion and they will be delivered with the sample. You should not include large binary or media files with the sample, instruct the users to download these from a separate host instead. Mention this along with any other HW or SW prerequisites for running the sample in the readme file.

Additional Information on DPC++ topics can be found in the book(pdf):

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp