# Contributing to hipFFT #
We welcome contributions to hipFFT. Please follow these details to help ensure your contributions will be successfully accepted.
## Issue Discussion ##
Please use the GitHub Issues tab to notify us of issues.
* Use your best judgment for issue creation. If your issue is already listed, upvote the issue and
comment or post to provide additional details, such as how you reproduced this issue.
* If you're not sure if your issue is the same, err on the side of caution and file your issue.
You can add a comment to include the issue number (and link) for the similar issue. If we evaluate
your issue as being the same as the existing issue, we'll close the duplicate.
* If your issue doesn't exist, use the issue template to file a new issue.
* When filing an issue, be sure to provide as much information as possible, including script output so
we can collect information about your configuration. This helps reduce the time required to
reproduce your issue.
* Check your issue regularly, as we may require additional information to successfully reproduce the
issue.
* You may also open an issue to ask questions to the maintainers about whether a proposed change
meets the acceptance criteria, or to discuss an idea pertaining to the library.
## Acceptance Criteria ##
When a contribution is submitted via a pull request, a number of automated checks are run in order to verify compilation correctness and prevent performance regressions.
These checks include:
* Building and testing the change on various OS platforms (Ubuntu, RHEL, etc.)
* Running on different AMD GPU architectures (MI-series, Radeon series cards, etc.)
* Running on different NVIDIA GPU architectures (V100, A100, etc)
* Running benchmarks to check for performance degradation
In order for a submission to be accepted:
* It must pass all of the automated checks
* It must undergo a code review
Users can visualize our continuous integration infrastructure in: `hipFFT/.jenkins`.
The GitHub "Issues" tab may also be used to discuss ideas surrounding particular features or changes before raising pull requests.
## Code Structure ##
In a broad view, hipFFT library is structured as follows:
├── docs/: contains hipFFT documentation
├── library/: contains main source code and headers
│ ├── src/amd_detail/ : for porting to AMD devices
│ ├── src/nvidia_detail/ : for porting to NVIDIA devices
├── clients/:
│ ├── bench/ : contains benchmarking code
│ ├── samples/ : contains examples
│ ├── tests/ : contains our test infrastructure
├── shared/: contains important global headers and those for linking to other applications
## Coding Style ##
* All public APIs are C89 compatible; all other library code should use c++17.
* Our minimum supported compiler is clang 3.6.
* Avoid CamelCase: rule applies specifically to publicly visible APIs, but is encouraged (not mandated) for internal code.
* C and C++ code should be formatted using `clang-format`. You can use the clang-format version available in `hipFFT/.clang-format`.
To format a C/C++ file, use:
```
clang-format -style=file -i