xorbitsai / xoscar

Python actor framework for heterogeneous computing.
https://xoscar.dev
Apache License 2.0
91 stars 21 forks source link

BUG: disable import cuda error when cpu only in a shared python env #47

Closed ChengjieLi28 closed 1 year ago

ChengjieLi28 commented 1 year ago

Shared python environments that contain cuda-related environments but do not actually have GPU environments on the machine only show warnings.

Fixes https://github.com/xorbitsai/xorbits/issues/595

Check code requirements

codecov[bot] commented 1 year ago

Codecov Report

Merging #47 (7a7335a) into main (7db36a2) will decrease coverage by 3.61%. The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
- Coverage   93.84%   90.23%   -3.61%     
==========================================
  Files          42       42              
  Lines        3361     3358       -3     
  Branches      672      349     -323     
==========================================
- Hits         3154     3030     -124     
- Misses        136      244     +108     
- Partials       71       84      +13     
Flag Coverage Δ
unittests 90.23% <ø> (-3.47%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

see 14 files with indirect coverage changes