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

When repeat registration is attempted, try printing the key

eyalroz opened this issue · comments

When we attempt to register a second class with the same key in the same factory, an exception is thrown. It would be useful if we were told which class failed to register. Unfortunately, at that point in the code, all we have is the key. Can we print that? ... not necessarily. Certainly can't be assumed. But - we can give it our best shot using some TMP - in case ``some_ostream << key` can work.