rbc
rbc copied to clipboard
omniscidb should scan CUDA_PATH and /lib folders when looking for libdevice file
https://github.com/omnisci/omniscidb-internal/blob/ebd3a5f4bec2d5925fc844e01a932f2cdd2eec90/CudaMgr/CudaMgr.cpp#L404-L430
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.
This might be a simple PR. One needs to do the following:
- Update
read_libdevice_moduleto also check for libdevice in/path/to/cuda/lib/ - Raise an exception if
libdevice.10.bcis not available
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.
