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
Upgrade to CuDNN 7 and CUDA 9 #12052
Comments
@tfboyd do you have any comments on this? |
cuDNN 7 is still in preview mode and is being worked on. We just moved to cuDNN 6.0 with 1.3, which should go final in a couple weeks. You can download cuDNN 1.3.0rc2 if you are interested in that. I have not compiled with cuDNN 7 or CUDA 9 yet. I have heard CUDA 9 is not easy to install on all platforms and only select install packages are available. When the libraries are final we will start the final evaluation. NVIDIA has also just started sending patches to the major ML platforms to support aspects of these new libraries and I suspect there will be additional work. Edit: I meant to say CUDA 9 is not easy to install on all platforms and instead said cuDNN. I also changed sure there will be work to I suspect there will be additional work. The rest of my silly statement I left, e.g. I did not realize cuDNN 7 went live yesterday. |
Not saying how you should read the website. But the 2x faster on pascal looks to be part of the CUDA 8 release. I suppose it depends on how you read the site. NVIDIA has not mentioned to us that CUDA 9 is going to speed up Pascal by 2x (on everything) and while anything is possible, I would not expect that to happen. https://developer.nvidia.com/cuda-toolkit/whatsnew The site is a little confusing but I think the section you are quoting is nested under the CUDA 8. I only mention this so you do not have unrealistic expectations for their release. For Volta there should be some great gains from what I understand and I think (I do not now for sure) people are just getting engineering samples of Volta to start high level work to get ready for the full release. |
@tfboyd cuDNN 7 is no longer in preview mode as of yesterday. It has been officially released for both CUDA 8.0 and CUDA 9.0 RC. |
Ahh I missed that. Thanks @sclarkson and sorry for the wrong info. |
I will certainly try it because finally gcc 6 is supported by CUDA 9 and Ubuntu 17.04 comes with it. |
If you have luck let the thread know. I am personally just starting to
fully test cuDNN 6 (Internally it has been tested a lot but I have not been
using it personally). I am often slow to upgrade to the latest stuff. My
guess is you may not see any real change with cuDNN 7 until everything gets
patched to use the latest APIs. I want to stress again that I am wrong all
of the time. What I have seen as an outsider is the new cuDNN versions add
new methods/APIs. Some are interesting and some are not immediately
useful. Then those APIs get exposed via the TensorFlow API or just used
behind the scenes to make existing methods faster. My very high level
understanding is cuDNN 7 + CUDA 9 will enhance FP16 support with a focus on
Volta. I think one of the main focuses is how to get models (many not just
a few) to converge with FP16 without having to endlessly guess the right
config/hyperparameters to use. I want to stress that this is how I
understood the conversation and I may be incorrect or half correct.
STRESS: If there are methods you think need to be added (or leverage for
performance) to TensorFlow from cuDNN we are always interested in a list.
Internally, this happened with cuDNN 6 and we focused on implementing the
features teams said they wanted that would help their projects.
…On Sat, Aug 5, 2017 at 8:46 AM, Courtial Florian ***@***.***> wrote:
I will certainly try it because finally gcc 6 is supported by CUDA 9 and
Ubuntu 17.04 comes with it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12052 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWZessKqj_nPY1br9SD9L9SX-8Kf5Dbtks5sVI5TgaJpZM4OuRL7>
.
|
Speaking of methods to be added, group convolution from cudnn7 would be a important feature for vision community. |
Cool I will add it to the list I am starting. I may forget but feel free
to remind me to publish some kind of list where I can provide some guidance
on what is likely being worked on. It cannot be a promise but we want
feedback so we can prioritize what people want and need. Thank you Yuxin.
…On Sat, Aug 5, 2017 at 12:26 PM, Yuxin Wu ***@***.***> wrote:
Speaking of methods to be added, group convolution from cudnn7 would be a
important feature for vision community.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12052 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWZesv9udRRxy9WvsK2eUEZCj7LAGM8bks5sVMHVgaJpZM4OuRL7>
.
|
I just tried to compile with cuDNN 7 with CUDA 8 and it failed which I kind
of expected. There is a patch incoming from NVIDIA that should help line
things up. Just a heads up if anyone is trying.
…On Sat, Aug 5, 2017 at 1:47 PM, Toby Boyd ***@***.***> wrote:
Cool I will add it to the list I am starting. I may forget but feel free
to remind me to publish some kind of list where I can provide some guidance
on what is likely being worked on. It cannot be a promise but we want
feedback so we can prioritize what people want and need. Thank you Yuxin.
On Sat, Aug 5, 2017 at 12:26 PM, Yuxin Wu ***@***.***>
wrote:
> Speaking of methods to be added, group convolution from cudnn7 would be a
> important feature for vision community.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#12052 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AWZesv9udRRxy9WvsK2eUEZCj7LAGM8bks5sVMHVgaJpZM4OuRL7>
> .
>
|
I am trying to get cuDNN 7 with CUDA 8/9 running. CUDA 8 is not supported by the GTX 1080 Ti - at least the installer says so ^^ I am having a big time trouble getting it running together. I want to point out this great article that sums up what i already have tried: https://nitishmutha.github.io/tensorflow/2017/01/22/TensorFlow-with-gpu-for-windows.html The CUDA examples are working via Visual-Studio in both setup combinations.
@tfboyd do you have any link confirming the cuDNN update from Nvidea? |
@4F2E4A2E 1080 Ti definitely supports CUDA 8.0. That's what I've been using with TensorFlow for the past several months. |
Hi all, so i have gtx 1080 ti with cuda 8.0. I am trying to install tensorflow-gpu, do i go for cuDNN 5.1, 6.0 or 7.0? |
I suggest sticking with 5.1 for the moment. I am running some deeper perf
tests on 6 and getting mixed results that need more testing to figure out.
…On Aug 6, 2017 9:30 PM, "colmantse" ***@***.***> wrote:
Hi all, so i have gtx 1080 ti with cuda 8.0. I am trying to install
tensorflow-gpu, do i go for cuDNN 5.1, 6.0 or 7.0?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12052 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWZeshvEFsdeWz-1uyzl_L6HE15E0BzSks5sVpLlgaJpZM4OuRL7>
.
|
thanks, i tried with cudnn 6.0 but doesn't work, i guess because of my dummy tf-gpu installation. cudnn 5.1 works for me with python 3.6 |
@tpankaj Thank you! I've got it running with CUDA 8 and cuDNN 5.1 |
Here are the full set of features in cuDNN 7:
|
Alright I am thinking about starting a new issue that is more of a "blog" of CUDA 9 RC + cuDNN 7.0. I have a TF build "in my hand" that is patched together but is CUDA 9RC and cuDNN 7.0 and I want to see if anyone is interesting in trying it. I also need to make sure there is not some weird reason why I cannot share it. There are changes that need to be made to some upstream libraries that TensorFlow uses but you will start to see PRs coming in from NVIDIA in the near future. I and the team were able to test CUDA 8 + cuDNN 6 on Volta and then CUDA 9RC + cuDNN 7 on Volta (V100) with FP32 code. I only do Linux builds and Python 2.7 but if all/any of you are interested I would like to try and involve the community more than we did with cuDNN 6.0. It might not be super fun but I want to offer as well as try to make this feel more like we are in this together vs. I am feeing information. I also still want to build out lists of what features we are working on but not promising for cuDNN 7 (and 6.0). @cancan101 thank you for the full list. |
@tfboyd: I would be grateful for descriptions on doing CUDA 9.0RC+cuDNN 7.0. I am using a weird system myself (ubuntu 17.10 beta with TF1.3, CUDA 8.0 and cuDNN 6.0 gcc-4.8), and upgrading to cuda 9 and cudnn 7 would actually be nice compilerwise. |
I will see what I can do on getting what you need to build yourself and a
binary. The performance team lead indicated I can try and make this happen
so we can be more transparent and I hope have more fun as a community.
Getting you the patch and how to build it not super hard but is a little
harder. It will also be very informal as I do not have time to manage a
branch and the patch could bit rot (not apply cleanly) very quickly. The
patch was used to make sure everyone involved was ok with the changes in
general and I expect individual PRs will start coming in.
…On Fri, Aug 11, 2017 at 5:22 AM, Erlend Aune ***@***.***> wrote:
@tfboyd <https://github.com/tfboyd>: I would be grateful for descriptions
on doing CUDA 9.0RC+cuDNN 7.0. I am using a weird system myself (ubuntu
17.10 beta with TF1.3, CUDA 8.0 and cuDNN 6.0 gcc-4.8), and upgrading to
cuda 9 and cudnn 7 would actually be nice compilerwise.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12052 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWZesj4WRkFKNX-Nt2oKtvp0oyQVBtM5ks5sXEdqgaJpZM4OuRL7>
.
|
@tfboyd: I am interested, how will you share it? A branch? |
@tfboyd I'd definitely be very interested as well. Thanks! |
Trying to figure it out this week. Logistics are often harder than I
think.
…On Aug 12, 2017 10:18 AM, "Tanmay Bakshi" ***@***.***> wrote:
@tfboyd <https://github.com/tfboyd> I'd definitely be very interested as
well. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12052 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWZesjO42Rl1WCyW0KR22KgbydKh1O4Zks5sXd6AgaJpZM4OuRL7>
.
|
The pr is declined but it seams to be merged manually. Do we have to wait for a eigen release or is it getting built by the sources? |
Cool, then it will be on Nightly pip? |
@Tweakmind
|
It seems that OSX is excluded in version 7.0.5 of cuDNN. Does anyone know a detailed thing? |
I still can't get tensorflow-gpu to work in Windows 10 (with CUDA 9.0.176 and cudnn 7.0).
When I install just tensorflow-gpu it complains about a missing dll:
Which is weird because my CUDA version is 9.0, not 8.0, and is recognized (deviceQuery test passed). |
I'm trying to build from source by bazel on win 7, get error
Can anyone build whl? |
@hadaev8, I need a lot more information to help. I can work on a whl but it will have heavy dependencies and not Win7, once I solve MacOS, I will solve Win10. In any case, post your details. @eeilon79, I need to recreate this under Win10. I'm currently focused on MacOS now that Ubuntu is solved. I will come back to Win 10. |
@nasergh, is there a requirement for python 2.7? |
With CUDA 8.0 and cuDNN 6.0, this is how I installed TensorFlow from source for Cuda GPU and AVX2 support in Win10:: Requirements:
Install Visual Studio Community Edition Update 3 w/Windows Kit 10.0.10240.0 Create a Virtual Drive N: for clarity Install Cuda 8.0 64-bit Install cuDNN 6.0 for Cuda 8.0 Install CMake Install Swig (swigwin-3.0.12) cntk-py36
Remove old tensorflow in Tools if it exists
Comment out these:
Add these:
mkdir build & cd build
-- Building for: Visual Studio 14 2015
|
@Tweakmind |
@Tweakmind do you build with master or ? |
@Tweakmind |
Don't you try to build on win 10 with cuda 9 cudnn 7 ? Thanks for your expertise ! |
@hadaev8 @alc5978 |
Go to http://www.python36.com/install-tensorflow141-gpu/ for step by step installation of tensorflow with cuda 9.1 and cudnn7.05 on ubuntu. And go to http://www.python36.com/install-tensorflow-gpu-windows for step by step installation of tensorflow with cuda 9.1 and cudnn 7.0.5 on Windows. |
It's 2018, almost end of January and installation of TF with CUDA9.1 and CuDNN7 on Windows 10 is still not done? |
1.5 is RC with CUDA 9 + cuDNN 7 and should go GA in the next few days. (CUDA 9.1 was GA in December and requires another device driver upgrade that is disruptive to many users. The current plan is to keep the default build on CUDA 9.0.x and keep upgrading to newer cuDNN versions). I opened an issue to discuss CUDA 9.1. The 12x kernel launch speed improvement is more nuanced than the 12x number. The top end of 12x is for |
I hope it will be finally CUDA 9.1, not 9.0. |
I hope it will be finally CUDA 9.1, not 9.0 too. |
I 'm sur it will be finally CUDA 9.1, not 9.0 too, isn't it ? :) |
@ViktorM @Magicfeng007 @alc5978 |
If anybody are still facing problems like Keras with TensorFlow backend not using GPU.... just follow the instructions in this page. It is updated and works 100% correctly. |
Hi All Everything seems ok |
I created one script for NVIDIA GPU prerequisites (CUDA-9.0 and cuDNN-7.0) for the latest TensorFlow (v1.5+), here is the link. |
System information
Describe the problem
Please upgrade TensorFlow to support CUDA 9 and CuDNN 7. Nvidia claims this will provide a 2x performance boost on Pascal GPUs.
The text was updated successfully, but these errors were encountered: