- Notifications
You must be signed in to change notification settings - Fork727
Github Steps for Contribution
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
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-samples
development
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
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.
- Home
- DPC++ what is it?
- Administration
- sample.json
- Sample Browser
- GitHub Steps for Contribution
- New Sample Submission
- Guidelines