diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml new file mode 100644 index 00000000..815ceb5b --- /dev/null +++ b/.github/workflows/style.yaml @@ -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 }} \ No newline at end of file diff --git a/src/nvml/hook.c b/src/nvml/hook.c index c8e96db9..20d8ede9 100644 --- a/src/nvml/hook.c +++ b/src/nvml/hook.c @@ -318,7 +318,10 @@ void nvml_postInit() { nvmlReturn_t _nvmlDeviceGetMemoryInfo(nvmlDevice_t device,void* memory,int version) { unsigned int dev_id; LOG_DEBUG("into nvmlDeviceGetMemoryInfo"); - + int a = 0; + if(a > 0){ + LOG_DEBUG("debug a"); + } switch (version){ case 1: CHECK_NVML_API(NVML_OVERRIDE_CALL(nvml_library_entry,nvmlDeviceGetMemoryInfo, device, memory));