rbc icon indicating copy to clipboard operation
rbc copied to clipboard

omniscidb should scan CUDA_PATH and /lib folders when looking for libdevice file

Open guilhermeleobas opened this issue 4 years ago • 3 comments

https://github.com/omnisci/omniscidb-internal/blob/ebd3a5f4bec2d5925fc844e01a932f2cdd2eec90/CudaMgr/CudaMgr.cpp#L404-L430

guilhermeleobas avatar Apr 26 '21 17:04 guilhermeleobas

I think it is rather here: https://github.com/omnisci/omniscidb-internal/blob/ebd3a5f4bec2d5925fc844e01a932f2cdd2eec90/QueryEngine/NativeCodegen.cpp#L1367-L1380 where the scanning for libdevice location should be implemented.

pearu avatar Apr 26 '21 17:04 pearu

This might be a simple PR. One needs to do the following:

  • Update read_libdevice_module to also check for libdevice in /path/to/cuda/lib/
  • Raise an exception if libdevice.10.bc is not available

guilhermeleobas avatar Apr 26 '21 18:04 guilhermeleobas

Raising an exception might be a problem for other omnisci products (see image below). An alternative is to force the execution to the CPU when libdevice is unavaiable.

image

guilhermeleobas avatar Jun 17 '21 16:06 guilhermeleobas