Does JPEG encoding images require a dedicated hardware?

I am interested in encoding/compressing images using JPEG-LS or JPEG format. It is not clear, if I need a dedicated video card for this task or I can use the same A100 video card that I use to display the desktop.

Moreover, I read about encoding that “Input to the library is in the host memory, and the output is in the GPU memory”. I think that there is a way to bring back the compressed image into PC host memory in order to save the image to disk. Is it supported by the library?

Thank you, R.