I am working on making a GPU vendor agnostic code with KerneAbstractions.jl. I am getting the device name with
device = CUDA.device()
and getting the number of Streaming Multiprocessors with
sm_count = CUDA.attribute(device, CUDA.DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT)
.
I was able to find it’s equivalent for AMD GPUs with
device = AMDGPU.device()
This works.
compute_units = AMDGPU.compute_units(device)
This one does not work, what is the right command?
How do I do the same with Intel using oneAPI.jl?