Giter VIP home page Giter VIP logo

Comments (9)

asuhan avatar asuhan commented on September 25, 2024

@farhaanbukhsh You can try either with export NO_CUDA=1 or with gcc 7 (instead of Clang).

from xla.

farhaanbukhsh avatar farhaanbukhsh commented on September 25, 2024

@asuhan I want cuda support should I try with gcc 7 ?

from xla.

farhaanbukhsh avatar farhaanbukhsh commented on September 25, 2024

@farhaanbukhsh You can try either with export NO_CUDA=1 or with gcc 7 (instead of Clang).

gcc7 doesn't work it fails the simple test of compiling the program, when I did a install

from xla.

asuhan avatar asuhan commented on September 25, 2024

I don't understand what failed -- compiling a simple C++ program with gcc or something else?

from xla.

farhaanbukhsh avatar farhaanbukhsh commented on September 25, 2024

image

This is what I got when I ran with export NO_CUDA=1 and COMPILE_PARALLEL=0 python setup.py install

from xla.

farhaanbukhsh avatar farhaanbukhsh commented on September 25, 2024

image
export CC=gcc CXX=g++-7 and COMPILE_PARALLEL=0 python setup.py install`

I realised i could be mistaken I should have used export CC=gcc-7 CXX=g++-7

from xla.

farhaanbukhsh avatar farhaanbukhsh commented on September 25, 2024

image

export CC=gcc-7 CXX=g++-7

from xla.

dlibenzi avatar dlibenzi commented on September 25, 2024

I suggest you using clang-7, as it is the one we used to work on and test internally.
But the blas error is likely due to a specific version of MKL liked by pytorch.
These are the versions a conda list shows me in my setup:

blas                      1.0                         mkl  
mkl                       2019.3                      199  
mkl-include               2019.1                      144  
mkl-service               1.1.2            py36he904b0f_5  
mkl_fft                   1.0.10           py36ha843d7b_0  
mkl_random                1.0.2            py36hd81dba3_0 

from xla.

ailzhang avatar ailzhang commented on September 25, 2024

In general if you want to build with both Cuda and XLA support, use gcc to build pytorch and clang7 to build torch_xla works well for me. If you only want XLA support clang7 should work for both by building pytorch with USE_CUDA=0.
As @dlibenzi said above, upgrading mkl version should fix the error shown in the last snapshot.
Closing issue as resolved, please feel free to reopen if you have follow up questions.

from xla.

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.