eyalroz / gpu-kernel-runner

Runs a single CUDA/OpenCL kernel, taking its source from a file and arguments from the command-line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use string_view's instead of char pointers where applicable

eyalroz opened this issue · comments

It would be nicer/cleaner for us to hold string views - essentially pointers + lengths - rather than raw char *'s or const char *'s.

Not that useful, considering how NVRTC and OpenCL take null-terminated strings, meaning that, with string_view's, we'd need to construct null-terminated strings to pass.