Nsight compute Failed to load report error

Hi, using a GTX2060, CUDA toolkit 12.2 on Ubuntu 22.04, latest Night Compute for MacBookPro M2 v2023.1.1.

Context: The Nsight Compute command line is used to generate a report, a report is produced, then copied to a Mac to use in NVIDIA NsightCompute.

On Linux after compiling the NVIDIA sample dxtc using the project’s make, using the ncu tool generates a error like:

Failed to load report:
–A file path—
Reason: FailedReadingMessage

The following ncu commands generate this error but using the ‘roofline’ option works.

/usr/local/cuda-12.2/bin/ncu --set detailed -f -o ncudxtc ./dxtc
/usr/local/cuda-12.2/bin/ncu --set full -f -o ncudxtc ./dxtc
/usr/local/cuda-12.2/bin/ncu --set all -f -o ncudxtc ./dxtc

Using a duff argument also works but obviously will not give the report I would like:
/usr/local/cuda-12.2/bin/ncu --set details -f -o ncudxtc ./dxtc

I would like to use the full or all option. Why is this error occurring and how to fix to generate a valid report?
Thank you.

Thanks for filing this issue. I’m trying to understand a couple things. Are you manually running a CLI directly on Linux, then copying the result file manually to Mac or using a remote connection from Mac that does the copy back automatically?

You mention:

The following ncu commands generate this error but using the ‘roofline’ option works.
/usr/local/cuda-12.2/bin/ncu --set detailed -f -o ncudxtc ./dxtc

But then also say

Using a duff argument also works but obviously will not give the report I would like:
/usr/local/cuda-12.2/bin/ncu --set details -f -o ncudxtc ./dxtc

Is the “details” vs “detailed” in these 2 commands just a typo? What is the difference here that causes one to work and one to fail?

Can you share the output of the CLI profile that runs on Linux?

Hi,
Yes, I am manually running a CLI directly on Linux then manually copying the report file over to the Mac using FTP.

The duff argument in this example is ‘details’, I spelt it incorrectly yet found I still got a ‘valid’ report file generated, i.e., file that the Nsight tool could read and reproduce a (valid?) report.

Yet using the -set options listed by the ncu --help produce the error “could not read the report”, except except ‘roofline’.

Thanks

/usr/local/cuda-12.2/bin/ncu --set detailed -f -o ncudxtc ./dxtc
ncudxtc.ncu-rep (2.2 MB)

/usr/local/cuda-12.2/bin/ncu --set all -f -o ncudxtc ./dxtc
ncudxtc.ncu-rep (64.8 KB)

/usr/local/cuda-12.2/bin/ncu --set full -f -o ncudxtc ./dxtc
ncudxtc.ncu-rep (2.2 MB)

/usr/local/cuda-12.2/bin/ncu --set roofline -f -o ncudxtc ./dxtc
ncudxtc.ncu-rep (126.1 KB)

Hi Jmarusarz
Is the information given ok? Are you now looking into this?
Thanks

The latest version for Mac is 2023.2 Getting Started with Nsight Compute | NVIDIA Developer That would match what’s in the 12.2 CTK. Can you try using that version on your Mac to see if you can open the report?

Hi, yes version Nsight for mac released 8/29/2023 v2023.2 update 2 is good. The different reports are read ok.

If the (Mac) Nsight tool is sensitive to which linux ncu version is used to generate the profiling reports it can open and read, perhaps it would be good to have the Nsight tool report it cannot read that version. Then have it explain what it can read and so allowing the user to correct the tool’s version alignment with other correct versions required. Just saying it cannot read a file is not very helpful :-)

Anyway, thank you for your help. It is appreciated.

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