Skip to content

Commit

Permalink
Update the developer's guide with new copyright hook (#5848)
Browse files Browse the repository at this point in the history
Issue: rapidsai/build-planning#30

Authors:
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #5848
  • Loading branch information
KyleFromNVIDIA authored Apr 15, 2024
1 parent 36a53f0 commit c1791e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions wiki/cpp/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,14 @@ python ./cpp/scripts/include_checker.py --inplace [cpp/include cpp/src cpp/src_p
```

#### Copyright header
[copyright.py](../../ci/checks/copyright.py) checks the Copyright header for all git-modified files
RAPIDS [pre-commit-hooks](https://github.com/rapidsai/pre-commit-hooks) checks the Copyright
header for all git-modified files.

Manually, you can run the following to bulk-fix the header if only the years need to be updated:
Manually, you can run the following to bulk-fix the header on all files in the repository:
```bash
python ./ci/checks/copyright.py --update-current-year
pre-commit run -a verify-copyright
```
Keep in mind that this only applies to files tracked by git and having been modified.
Keep in mind that this only applies to files tracked by git that have been modified.

## Error handling
Call CUDA APIs via the provided helper macros `RAFT_CUDA_TRY`, `RAFT_CUBLAS_TRY` and `RAFT_CUSOLVER_TRY`. These macros take care of checking the return values of the used API calls and generate an exception when the command is not successful. If you need to avoid an exception, e.g. inside a destructor, use `RAFT_CUDA_TRY_NO_THROW`, `RAFT_CUBLAS_TRY_NO_THROW ` and `RAFT_CUSOLVER_TRY_NO_THROW ` (currently not available, see https://github.com/rapidsai/cuml/issues/229). These macros log the error but do not throw an exception.
Expand Down

0 comments on commit c1791e1

Please sign in to comment.