Support for CUDA/HIP on OpenCL/Level0 via chipStar #4504
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Very hacky support for chipStar, which is a compiler to run HIP/CUDA on OpenCL/Level Zero (currently fairly Intel focused).
Requires:
Currently only supports building via Makefile, as I didn't yet look at CMake integration for these.
I also wrapped some stuff using unsupported hipBLAS functions in
#ifdefs
so they won't break the build, and sacrificeduse_tensor_cores
in the process.Finally, I changed some local sizes from 1024 to 256 so it can run on my UHD 620 laptop. (I think modern Intel graphics support local sizes of up to 1024, so this isn't strictly necessary for those).
Performance is still much worse than CPU (i5-8350U), but seems a bit better than OpenCL from preliminary testing (not a proper benchmark run). Would love if someone with more powerful Intel hardware could give this a try!