rbc icon indicating copy to clipboard operation
rbc copied to clipboard

Introduce TargetInfo.host_cuda class method

Open pearu opened this issue 4 years ago • 0 comments

For API, see https://github.com/xnd-project/rbc/blob/6cab3729b13cc9ef71d01c58845afc465c586f32/rbc/targetinfo.py#L133

Use https://github.com/xnd-project/rbc/blob/master/rbc/libcudart_ctypes.py to retrieve CUDA information.

See https://github.com/omnisci/omniscidb-internal/blob/99e6039d1862985154bd1df166a6e764f6caaab0/QueryEngine/NativeCodegen.cpp#L913-L941 for a set target info keys.

When done, add host_cuda support (gpu=...) to https://github.com/xnd-project/rbc/blob/6cab3729b13cc9ef71d01c58845afc465c586f32/rbc/remotejit.py#L678-L690

Aim: eliminate using omnisci from rbc/tests/test_externals_libdevice.py (see #286).

pearu avatar Mar 02 '21 16:03 pearu