Cuda Library Mac
Abstract
2017-9-21 Mac 相比Windows 有好多优点,同时又是基于Unix 的所以对科研相当友好,但是最大的缺点就是非常封闭,各种沙盒安全机制,这就导致了除了官方的显卡,其他的显卡支持相当的差,也许正是这. 2019-1-31 核心要点:如何用MacBook顺理成章地使用NVIDIA显卡支持的CUDA对深度神经网络的训练进行加速? 本文结构硬件配置电脑以及eGPU情况eGPU的安装eGPU性能损耗环境配置virtual environmentCUDA 安装Mac OS 10.13.6 Pytor. 2016-1-21 本文介绍了如何在ubuntu上以virtualenv方式安装tensorflow。 安装pip和virtualenv:# Ubuntu/Linux 64-bitsudo apt-get install. 2019-4-12 大致流程参照 2018 MAC安装CUDA、cuDNN(Gaming Box1070 ) 顺序是:GPU Driver、CUDA Driver、CUDA Toolkit、cuDNN 安装驱动时要注意: MacOS与NVIDIA GPU Driver的版本要匹配,才能驱动显卡 CUDA Driver与NVIDIA GPU Driver的版本要一致.
This guide provides step-by-step instructions on how to install and check for correct operation of NVIDIA cuDNN v7.1.4 on Linux, Mac OS X, and Microsoft Windows systems.
2014-4-17 Dose anyone knows how can I uninstall this in my iMac 2011 version? I can't even search any folders or files named CUDA in my mac to delete. That was my mistake to install this with my ATI display card, I just want to use OpenCL now instal of this CUDA, anyone can help? 2017-3-5 然后tar xvf解压他: 你会发现他是个叫做cuda的文件夹。在这里我不得不延伸一下,你在mac下装cuda会发现他在developer里有个NVIDIA,里面有cuda安装目录,但是哈,不要直接去用这里.
1. Overview
The NVIDIA CUDA Deep Neural Network library (cuDNN) is a GPU-accelerated library of primitives for deep neural networks. cuDNN provides highly tuned implementations for standard routines such as forward and backward convolution, pooling, normalization, and activation layers. cuDNN is part of the NVIDIA Deep Learning SDK.
Deep learning researchers and framework developers worldwide rely on cuDNN for high-performance GPU acceleration. It allows them to focus on training neural networks and developing software applications rather than spending time on low-level GPU performance tuning. cuDNN accelerates widely used deep learning frameworks, including Caffe, Caffe2, TensorFlow, Theano, Torch, PyTorch, MXNet, and Microsoft Cognitive Toolkit. cuDNN is freely available to members of the NVIDIA Developer Program.
2. Installing cuDNN on Linux

2.1. Prerequisites
Ensure you meet the following requirements before you install cuDNN.- A GPU of compute capability 3.0 or higher. To understand the compute capability of the GPU on your system, see: CUDA GPUs.
- If you are using cuDNN with a Volta GPU, version 7 or later is required.
- One of the following supported Architecture - OS combinations:
- On x86_64 (for installing cuDNN with debian files) - Ubuntu 14.04 or Ubuntu 16.04
- On x86_64 (for installing tgz files) - Any Linux distribution
- On POWER8/POWER9 - RHEL7.4
- One of the following supported CUDA versions and NVIDIA graphics driver:
- NVIDIA graphics driver R375 or newer for CUDA 8
- NVIDIA graphics driver R384 or newer for CUDA 9
- NVIDIA graphics driver R390 or newer for CUDA 9.2
For more information, see
2.1.1. Installing NVIDIA Graphics Drivers
Install up-to-date NVIDIA graphics drivers on your Linux system.
- Go to: NVIDIA download drivers
- Select the GPU and OS version from the drop down menus.
- Download and install NVIDIA graphics driver as indicated in that webpage. For more information, select the ADDITIONAL INFORMATION tab for step-by-step instructions for installing a driver.
- Restart your system to ensure the graphics driver takes effect.
2.1.2. Installing CUDA
Refer to the following instructions for installing CUDA on Linux, including the CUDA driver and toolkit: NVIDIA CUDA Installation Guide for Linux.
2.2. Downloading cuDNN
In order to download cuDNN, ensure you are registered for the NVIDIA Developer Program.
- Go to: NVIDIA cuDNN home page.
- Click Download.
- Complete the short survey and click Submit.
- Accept the Terms and Conditions. A list of available download versions of cuDNN displays.
- Select the cuDNN version you want to install. A list of available resources displays.
2.3. Installing cuDNN on Linux
The following steps describe how to build a cuDNN dependent program. Choose the installation method that meets your environment needs. For example, the tar file installation applies to all Linux platforms. The debian installation package applies to Ubuntu 14.04 and 16.04.
In the following sections:- your CUDA directory path is referred to as/usr/local/cuda/
- your cuDNN download path is referred to as<cudnnpath>
2.3.1. Installing from a Tar File
- Navigate to your<cudnnpath>directory containing the cuDNN Tar file.
- Unzip the cuDNN package.
- Copy the following files into the CUDA Toolkit directory.

