The oneVPL project welcomes community contributions. You can:
- Submit your changes directly as a pull request
- Log a bug or feature request with an issue
Before submitting your pull requests, please do the following:
-
Make sure your changes are consistent with the philosophy for contribution.
-
Make sure the correct license is included at the top of new files.
-
Make sure your commits follow the correct commit message style.
-
Make sure to sign your work.
Contributed code must be:
-
Tested: Include tests when you contribute new features, as they help to a) prove that your code works correctly, and b) guard against future breaking changes to lower the maintenance cost. Bug fixes also generally require tests, because the presence of bugs usually indicates insufficient test coverage.
-
Documented: Pull requests that change documented functionality should update the relevant documentation. New functionality should be documented.
-
Portable: The project supports different operating systems CPU and GPU architectures, compilers, and run-times.
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
Further reading: How to Write a Git Commit Message
Please use the sign-off line at the end of the patch. Your signature certifies that you wrote the patch or otherwise have the right to pass it on as an open-source patch. The rules are pretty simple: if you can certify the below (from developercertificate.org):
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Then you just add a line to every git commit message:
Signed-off-by: Kris Smith <[email protected]>
Use your real name (sorry, no pseudonyms or anonymous contributions.)
If you set your user.name
and user.email
git configs, you can sign your
commit automatically with git commit -s
.
Install the Python modules required by the script\lint format checking script:
pip3 install -r requirements-dev.txt
Install version 11.0.0 of clang-format
using one of the links listed below.
The file is named after the sha1 hash, rename it to clang-format.exe. Add it's
path to the PATH environment variable.
-
Windows binary (sha1: d4afd4eba27022f5f6d518133aebde57281677c9)
-
Linux binary (sha1: 1baf0089e895c989a311b6a38ed94d0e8be4c0a7)