How to make CUDA 5.5 nvcc run under 64bit Ubuntu
来源:互联网 发布:当数据库被破坏时,利用 编辑:程序博客网 时间:2024/05/16 12:24
Step 1: Download tarball from thissite.
Step 2: Follow the instruction to install the CUDA. Here isthe instruction page.
Step 3: Check the PATH and LD_LIBRARY_PATH variables, ensure you have included the CUDA path correctly.
Step 4: Since nvcc is 32bit elf. It still needs 32bits library to install. Please run
sudo apt-get install libc6-i386Without the libc6-i386, you will get an famous obscure error of "no such file or directory" which will misguide you and waste your a lot time.
Under the /path/to/cuda/bin directory, you can check the libraries needed by nvcc as you installed libc6-i386:
$ldd nvcclinux-gate.so.1 => (0xf7752000)libpthread.so.0 => /lib32/libpthread.so.0 (0xf771e000)libgcc_s.so.1 => not foundlibc.so.6 => /lib32/libc.so.6 (0xf756d000)/lib/ld-linux.so.2 (0xf7753000)
Step 5: nvcc is still missing libgcc_s.so.1, which is the 32bit edition of libgcc. Run the following command:
$sudo dpkg --add-architecture i386$sudo apt-get updateStep 6: (Optional) Open the "Ubuntu Software Center", change the "Software Sources" to "Main Server"
$sudo apt-get install libgcc321Now you get nvcc run.
$nvcc -Vnvcc: NVIDIA (R) Cuda compiler driverCopyright (c) 2005-2013 NVIDIA CorporationBuilt on Wed_Jul_17_18:13:30_PDT_2013Cuda compilation tools, release 5.5, V5.5.0
Issue 0: gfec misses the libstdc++.so.6
When I compiled the samples under Ubuntu 64, this error occurred and here is the resolution:
sudo apt-get install libstdc++6:i386
Because gfec is a 32bit elf, it needs 32-bit libstdc++.
Good luck & happy new year!
0 0
- How to make CUDA 5.5 nvcc run under 64bit Ubuntu
- How to run 32-bit app in Ubuntu 64-bit?
- How to run 32-bit app in Ubuntu 14.04 64-bit?
- how to config 64bits ubuntu to run 32bit program
- How to run scripts under Linux
- How to get a 64-bit compiler under windows to use with matlab
- How to setting up ADSL under Ubuntu
- Caffe + Ubuntu 12.04 64bit + CUDA 5.5
- How to run Process Guard under a limited account
- How to run JBoss (5.1) under debug mode
- How to Run Redis as a Service under Windows
- How to Make an Pretty "Under Construction" Homepage
- How to run 32 bit .NET Windows apps on 64 bit Windows (including with IEExec)
- How to compile Andriod in Ubuntu 64 bit system
- How to Install and Run a node.js App on Centos 6.4 64bit
- How to Build and Run Android L 64-bit ARM in QEMU
- How to Run Android Applications on Ubuntu
- How to run a script in ubuntu?
- 适配器模式C++实现
- GUI__【GUI概述】【布局】【Frame】【事件监听机制】【窗体事件】【按钮】【鼠标事件】【键盘事件】【Dialog对话框】【菜单】
- MySQL Storage Engine
- Leetcode: Construct Binary Tree from Inorder and Postorder Traversal
- vim change font
- How to make CUDA 5.5 nvcc run under 64bit Ubuntu
- 【引用】经典到死的屁话
- 2013年总结
- 阅胡适《文学改良刍议》有感
- SD/MMC/SDIO概念区分
- 投名状吧
- 运算符重载 分数类
- mysql下修改engine引擎的方法
- njit-client( or H3C iNode 替换对象) Can replace iNodeClient