If only C++ supported interactive REPL and the rest of Clojure/Lisp goodies, that might be possible.
However, the code is CLOSELY related to the actual CUDA/C++ api. It's a lot simpler, concise, and everything, but I explain everything so that you can use the relevant parts with cuDNN and DNNL APIs in any language that you're most proficient in.