Analyse nvidia cpp files

  • ALM used: Azure DevOps

  • CI system used: Azure DevOps

  • Scanner command used when applicable: build-wrapper-win-x86-64.exe

  • Languages of the repository: CPP

  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
    When coding with nvidia GPU, we write .cu files that are compiled with the nvidia compiler nvcc…
    But this files are not analysed by Sonar
    I set:
    BUT only .cpp files are analysed, no .cu files, that I could not find neither in build-wrapper-dump.json.
    Is there a way to add this nvidia files that are in fact C++ (with some specificities) in our analyses?

  • Steps to reproduce
    Create a nvidia project (the default one for instance) and analyse it, .cu files are not analysed (so for the default nvidia project in MSVisual Studio, no analyse are done as it include only one .cu file)

Hello @Laurent,

Unfortunately, as you can see in the documentation, we do not support nvcc compiler, so *.cu files can not be analyzed.


Thank @Amelie,
Is there a plan to support this compiler (that is quite close to “standard” one as a “standard” cpp compiler)?

There’s no plan for now, one reason being that we did not receive a lot of requests for it.
I created a ticket to track the needs.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.