NVIDIA / jitify

A single-header C++ library for simplifying the use of CUDA Runtime Compilation (NVRTC).
BSD 3-Clause "New" or "Revised" License
518 stars 64 forks source link

Add nvrtc_cli tool #105

Closed benbarsdell closed 2 years ago

benbarsdell commented 2 years ago

This allows NVRTC to be driven via a nvrtc_cli executable that operates identically to nvcc (for the subset of functionality supported by NVRTC).

This is useful for testing, and we also plan to integrate it into the godbolt.org Compiler Explorer.

Includes a script for testing basic functionality of the tool.

maddyscientist commented 2 years ago

Just wondering about getting this old PR. @benbarsdell can you make the trivial changes I noted above and we can get this merged? (we can just ignore my run-time checking for now)

benbarsdell commented 2 years ago

Sorry it took so long to get to this. I've added nvrtc_cli to make all.

maddyscientist commented 2 years ago

I'd prefer less CUDART_VERSION usage, but since this has been open for a long time, and long since merged into compiler-explorer, I'm happy to just approve and merge this.

benbarsdell commented 2 years ago

Maybe I misunderstood, I'm having trouble thinking this through. Some of them need to be compile time checks, and those won't gain anything by adding runtime checks. Will other parts benefit from having runtime checks?