AMD GPUs can currently run native CUDA code using ZLUDA, which includes GPUJPEG.
To enable the CUDA support on AMD devices, follow the instructions described on the linked page. It is sufficient to download the binary build (at least as for the version 3) and use as described.
Below follow the platform specific notes.
To run the CUDA code successfully, you will need to have:
- AMD drivers
- package hip-runtime-amd (according to ZLUDA documentation, version 5.7.x is currently required, not 6), which may be installed according this instructions
- LD_LIBRARY_PATH environment variable containing path to ZLUDA library
- current AMD drivers
- ZLUDA build
- run the executable (eg. gpujpegtool) with zluda.exe
Note: Windows antivirus sometimes tends to remove the zluda.exe executable when extracted the downloaded ZIP. This can be easilly spotted when there are just the DLLs extracted.