通过brew和dmg安装cuda [英] Installing cuda via brew and dmg

查看:297
本文介绍了通过brew和dmg安装cuda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照以下指南尝试在MAC上安装nvidia工具包后: http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#axzz4FPTBCf7X 我收到了错误包装清单解析错误",该错误导致我对此: NVidia CUDA工具包7.5 .27无法在OS X上安装.我卸载了dmg,结果是安装程序没有启动(它似乎先启动,然后退出),而不是收到"Package manifest parsing error"(安装清单解析错误)的提示.

通过命令brew install Caskroom/cask/cuda安装(将CUDA 7.5安装在Mac缺少nvrtc )似乎已成功安装了cuda.

命令nvcc --version返回:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Mon_Apr_11_13:23:40_CDT_2016
Cuda compilation tools, release 7.5, V7.5.26

我已经在/Developer/NVIDIA/CUDA-7.5/samples/1_Utilities中使用

构建了示例

make -C bandwidthTest/

这没有错误地执行.

使用brew install Caskroom/cask/cuda安装似乎是安全的安装方法?这种安装方法与通过nvidia的DMG文件进行安装有什么区别?

Caskroom似乎是用于安装GUI应用程序的brew扩展: https://github.com/caskroom/homebrew-cask

在cuda install中还应该安装IDE吗?

解决方案

这两种方法都是从NVidia的同一.dmg文件下载并安装的.

homebrew-cask框架是在homebrew范例中安装以二进制形式分发的软件的首选方法.

这是我的理解.

After attempting to install nvidia toolkit on MAC by following guide : http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#axzz4FPTBCf7X I received error "Package manifest parsing error" which led me to this : NVidia CUDA toolkit 7.5.27 failing to install on OS X . I unmounted the dmg and upshot was that instead of receiving "Package manifest parsing error" the installer would not launch (it seemed to launch briefly , then quit).

Installing via command brew install Caskroom/cask/cuda (CUDA 7.5 install on Mac missing nvrtc) seems to have successfully installed cuda.

command nvcc --version returns :

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Mon_Apr_11_13:23:40_CDT_2016
Cuda compilation tools, release 7.5, V7.5.26

I've built the example in /Developer/NVIDIA/CUDA-7.5/samples/1_Utilities with :

make -C bandwidthTest/

This executed without error.

It appears installing with brew install Caskroom/cask/cuda is safe method of installing ? What is difference between this install method and installing via DMG file from nvidia ?

Caskroom appears to be an extension for brew for installing GUI applications : https://github.com/caskroom/homebrew-cask

Should an IDE also be installed as part of the cuda install ?

解决方案

Both methods download and install from the same .dmg file from NVidia.

The homebrew-cask framework is the preferred method for installing software distributed as binaries in the homebrew paradigm.

This is my understanding.

这篇关于通过brew和dmg安装cuda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