无法制作cuda样本:Makefile:36:findcudalib.mk:没有这样的文件或目录(Can't make cuda sample: Makefile:36: findcudalib.mk: No such file or directory)

我的问题是我无法编译CUDA示例。 我相信我已经正确安装了CUDA 4.0(我需要旧版本的b / c我正在尝试运行GPGPU-Sim)。 我下载了一个NVIDIA cuda样本,即conjugateGradient。 如果我cd到它并运行

make

它不起作用:

macair93278:7_CUDALibraries r8t$ cd conjugateGradient/ macair93278:conjugateGradient r8t$ ls Makefile main.cpp macair93278:conjugateGradient r8t$ make Makefile:36: findcudalib.mk: No such file or directory make: *** No rule to make target `findcudalib.mk'. Stop.

我改变了路径,以便跑步

nvcc -V

不会产生错误,但给我的版本。 所以我认为这是正确的。 谢谢你的帮助。 -BB

My problem is that I cannot compile a CUDA example. I believe I've got CUDA 4.0 installed correctly ( I need the old version b/c I'm trying to run GPGPU-Sim). I downloaded an NVIDIA cuda sample, namely conjugateGradient. If I cd to it and run

make

it doesn't work:

macair93278:7_CUDALibraries r8t$ cd conjugateGradient/ macair93278:conjugateGradient r8t$ ls Makefile main.cpp macair93278:conjugateGradient r8t$ make Makefile:36: findcudalib.mk: No such file or directory make: *** No rule to make target `findcudalib.mk'. Stop.

I've changed my path so that running

nvcc -V

doesn't produce an error, but gives me the version. So I think that's right. Thanks for any help. -bb

最满意答案

findcudalib.mk缺失,因为您下载的单个样本并非设计为完整的独立样本。 它需要一个其他文件的框架,可能需要围绕它构建其他库。

要解决此问题,请从此处下载CUDA 4.0 SDK(GPU计算SDK)。

安装该包。 一旦安装完毕,并假设您的CUDA安装完好无损,您应该可以更改到顶层目录并发出make 。 这将构建所有样本。 为方便起见,您可能希望发出make -k 。

findcudalib.mk is missing because the individual sample you downloaded is not designed to be a complete, standalone sample. It requires a framework of other files and probably other libraries that need to be built around it.

To fix this, download the CUDA 4.0 SDK (GPU Computing SDK) from here.

Install that package. Once you have installed it, and assuming your CUDA install is otherwise intact, you should be able to change into the toplevel directory and issue make. This will build all the samples. For convenience, you may wish to issue make -k.

无法制作cuda样本:Makefile:36:findcudalib.mk:没有这样的文件或目录(Can't make cuda sample: Makefile:36: findcudalib.mk: No such file or directory)

我的问题是我无法编译CUDA示例。 我相信我已经正确安装了CUDA 4.0(我需要旧版本的b / c我正在尝试运行GPGPU-Sim)。 我下载了一个NVIDIA cuda样本,即conjugateGradient。 如果我cd到它并运行

make

它不起作用:

macair93278:7_CUDALibraries r8t$ cd conjugateGradient/ macair93278:conjugateGradient r8t$ ls Makefile main.cpp macair93278:conjugateGradient r8t$ make Makefile:36: findcudalib.mk: No such file or directory make: *** No rule to make target `findcudalib.mk'. Stop.

我改变了路径,以便跑步

nvcc -V

不会产生错误,但给我的版本。 所以我认为这是正确的。 谢谢你的帮助。 -BB

My problem is that I cannot compile a CUDA example. I believe I've got CUDA 4.0 installed correctly ( I need the old version b/c I'm trying to run GPGPU-Sim). I downloaded an NVIDIA cuda sample, namely conjugateGradient. If I cd to it and run

make

it doesn't work:

macair93278:7_CUDALibraries r8t$ cd conjugateGradient/ macair93278:conjugateGradient r8t$ ls Makefile main.cpp macair93278:conjugateGradient r8t$ make Makefile:36: findcudalib.mk: No such file or directory make: *** No rule to make target `findcudalib.mk'. Stop.

I've changed my path so that running

nvcc -V

doesn't produce an error, but gives me the version. So I think that's right. Thanks for any help. -bb

最满意答案

findcudalib.mk缺失,因为您下载的单个样本并非设计为完整的独立样本。 它需要一个其他文件的框架,可能需要围绕它构建其他库。

要解决此问题,请从此处下载CUDA 4.0 SDK(GPU计算SDK)。

安装该包。 一旦安装完毕,并假设您的CUDA安装完好无损,您应该可以更改到顶层目录并发出make 。 这将构建所有样本。 为方便起见,您可能希望发出make -k 。

findcudalib.mk is missing because the individual sample you downloaded is not designed to be a complete, standalone sample. It requires a framework of other files and probably other libraries that need to be built around it.

To fix this, download the CUDA 4.0 SDK (GPU Computing SDK) from here.

Install that package. Once you have installed it, and assuming your CUDA install is otherwise intact, you should be able to change into the toplevel directory and issue make. This will build all the samples. For convenience, you may wish to issue make -k.