Giter VIP home page Giter VIP logo

Comments (3)

honnibal avatar honnibal commented on May 18, 2024

Sorry this is hard. I don't use Windows, so am not of much help. You might try the wheels here? https://www.lfd.uci.edu/~gohlke/pythonlibs/ Some advertise CUDA linkage. It might solve your problem.

from thinc.

pythonBerg avatar pythonBerg commented on May 18, 2024

Has there been a resolution to this? Right now using linux through VM so I do not have access to GPU. Windows solution would be extremely welcome...

from thinc.

ericstarr avatar ericstarr commented on May 18, 2024

I'm also having trouble getting GPU working on Windows. I'm not sure what issue you are having, but in my case, it's the fact that thinc.neural.gpu_ops isn't getting created.

I should note that I'm trying to do this using CUDA v9, so some of the issue may be due to that. Also, I just started digging into this today, so I may be way off.

I think the issue is in the locate_cuda function in setup.py. I think there are two separate issue with the function.

First, the following snippet fails to see nvcc, even though it's there.

for k, v in cudaconfig.items():
    if not os.path.exists(v):
        print('Warning: The CUDA %s path could not be located in %s' % (k, v))
        return None

I think this is because
os.path.exists('[CUDA_HOME]\bin\nvcc) returns False,
but
os.path.exists('[CUDA_HOME]\bin\nvcc.exe) returns True.

I'm guessing this is a platform dependent issue.

Also, the code is looking for a lib64 directory under the CUDA_HOME directory. In my case, this doesn't exist, though there is a lib directory with an x64 directory under that. I assume that is the directory it should be pointing to. I'm not sure whether this is a platform specfic issue or an issue due to the fact that I'm using CUDA v9.

from thinc.

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.