Λοιπον προσπα8ω να τρεξω οτιδηποτε σε cuda στον ΔΙΑΔΗ
Με μειλ ο Πιτσιανης μου ειπε οτι :
Στο /root θα βρεις το CUDA SDK 2.3 installer. Τρέξε το να σου φτιάξει ένα αντίγραφο στο
δικό σου χώρο.
Μετά χρησιμοποίησε make για να μεταφράσεις τα παραδείγματα. Αντέγραψε το makefile για το
δικό σου πρόγραμμα.--------------------------------------------------------------------------------------------------------------------------------------
Στο root βεβαια υπαρχουν τα εξης
addstudents
addstudents~
anaconda-ks.cfg
auto.home
boot.tgz
ca.crt
cuda
cuda-sdk-linux-2.10.1215.2015-3233425.run
cula_1.0-rhel47_64.run
Desktop
ganglia-3.1.2.tar.gz
id_rsa.pub
install.log
install.log.syslog
intel-developer-5.1-10.1.018.x86_64.disk1.iso
mlnx-ofed-5.1-1.3.1.7.x86_64.disk1.iso
mlnx-ofed-debug.out
MLNX_OFED_LINUX-1.3.1-rhel5.iso
mlton-20070826
move
mpistuds
nmap.out
NVIDIA_CUDA_SDK
NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run
NVIDIA_GPU_Computing_SDK
nvidia.ko
pk2009grads
pk2009students
RCS
showfiles.php?group_id=43021
temproot
ttt
και μεσα στους διαφορους φακελους αλλα τοσα πχ στον cuda υπαρχουν τα :
10 barbara_gold2.bmp
barbara_cuda1.bmp cuda-sdk-linux-2.10.1215.2015-3233425.run
barbara_cuda2.bmp cudatoolkit_2.1_linux64_rhel5.2.run
barbara_cuda_short.bmp NVIDIA-Linux-x86_64-180.22-pkg2.run
barbara_gold1.bmp
------------------------------------------------------------------------------------------------
Οι οδηγιες του νετ λενε αλλα πραγματα βεβαια
I. Quick Start Instructions
--------------------------------------------------------------------------------
For more detailed instructions, see section II below.
0. a. Install the NVIDIA Linux display driver by executing the file
NVIDIA-Linux-*-pkg1.run
(Note this is pkg2 for 64-bit linux.)
For information on installing NVIDIA Linux display drivers, please refer to
the NVIDIA Accelerated Linux Driver Set README and Installation Guide:
http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/README/index.html1. Install version 1.1 of the NVIDIA CUDA Toolkit by executing the file
NVIDIA_CUDA_Toolkit_1.1-*.run corresponding to your Linux distribution
Add the CUDA binaries and lib path to your PATH and LD_LIBRARY_PATH
environment variables.
2. Install the NVIDIA CUDA SDK by executing the file
NVIDIA_CUDA_SDK_1.1-*.run
The installer will prompt you to enter an installation path for the SDK or
accept the default. We will refer to the path you choose as
SDK_INSTALL_PATH.
3. Build the SDK project examples.
cd <SDK_INSTALL_PATH>
make
4. Run the examples:
cd <SDK_INSTALL_PATH>/bin/linux32/release
matrixmul
(or any of the other executables in that directory)
See the next section for more details on installing, building, and running
SDK samples.
-----------------------------------------------------------------------------------------------------
Μασωντας φυλλα δαφνης λοιπον και υποθετοντας οτι τα βηματα 0 και 1 παραπανω ειχαν γινει(συμφωνα με τις οδηγιες του δασκαλου) πηγα στο βημα 2...
Εκανα install το NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run στο home directory και αλλαξα το .bash_profile
ως εξης :
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/cuda/bin:~/NVIDIA_CUDA_SDK/bin
export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib:~/NVIDIA_CUDA_SDK/lib
export LD_LIBRARY_PATH
(to installattion φαινεται να γινε σωστα γιατι μου βγαλε τα αναμενομενα αποτελεσματα και κανενα σφαλμα επισης στο τελος ελεγε
========================================
Configuring SDK Makefile (/export/home/username/NVIDIA_CUDA_SDK/common/common.mk)...
========================================
* Please make sure your PATH includes /usr/local/cuda/bin
* Please make sure your LD_LIBRARY_PATH includes /usr/local/cuda/lib
* To uninstall the NVIDIA CUDA SDK, please delete /export/home/username/NVIDIA_CUDA_SDK
* Installation Complete
To επομενο βημα ειναι να κανω build... με την εντολη make μεσα στον φακελο που εγινε το installation(NVIDIA_CUDA_SDK) ομως βγαινουν σφαλματα για το cudart...
δλδ
make[1]: Entering directory `/export/home/username/NVIDIA_CUDA_SDK/common'
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 `/export/home/username/NVIDIA_CUDA_SDK/common'
make[1]: Entering directory `/export/home/username/NVIDIA_CUDA_SDK/common'
a - obj/release/paramgl.cpp_o
a - obj/release/param.cpp_o
make[1]: Leaving directory `/export/home/username/NVIDIA_CUDA_SDK/common'
make[1]: Entering directory `/export/home/username/NVIDIA_CUDA_SDK/common'
a - obj/release/rendercheck_gl.cpp_o
make[1]: Leaving directory `/export/home/username/NVIDIA_CUDA_SDK/common'
make -C projects/quasirandomGenerator/
make[1]: Entering directory `/export/home/username/NVIDIA_CUDA_SDK/projects/quasirandomGenerator'
/usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcudart.so when searching for -lcudart
/usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcudart.so when searching for -lcudart
/usr/bin/ld: cannot find -lcudart
collect2: ld returned 1 exit status
make[1]: *** [../../bin/linux/release/quasirandomGenerator] Error 1
make[1]: Leaving directory `/export/home/username/NVIDIA_CUDA_SDK/projects/quasirandomGenerator'
make: *** [projects/quasirandomGenerator/Makefile.ph_build] Error 2
Προφανως κατι εχει γινει λα8ος και υποψιαζομαι οτι φταιει το modification του .bash_profile(ειτε οτι δεν εγιναν ολα τα βηματα που λενε οι οδηγιες της Nvidia)αν το δοκιμασε κανεις και το κανε σωστα ας πει...
ΥΓ: Θα θελα ο αγιος Βασιλης να βοηθησει τους ανθρωπους να μην βαριουνται και να γραφουν κανα σοβαρο README που και που.... ετσι απλα βημα-βημα.... δεν ειναι τοσο τραγικο νομιζω (βλεπε cuda , nachOS etc)