Giter VIP home page Giter VIP logo

Comments (5)

sugarme avatar sugarme commented on June 1, 2024 2

@Kur-Ich , @chnykn ,

I now can setup a Windows box for testing. Although the issue you mentioned above related to linking issue, it can be fixed by wiring up with absolute path at lib.go file, the compilation still blocked with unsolved issue __assert_fail.... It turns out: Pytorch has not supported MinGW64 GCC at this time while Golang CGO only support MinGW on Window for GCC. So 2 issues to follow up:

  1. Pytorch: pytorch/pytorch#42589
  2. GO: golang/go#20982

Temporary solution for Windows users would be using WSL2 and install a Linux distribution. If you like your Windows system and have Visual Code installed on your Windows, the following steps might help:

  1. Install WSL2 (https://docs.microsoft.com/en-us/windows/wsl/install)
  2. Install Ubuntu on WSL2 (https://www.microsoft.com/en-gb/p/ubuntu-2004-lts/9n6svws3rx71)
  3. Setup visual code for accessing WSL2 (https://code.visualstudio.com/docs/remote/wsl)
  4. Setup Go (install Go on Ubuntu side and set GOPATH environment)
  5. Install tools: sudo apt install build-essential clang
  6. Setup CC to use clang: export CC = clang export CXX = clang++ to fix undefined reference to mkl... at .bashrc (Ubuntu side)
  7. Setup gotch for linux as in README.md file.

Hope that helps.

from gotch.

sugarme avatar sugarme commented on June 1, 2024 1

@Kur-Ich ,

We haven't got a setup instruction for Windows yet!

There's different libtorch for Windows. You can download from Pytorch site:

and unzip to your system. Then setup environment:

  • Temporary: in your console/shell window
$Env:GOTCH_LIBTORCH = "PATH_TO_YOUR_INSTALLED_LIBTORCH"
$Env:Path += ";PATH_TO_YOUR_INSTALL_LIBTORCH/lib"
  • System-wide: set environment at Control Panel -> System -> Advanced -> Environment Variables

Hope that helps.

from gotch.

Kur-Ich avatar Kur-Ich commented on June 1, 2024

Thanks. I've added both but I'm still getting the same error unfortunately. Is anything else needed, such as building the C++ lib with CMake?

from gotch.

chnykn avatar chnykn commented on June 1, 2024

Thanks. I've added both but I'm still getting the same error unfortunately. Is anything else needed, such as building the C++ lib with CMake?

I have the same problem on windows

from gotch.

chnykn avatar chnykn commented on June 1, 2024

@sugarme thank you, thank you. I've turned to archlinux.

from gotch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.