zeratax / yacx

Yet Another CudaExecutor - wrapper to easily compile and execute cuda kernels
https://zeratax.github.io/yacx
MIT License
8 stars 4 forks source link

Deviceselection for kernelexecution for conversion from float to half #127

Closed LukasSiefke closed 4 years ago

LukasSiefke commented 4 years ago

For conversion from floats to halfs we need to start a CUDA-kernel, that executes this conversion. For this we need a Device capable of CUDA version 6 or higher. Currently we just select any device which could be a problem when multiple devices are available.

When #57 is done and we can list Devices, we could also select a Device with CUDA version 6 or higher before executing the Kernel

zeratax commented 4 years ago

I really like how this achieves similar functionality https://github.com/mgopshtein/cudacpp/blob/master/examples/invoke-rtc.cpp#L15