Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This is a basic workflow to help you get started with Actions
name: style

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:

jobs:
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.github_token }}
5 changes: 4 additions & 1 deletion src/nvml/hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@
nvmlReturn_t _nvmlDeviceGetMemoryInfo(nvmlDevice_t device,void* memory,int version) {
unsigned int dev_id;
LOG_DEBUG("into nvmlDeviceGetMemoryInfo");

int a = 0;
if(a > 0){

Check failure on line 322 in src/nvml/hook.c

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] src/nvml/hook.c#L322

Missing space before ( in if( [whitespace/parens] [5]
Raw output
src/nvml/hook.c:322:  Missing space before ( in if(  [whitespace/parens] [5]

Check failure on line 322 in src/nvml/hook.c

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] src/nvml/hook.c#L322

Missing space before { [whitespace/braces] [5]
Raw output
src/nvml/hook.c:322:  Missing space before {  [whitespace/braces] [5]
LOG_DEBUG("debug a");
}
switch (version){
case 1:
CHECK_NVML_API(NVML_OVERRIDE_CALL(nvml_library_entry,nvmlDeviceGetMemoryInfo, device, memory));
Expand Down