question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Functionality to print nvcc and nvrtc output

See original GitHub issue
CuPy Version          : 8.0.0b3
CUDA Root             : /usr/local/cuda
CUDA Build Version    : 10020
CUDA Driver Version   : 11000
CUDA Runtime Version  : 10020
cuBLAS Version        : 10202
cuFFT Version         : 10102
cuRAND Version        : 10102
cuSOLVER Version      : (10, 3, 0)
cuSPARSE Version      : 10301
NVRTC Version         : (10, 2)
cuDNN Build Version   : None
cuDNN Version         : None
NCCL Build Version    : None
NCCL Runtime Version  : None
CUB Version           : Enabled
cuTENSOR Version      : None

I’m trying to get some register spillage information of some CuPy raw kernels. Unfortunately, the compiler fails on -Xptxas. https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#phase-options

module = cp.RawModule(
    code=cuda_code,
    backend='nvcc',
    options=("-std=c++11", "-use_fast_math", "-lineinfo", '-Xptxas -warn-spills'),
)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
leofangcommented, Jul 6, 2020

#3485 is in! This can be closed now.

1reaction
mnicelycommented, Jun 24, 2020

That worked! Although the formatting is quite off. I’m going to see what I can do to fix formatting and do some thinking on how to do this cleanly.

I’ll submit a PR with some suggestions 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

NVRTC (Runtime Compilation) :: CUDA Toolkit Documentation
nvrtcVersion sets the output parameters major and minor with the CUDA Runtime Compilation version number. Functions. nvrtcResult nvrtcGetNumSupportedArchs ( int ...
Read more >
NVRTC - CUDA Runtime Compilation
NVRTC is a runtime compilation library for CUDA C++. It accepts CUDA C++ source code in character string form and creates handles that...
Read more >
Differences between NVCC and NVRTC on compilation to PTX
During the NVRTC compilation a "Unresolved extern function" error occurred, ... the values used to call pow function as well as the output...
Read more >
Print, Copy, Scan - Northern Virginia Community College
Students may print, copy, and scan in any NOVA Library using ACEPrint. Students must have a NOVACard and must have funds loaded on...
Read more >
Debugging NVRTC_ERROR_INVALID_OPTION Windows #75
I made sure to link my code with the cuda, cudart, and nvrtc libraries ... RTC compiler flags are a subset of those...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found