2.3.2. Installing from a Debian File
- Navigate to your<cudnnpath>directory containing cuDNN Debian file.
- Install the runtime library, for example:
- Install the developer library, for example:
- Install the code samples and the cuDNN Library User Guide, for example:
2.4. Verifying
To verify that cuDNN is installed and is running properly, compile the mnistCUDNN sample located in the/usr/src/cudnn_samples_v7directory in the debian file.
- Copy the cuDNN sample to a writable path.
- Go to the writable path.
- Compile the mnistCUDNN sample.
- Run the mnistCUDNN sample.If cuDNN is properly installed and running on your Linux system, you will see a message similar to the following:
2.5. Upgrading from v6 to v7
cuDNN v7 can coexist with previous versions of cuDNN, such as v5 or v6.
2.6. Troubleshooting
Join the NVIDIA Developer Forum to post questions and follow discussions.
3. Installing cuDNN on Mac OS X
3.1. Prerequisites
Ensure you meet the following requirements before you install cuDNN.- A GPU of compute capability 3.0 or higher. To understand the compute capability of the GPU on your system, see: CUDA GPUs.
- Mac OS X 10.11 or later
- NVIDIA graphics driver 378.05.05.25f01 or newer. For more information, see Installing NVIDIA Graphics Drivers.
- CUDA 9.0 RC. For more information, see Installing CUDA.
3.1.1. Installing NVIDIA Graphics Drivers
Install up-to-date NVIDIA graphics drivers on your Mac OS X system.
- Go to: NVIDIA download drivers
- Select the GPU and OS version from the drop down menus.
- Download and install NVIDIA graphics driver 378.05 or newer. For more information, select the ADDITIONAL INFORMATION tab for step-by-step instructions for installing a driver.
- Restart your system to ensure the graphics driver takes effect.
3.1.2. Installing CUDA
Refer to the following instructions for installing CUDA on Mac OS X, including the CUDA driver and toolkit: NVIDIA CUDA Installation Guide for Mac OS X.
3.2. Downloading cuDNN
In order to download cuDNN, ensure you are registered for the NVIDIA Developer Program.
- Go to: NVIDIA cuDNN home page.
- Click Download.
- Complete the short survey and click Submit.
- Accept the Terms and Conditions. A list of available download versions of cuDNN displays.
- Select the cuDNN version to want to install. A list of available resources displays.
- Extract the cuDNN archive to a directory of your choice.
3.3. Installing cuDNN on Mac OS X
The following steps describe how to build a cuDNN dependent program. In the following sections:- your CUDA directory path is referred to as/usr/local/cuda/
- your cuDNN directory path is referred to as<installpath>
- Navigate to your<installpath>directory containing cuDNN.
- Unzip the cuDNN package.
- Copy the following files into the CUDA Toolkit directory.
- Set the following environment variables to point to where cuDNN is located.
3.4. Verifying
To verify that cuDNN is working properly on your Mac OS X system, perform the following step.
Run the following command.If no error occurs, both the header and library are installed and can be located by thenvcccompiler.
3.5. Upgrading from v6 to v7
cuDNN v7 can coexist with previous versions of cuDNN, such as v5 or v6.
3.6. Troubleshooting
Join the NVIDIA Developer Forum to post questions and follow discussions.
4. Installing cuDNN on Windows
4.1. Prerequisites
Ensure you meet the following requirements before you install cuDNN.- A GPU of compute capability 3.0 or higher. To understand the compute capability of the GPU on your system, see: CUDA GPUs.
- One of the following supported platforms:
- Windows 7
- Windows 10
- Windows Server 2012
- One of the following supported CUDA versions and NVIDIA graphics driver:
- NVIDIA graphics driver R377 or newer for CUDA 8
- NVIDIA graphics driver R384 or newer for CUDA 9
- NVIDIA graphics driver R390 or newer for CUDA 9.2
For more information, see
4.1.1. Installing NVIDIA Graphics Drivers
Install up-to-date NVIDIA graphics drivers on your Windows system.
- Go to: NVIDIA download drivers
- Select the GPU and OS version from the drop down menus.
- Download and install NVIDIA driver as indicated in that webpage. For more information, select the ADDITIONAL INFORMATION tab for step-by-step instructions for installing a driver.
- Restart your system to ensure the graphics driver takes effect.
4.1.2. Installing CUDA
Refer to the following instructions for installing CUDA on Windows, including the CUDA driver and toolkit: NVIDIA CUDA Installation Guide for Windows.
4.2. Downloading cuDNN
In order to download cuDNN, ensure you are registered for the NVIDIA Developer Program.
- Go to: NVIDIA cuDNN home page.
- Click Download.
- Complete the short survey and click Submit.
- Accept the Terms and Conditions. A list of available download versions of cuDNN displays.
- Select the cuDNN version to want to install. A list of available resources displays.
- Extract the cuDNN archive to a directory of your choice.
4.3. Installing cuDNN on Windows
The following steps describe how to build a cuDNN dependent program. In the following sections:Cudnn Mac
- your CUDA directory path is referred to asC:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0
- your cuDNN directory path is referred to as<installpath>
- Navigate to your<installpath>directory containing cuDNN.
- Unzip the cuDNN package.or
- Copy the following files into the CUDA Toolkit directory.
- Copy<installpath>cudabincudnn64_7.dlltoC:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0bin.
- Copy<installpath>cuda includecudnn.htoC:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0include.
- Copy<installpath>cudalibx64cudnn.libtoC:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0libx64.
- Set the following environment variables to point to where cuDNN is located. To access the value of the$(CUDA_PATH)environment variable, perform the following steps:
- Open a command prompt from the Start menu.
- TypeRunand hit Enter.
- Issue thecontrol sysdm.cplcommand.
- Select the Advanced tab at the top of the window.
- Click Environment Variables at the bottom of the window.
- Ensure the following values are set:
- Includecudnn.libin your Visual Studio project.
- Open the Visual Studio project and right-click on the project name.
- Click Linker > Input > Additional Dependencies.
- Addcudnn.liband click OK.
4.4. Upgrading from v6 to v7
cuDNN v7 can coexist with previous versions of cuDNN, such as v5 or v6.
4.5. Troubleshooting
Join the NVIDIA Developer Forum to post questions and follow discussions.
Notices
Notice
THE INFORMATION IN THIS GUIDE AND ALL OTHER INFORMATION CONTAINED IN NVIDIA DOCUMENTATION REFERENCED IN THIS GUIDE IS PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO THE INFORMATION FOR THE PRODUCT, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. Notwithstanding any damages that customer might incur for any reason whatsoever, NVIDIA’s aggregate and cumulative liability towards customer for the product described in this guide shall be limited in accordance with the NVIDIA terms and conditions of sale for the product.
THE NVIDIA PRODUCT DESCRIBED IN THIS GUIDE IS NOT FAULT TOLERANT AND IS NOT DESIGNED, MANUFACTURED OR INTENDED FOR USE IN CONNECTION WITH THE DESIGN, CONSTRUCTION, MAINTENANCE, AND/OR OPERATION OF ANY SYSTEM WHERE THE USE OR A FAILURE OF SUCH SYSTEM COULD RESULT IN A SITUATION THAT THREATENS THE SAFETY OF HUMAN LIFE OR SEVERE PHYSICAL HARM OR PROPERTY DAMAGE (INCLUDING, FOR EXAMPLE, USE IN CONNECTION WITH ANY NUCLEAR, AVIONICS, LIFE SUPPORT OR OTHER LIFE CRITICAL APPLICATION). NVIDIA EXPRESSLY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR SUCH HIGH RISK USES. NVIDIA SHALL NOT BE LIABLE TO CUSTOMER OR ANY THIRD PARTY, IN WHOLE OR IN PART, FOR ANY CLAIMS OR DAMAGES ARISING FROM SUCH HIGH RISK USES.
Cda Library Account
NVIDIA makes no representation or warranty that the product described in this guide will be suitable for any specified use without further testing or modification. Testing of all parameters of each product is not necessarily performed by NVIDIA. It is customer’s sole responsibility to ensure the product is suitable and fit for the application planned by customer and to do the necessary testing for the application in order to avoid a default of the application or the product. Weaknesses in customer’s product designs may affect the quality and reliability of the NVIDIA product and may result in additional or different conditions and/or requirements beyond those contained in this guide. NVIDIA does not accept any liability related to any default, damage, costs or problem which may be based on or attributable to: (i) the use of the NVIDIA product in any manner that is contrary to this guide, or (ii) customer product designs.
Other than the right for customer to use the information in this guide with the product, no other license, either expressed or implied, is hereby granted by NVIDIA under this guide. Reproduction of information in this guide is permissible only if reproduction is approved by NVIDIA in writing, is reproduced without alteration, and is accompanied by all associated conditions, limitations, and notices.
Trademarks
NVIDIA, the NVIDIA logo, and cuBLAS, CUDA, cuDNN, cuFFT, cuSPARSE, DIGITS, DGX, DGX-1, Jetson, Kepler, NVIDIA Maxwell, NCCL, NVLink, Pascal, Tegra, TensorRT, and Tesla are trademarks and/or registered trademarks of NVIDIA Corporation in the Unites States and other countries. Other company and product names may be trademarks of the respective companies with which they are associated.
Copyright
Cuda Library Macon Ga
© 2018 NVIDIA Corporation. All rights reserved.