gpt4 book ai didi

cuda - 安装 Cuda NVIDIA 图形驱动程序失败

转载 作者:行者123 更新时间:2023-12-04 15:35:33 31 4
gpt4 key购买 nike

关闭。这个问题是off-topic .它目前不接受答案。












想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。

9年前关闭。




Improve this question




我有两台笔记本电脑:索尼 vaio z 系列 (vocz1) 和 S 系列。第一个是带有 cuda 模型 GT330M 的 Geforce,第二个是 GT 640M LE。
当我尝试从此站点安装 CUDA Geforce 驱动程序时 http://developer.nvidia.com/cuda/cuda-downloads我在 Windows 中收到以下错误。我想知道你会建议我解决这个问题的解决方案吗?
我所有的显卡都已经安装好了,

Nvidia 安装程序无法继续
此显卡找不到兼容的图形硬件。

我是 CUDA 编程的初学者,我想知道我可以在不安装 Nividia 驱动程序的情况下编译和运行我的 CUDA 程序吗? Cuda 工具包和 SDK 成功安装在我的机器上,但是当我运行我的程序时,我无法设置我的 Cuda 设备。
这是否意味着我需要安装 Nividia 驱动程序? enter image description here

cudaError_t cudaStatus1;
int deviceCount;
cudaGetDeviceCount(&deviceCount);
int device;
for (device = 0; device < 10; ++device) {
cudaDeviceProp deviceProp;

cudaGetDeviceProperties(&deviceProp, device);
// Choose which GPU to run on, change this on a multi-GPU system.
cudaStatus1 = cudaSetDevice(device);
printf("Device %d has compute capability %d.%d. - %d\n",
device, deviceProp.major, deviceProp.minor,cudaStatus1 );
}

输出:
Device 0 has compute capability 3137268.3137268. -  35
Device 1 has compute capability 3137268.3137268. - 35
Device 2 has compute capability 3137268.3137268. - 35
Device 3 has compute capability 3137268.3137268. - 35
Device 4 has compute capability 3137268.3137268. - 35
Device 5 has compute capability 3137268.3137268. - 35
Device 6 has compute capability 3137268.3137268. - 35
Device 7 has compute capability 3137268.3137268. - 35
Device 8 has compute capability 3137268.3137268. - 35
Device 9 has compute capability 3137268.3137268. - 35

35 means it is not set the device , if it became 0 means device set.



在我收到以下信息运行 deviceQuery 后:

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\xx>"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\C\ bin\win64\Release\deviceQuery.exe" [deviceQuery.exe] starting... C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\C\bin\win64\Relea se\deviceQuery.exe Starting... CUDA Device Query (Runtime API) version (CUDART static linking) Found 1 CUDA Capable device(s) Device 0: "GeForce GT 640M LE" CUDA Driver Version / Runtime Version 4.2 / 4.2 CUDA Capability Major/Minor version number: 3.0 Total amount of global memory:
1024 MBytes (1073741824 bytes) ( 2) Multiprocessors x (192) CUDA Cores/MP: 384 CUDA Cores GPU Clock rate:
405 MHz (0.41 GHz) Memory Clock rate:
900 Mhz Memory Bus Width: 128-bit L2 Cache Size: 262144 bytes Max Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536,65536), 3 D=(4096,4096,4096) Max Layered Texture Size (dim) x layers
1D=(16384) x 2048, 2D=(16384,16 384) x 2048 Total amount of constant memory: 65536 bytes Total amount of shared memory per block: 49152 bytes Total number of registers available per block: 65536 Warp size: 32
Maximum number of threads per multiprocessor: 2048 Maximum number of threads per block: 1024 Maximum sizes of each dimension of a block: 1024 x 1024 x 64 Maximum sizes of each dimension of a grid: 2147483647 x 65535 x 65535 Maximum memory pitch:
2147483647 bytes Texture alignment: 512 bytes Concurrent copy and execution: Yes with 1 copy engine(s) Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No Support host page-locked memory mapping: Yes Concurrent kernel execution:
Yes Alignment requirement for Surfaces: Yes Device has ECC support enabled: No Device is using TCC driver mode: No Device supports Unified Addressing (UVA):
No Device PCI Bus ID / PCI location ID: 1 / 0 Compute Mode: < Default (multiple host threads can use ::cudaSetDevice() with device simu ltaneously) > deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 4.2, CUDA Runtime Versi on = 4.2, NumDevs = 1, Device = GeForce GT 640M LE [deviceQuery.exe] test results... PASSED

exiting in 3 seconds: 3...2...1...done!

最佳答案

I want to know can I compile and run my CUDA program with out installing Nividia Driver? Cuda toolkit and SDK installed successfully in my machine but whenI run my program I cannot set my Cuda device. Does it mean I need to install Nividia Driver?



您肯定需要驱动程序来运行该程序。您是否尝试过运行随二进制文件提供的 deviceQuery.exe。这应该为您提供一个很好的起点,了解出了什么问题。

关于cuda - 安装 Cuda NVIDIA 图形驱动程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11913320/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com