1. A method for checking for exceptions on a coherent accelerator, the method comprising: receiving, from an application, a system call to attach a hardware context with the coherent accelerator, wherein the coherent accelerator is either a block device or a character device; generating a channel based on a file descriptor associated with the attach system call; upon attaching the hardware context to the application, associating the channel with the hardware context selected from a plurality of hardware contexts available to the coherent accelerator; and upon receiving, from the application, a system call to check for exceptions that have occurred on the coherent accelerator: identifying the hardware context that is attached to the application from the plurality of hardware contexts, based on the generated channel; and returning an indication of any exceptions which have occurred while the coherent accelerator was executing instructions under the hardware context to the application.