Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build CUDA environment under Ubuntu9.04

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to build a CUDA environment under Ubuntu9.04". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn this article "how to build a CUDA environment under Ubuntu9.04".

Building a CUDA environment under Ubuntu is actually very simple, only one thing to pay attention to is the driver. I don't know why NVIDIA also provides the old version of the cudadriver_2.3_linux_32_190.18 driver when downloading CUDA. I tried it. Although this driver can be installed normally, it will pop up when starting the graphical interface and cannot start the graphical interface normally. After * downloading the NVIDIA-Linux-x86-190.42-pkg1.run driver from NVIDIA, the CUDA sample program can be run normally. Here is a brief description of the installation steps.

1. Download CUDA's Toolkit and SDK packages without downloading that cudadriver, which is an old version of the graphics driver. You can go to the Nvidia official to download the driver that matches the video card model.

two。 Use the following command to close the graphical interface and enter the command line.

Sudo / etc/init.d/gdm stop

3. In the command line environment, enter the directory where the three files you just downloaded are located. First install the video card driver:

Sudo sh. / NVIDIA-Linux-x86-192.42-pkg1.run

In the pop-up window, you will be asked to accept a license. After clicking yes, the program will automatically install the driver. There is usually no problem at this stage. * it will reset the configuration file and click yes. When the driver installation is complete, you can use the following command to open the graphical interface:

Sudo / etc/init.d/gdm start

If everything is all right, the graphical interface will start normally. If it is not normal, re-install the driver under the command line, usually due to the version of the driver.

4. Install Toolkit and SDK on the command line, using the sudo sh * *. Run file.

When you're done, you can go to the SDK directory and test it with the sample code. You can compile using the make command.

The above is all the contents of the article "how to build the CUDA environment under Ubuntu9.04". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report