wangkuiyi / gotorch

A Go idiomatic binding to the C++ core of PyTorch
MIT License
322 stars 35 forks source link

Link with pytorch/xla when build for Linux #289

Open wangkuiyi opened 4 years ago

wangkuiyi commented 4 years ago

This change refactorized cgotorch/build.sh. In two cases, it builds libcgotorch.so for Linux: (1) Linux and no CUDA, and (2) Linux, with CUDA, but unsupported version. When it builds for Linux, it always link the pre-built pytorch/xla.

I will add wrappers and example code in the next PR.

codecov[bot] commented 4 years ago

Codecov Report

Merging #289 into develop will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #289   +/-   ##
========================================
  Coverage    80.58%   80.58%           
========================================
  Files           34       34           
  Lines         1638     1638           
========================================
  Hits          1320     1320           
  Misses         253      253           
  Partials        65       65           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 615d347...7c9b6e2. Read the comment docs.