NVRTC Example#

  • nvrtc_potrs.cpp

The NVRTC example presents how to use cuSolverDx with NVTRC runtime compilation and nvJitLink runtime linking.

The problem description created with cuSolverDx operators is defined only in the device code. The header file cusolverdx.hpp is also included only in the device code, which is passed to NVRTC to create a LTO IR. Then nvJitLInk is used to link the generated LTO IR with cuSolverDx’s LTO library, conduct optimization on the linked LTO IR modules, and generate cubin for the defined GPU architecture.