-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues in building from source #20
Comments
Hi Divyam, First let me ask some details. Are you working in a virtual env or a conda env? If so activate that environment before compiling. Perform a I can confirm that in many cases the pip install doesn't work. It seems to be highly dependent on your specific setup. So compiling yourself seems to be necessary in most cases. First let me give some general advice. Currently the readme is out dated. There are some extra requirements you need to install which are not mentioned there Python requirements:
System requirements: Your issue seems to be related with the fact that you are using compute_70 in CUDA 9. For some reason this didn't work in my case either. If you comment out the following lines your issues might be solved
Good luck |
Thank you for your valuable comment, I agree that the README is outdated. To answer your question, I am working in a virtualenv, I had the system requirements fulfilled before and commenting the lines did help in succeeding the build. However, if I run |
I'll make a pull request for the Readme and update the requirements in the setup file. I have the same issue with failing tests. Unfortunately I don't have the expertise to fix those issues. |
The m8n32k16 error is just a matter of not having cuda >= 9.2. It's kind of annoying all the ptx breaking changes nvidia has been making lately that could have been easily avoided with a small amount of foresight. Anyway, we have a paper going out soon covering the blocksparse transformer ops. I plan to clean things up and fully document everything prior to that. I'll also have some new conv kernels as well. We're pushing hard now on learned sparsity in a variety of architectures so this code is changing quickly internally. Though I guess I should warn you that a lot of the new development is mostly targeting tensorcore capable hardware. |
Hi @scott-gray Thank you for your comment, looking forward to the changes! |
No idea what that error could be. Something must be off with your build env. I put some comments in the bottom of the Makefile showing the env I use: https://github.com/openai/blocksparse/blob/master/Makefile Though you no longer need to patch tensorflow to support batched matmul in fp16. But you will still likely need to build from source to get cuda >= 9.2 support. |
Same configuration as above. I have the exactly same problem. when I comment out
I can finish but when i try it failed due to
|
@scott-gray @divyam3897 have you ever got any chance to resolve this? Thanks! |
Same issue as @ruiwang2uber @divyam3897, any updates? Would appreciate it. Thx! |
In case this helps anyone, I created the following Dockerfile and instructions that worked for me: Dockerfile (place this in root of the
Instructions (you might need to run these commands with
CPU
GPU
|
Configuration:
Operating System: Linux Ubuntu 16.04
Python version: 3.5.2
Tensorflow version: 1.12.0
Cuda version: 9.0
GPU: TITAN X (Pascal)
Command to Reproduce
make compile
Problem:
The build command fails with the following errors:
pip install blocksparse
fails too and results in #7The text was updated successfully, but these errors were encountered: