Multiple exit points in cuda component's functions

Issue #106 wontfix
Giuseppe Congiu created an issue

The cuda component has multiple exit points that also need to relinquish a lock. This is a recipe for bugs as so many exit points are easy to overlook and may end up, eventually, with some error. In the component’s functions there shouldn't be more than one exit point. Especially, if locks are involved. CUPTI_CALL should be given an error handle that sets the error code to be returned and then jumps to a unique exit point that relinquishes the lock and returns the error code to the caller.

Comments (1)

  1. Log in to comment