hughperkins / coriander

Build NVIDIA® CUDA™ code for OpenCL™ 1.2 devices
Apache License 2.0
840 stars 88 forks source link

Modernize Docker workflow, add support for AMD #104

Open chancecardona opened 7 months ago

chancecardona commented 7 months ago

This just fixes some docker issues I was running into on my machine. I also added some AMD support sections using pocl. Now we can just say docker compose build beignet docker compose run beignet. Then the workflow I do is to copy whatever I want into the local "build" repo and that shows up in the /coriander/build/out directory where I can then run cocl_py despite not using python 2 on my system at all.

I can see that a large usecase for this repo has already been filled by the ZLUDA or HIPIFY nowadays combined with HIP/ROCm, but outputting to OpenCL feels valuable on its own and afaik there's not another way to do this specific niche.

hughperkins commented 7 months ago

Thanks! Do you know you have renamed doc to docs? Any particular reason for that? Note that you will need to update the links for images, you can see there is at least one broken image link at https://github.com/chancecardona/coriander/tree/improved-docker .