CuDNNWorkspace is a wrapper around a raw cuda pointer that holds the cudnn scratch space. More...
#include <cudnn_wrappers.h>
Public Member Functions | |
void * | get (size_t nbytes) |
void | reset () |
CuDNNWorkspace is a wrapper around a raw cuda pointer that holds the cudnn scratch space.
This struct is meant to be only used in CuDNNWrapper to provide a program-wide scratch space for CuDNN. The reason behind it is that cudnn function calls are usually very efficient, hence one probably does not want to run multiple cudnn calls at the same time. As a result, one should not need more than one cudnn workspace per device.
Definition at line 60 of file cudnn_wrappers.h.