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

Github Steps for Contribution

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

Getting the latest oneAPI code samples

If you want to obtain code samples that run on the latest released version of theIntel® oneAPI Toolkits, using the git command, type:

 git clone https://github.com/oneapi-src/oneAPI-samples.git

If you already have the git repo cloned but need to update the local branch, type:

 git pull master

Making a contribution to the repository

All code sample contributions must go into thedevelopment branch where they will be reviewed. Themaster branch contains only code samples that work with the latest released version of theIntel® oneAPI Toolkits.

Before submitting a new pull request, you must fork the oneAPI-samples repository. To fork the repo, click on theFork icon and then selectCreate a new fork. It will take a few seconds for the fork to be created. If you previously forked the repo, continuehere.



When creating a new fork, make sure that theCopy the master branch only checkbox is unchecked before theCreate fork button is clicked.



If you have an existing fork but do not have a development branch, create one by selecting theoneapi-src/oneAPI-samplesdevelopment branch in the dropdown as the branch source.



Once your fork has been created, go to theSettings icon and selectBranches. Change the default branch todevelopment in the dropdown and click on theUpdate button.



To create a new branch in your fork, make sure thedevelopment branch is selected from the dropdown and enter the name of your branch in the text field.



In the example above,my_branch is the name of the branch to be created. To clone the repo and checkout the branch that you just created, type:

 git clone -b <your branch name> https://github.com/<your GitHub username>/<your repo name>.git

Once you are ready to commit your changes to your repo, type the following:

git add .git commit -s -m "<insert commit reason here>"git push origin

Creating a new pull request

To submit a new pull request, click on thePull requests icon and then theNew pull request button.



Ensure that thedevelopment branch is selected for theoneapi-src/oneAPI-samples base repository and that your branch name is selected as the compare branch in the head repository. If you are able to merge, click onCreate pull request.


Follow the instructions in the text field and enter a description of your changes and click on theCreate pull request button.


That's it! Congratulations. You have now created a new pull request.

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

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp