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

More extensive file and path existence checks

eyalroz opened this issue · comments

After parsing our arguments, we should check all paths we've been given, ensuring that:

  • All directories exist
  • All directories with input files (including the kernel source) are executable
  • All directories with output files are writable

This is obviously not necessary for the utility to work properly, but will allow for better error messages.

We may also want to check for directory/filename emptiness, just to be on the safe side.