Changes between Version 16 and Version 17 of OsgVpbBuildEnvLinux


Ignore:
Timestamp:
Sep 24, 2011, 8:19:07 PM (13 years ago)
Author:
Torben Dannhauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OsgVpbBuildEnvLinux

    v16 v17  
    4242/dev/sda2                               /mnt/disk1      auto    defaults        0       0
    4343}}}
    44 lookup the devicename in /dev/mapper after the last dmraid command
     44lookup the device name in /dev/mapper after the last dmraid command
    4545
    4646
    4747=== CUDA installation ===
    4848
    49 http://hdfpga.blogspot.com/2011/05/install-cuda-40-on-ubuntu-1104.html
    50 
    51 === [Optional] Using Synergy to control the whole cluster with only one keyboard and mouse ===
    52  * Install synergy
    53 {{{
    54 #!sh
    55 aptitude install synergy quicksynergy
    56 }}}
    57 
    58 howto: http://www.mattcutts.com/blog/how-to-configure-synergy-in-six-steps/
    59 
     49Basically according to http://hdfpga.blogspot.com/2011/05/install-cuda-40-on-ubuntu-1104.html
     50
     51In Short:
     52 * Stop X-Server with
     53{{{
     54/etc/init.d/kdm stop
     55}}}
     56 * Uninstall the auto Nvidia driver provided by Kubuntu.
     57 * Download and install the newest Driver provided by Nvidia on its webpage.
     58 * Start X-Server with
     59{{{
     60/etc/init.d/kdm start
     61}}}
     62 * Define GCC 4..4 as standart compiler for non-root:
     63{{{
     64cd ~
     65mkdir gcc44
     66cd gcc4
     67ln -s /usr/bin/cpp-4.4 cpp
     68ln -s /usr/bin/gcc-4.4 gcc
     69ln -s /usr/bin/g++-4.4 g++
     70}}}
     71 * Download and install CUDA:
     72  * Download the following files and install them as root
     73{{{
     74CUDA Toolkit for Ubuntu Linux 10.10 (sudo sh ...) : cudatoolkit_4.0.17_linux_64_ubuntu10.10.run
     75CUDA Tools SDK (sudo sh ...) : cudatools_4.0.17_linux_64.run
     76}}}
     77  * Download the following file and install it as non-root
     78{{{
     79GPU Computing SDK code samples (no sudo) : gpucomputingsdk_4.0.17_linux.run
     80}}}
     81 * Announce CUDA to your build environment:
     82  * Edit /usr/local/cuda/bin/nvcc.profile to look in the gcc44 directory (append the full path):
     83{{{
     84compiler-bindir =/home/your-non-root-user/gcc44
     85}}}
     86  * Append in  /root/.bashrc and /home/your-non-root-user/.bashrc
     87{{{
     88export CUDA_HOME="/usr/local/cuda"
     89export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CUDA_HOME}/lib64"
     90export PATH=${CUDA_HOME}/bin:${PATH}
     91}}}
     92  * Take changes in effect:
     93{{{
     94sudo source /root/.bashrc
     95sudo source /home/your-non-root-user/.bashrc
     96sudo ldconfig
     97}}}
     98 * Build GPU Computing SDK to check build CUDA client and sample programs
     99  * run make in NVIDIA_GPU_Computing_SDK/C
     100{{{
     101cd ~/NVIDIA_GPU_Computing_SDK/C
     102make
     103}}}
     104  * Verify CUDA 4.0 installation by running the deviceQuery sample in the NVIDIA_GPU_Computing_SDK/C
     105{{{
     106bin/linux/release/deviceQuery
     107}}}
     108 * Download and install Nvidia Texture Tools 2 (NVTT) from svn ( stablerelease 2.0.8.1 won't work with CUDA 4.0) as non-root:
     109{{{
     110cd ~
     111svn checkout http://nvidia-texture-tools.googlecode.com/svn/branches/2.0/ nvidia-texture-tools-read-only
     112cd nvidia-texture-tools-read-only
     113# Use CMake instead of ./configure to ensure CMake looks for cuda/lib64 instead of cuda/lib.
     114make
     115sudo make install
     116}}}
    60117
    61118== Compile and install OSG and its dependencies ==
    62119
    63120 * Install osg-dependencies and osg like http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies
    64 Use this updated list which is adapted for kubuntu 9.10:
     121Use this updated list which is adapted for kubuntu 10.04:
    65122{{{
    66123#!sh