• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

NVIDIA CUDA Programme lassen sich nicht kompilieren

gma

Member
Hallo,

nachdem ich unter Ubuntu es nach sehr langem Kampf geschafft habe, CUDA Programme zum Laufen zu bekommen, möchte ich dies auch unter Suse 11.1 hinbekommen (weil unter Ubuntu andere Probleme aufgetreten sind).

CUDA SDK und Toolkit (2.3) ließen sich auch installieren, allerdings lassen sich die mitgelieferten Programme nicht kompilieren, das liegt wahrscheinlich am gcc, welches wahrscheinlich einfach zu neu ist.

Leider liegt die Installation unter Ubuntu schon lange zurück, die Linksammlung, die ich benötigte, um es zu installieren, existiert auch nicht mehr.

Gibt es eine Anleitung, die auch ohne Kenntnisse von C/C++ nachvollziehbar ist (ich kann mich gerade noch errinnern in einer Datei common.mk sehr viel verändert zu haben um Verweise auf die zu verwendenden Compiler zu berichtigen).?

Die Fehlermeldung:

Code:
make
make[1]: Entering directory `/home/username/NVIDIA_GPU_Computing_SDK/C/common'
In file included from src/bank_checker.cpp:15:
./../common/inc/bank_checker.h:34: warning: type qualifiers ignored on function return type
./../common/inc/bank_checker.h:220: warning: type qualifiers ignored on function return type
src/bank_checker.cpp:57: warning: type qualifiers ignored on function return type
src/bank_checker.cpp:259: warning: type qualifiers ignored on function return type
In file included from ./../common/inc/stopwatch.h:18,
                 from src/cutil.cpp:34:
./../common/inc/stopwatch_base.h:56: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_base.h:60: warning: type qualifiers ignored on function return type
In file included from ./../common/inc/stopwatch_base.h:72,
                 from ./../common/inc/stopwatch.h:18,
                 from src/cutil.cpp:34:
./../common/inc/stopwatch_base.inl:67: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_base.inl:78: warning: type qualifiers ignored on function return type
In file included from ./../common/inc/stopwatch.h:25,
                 from src/cutil.cpp:34:
./../common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type
In file included from src/cutil.cpp:34:
./../common/inc/stopwatch.h:35: warning: type qualifiers ignored on function return type
In file included from src/cutil.cpp:35:
./../common/inc/bank_checker.h:34: warning: type qualifiers ignored on function return type
./../common/inc/bank_checker.h:220: warning: type qualifiers ignored on function return type
In file included from ./../common/inc/stopwatch.h:18,
                 from src/stopwatch.cpp:17:
./../common/inc/stopwatch_base.h:56: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_base.h:60: warning: type qualifiers ignored on function return type
In file included from ./../common/inc/stopwatch_base.h:72,
                 from ./../common/inc/stopwatch.h:18,
                 from src/stopwatch.cpp:17:
./../common/inc/stopwatch_base.inl:67: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_base.inl:78: warning: type qualifiers ignored on function return type
In file included from ./../common/inc/stopwatch.h:25,
                 from src/stopwatch.cpp:17:
./../common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type
In file included from src/stopwatch.cpp:17:
./../common/inc/stopwatch.h:35: warning: type qualifiers ignored on function return type
src/stopwatch.cpp:71: warning: type qualifiers ignored on function return type
In file included from src/stopwatch_linux.cpp:15:
./../common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type
./../common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type
a - obj/release/bank_checker.cpp.o
a - obj/release/cmd_arg_reader.cpp.o
a - obj/release/cutil.cpp.o
a - obj/release/stopwatch.cpp.o
a - obj/release/stopwatch_linux.cpp.o
a - obj/release/multithreading.cpp.o
make[1]: Leaving directory `/home/username/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: Entering directory `/home/username/NVIDIA_GPU_Computing_SDK/C/common'
In file included from ./../common/inc/paramgl.h:24,
                 from src/paramgl.cpp:19:
./../common/inc/GL/glut.h:60:20: error: GL/glu.h: No such file or directory
make[1]: *** [obj/release/paramgl.cpp.o] Error 1
make[1]: Leaving directory `/home/username/NVIDIA_GPU_Computing_SDK/C/common'
make: *** [lib/libparamgl.so] Error 2
 

oc2pus

Ultimate Guru
/../common/inc/GL/glut.h:60:20: error: GL/glu.h: No such file or directory

==>
http://packages.opensuse-community.org/

dort GL/glu.h eingeben
==> diese Datei steckt in Mesa-devel (7.6)

==> dieses Paket installieren und erneut compilieren :)
 
Oben