Weird problem: Help on environment setup
2 posts
• Page 1 of 1
Weird problem: Help on environment setup
Hi,
I try to use CULA basic, but I can get enviroment setup down. Every time I compile my program :
$ gfortran cudaonly.f90 -o3 -i$cula_root/include -l$cula_root/lib64 -lcula -lcula_fortran -lcublas -lcudart -o nrfcuda
/usr/bin/ld: cannot find -l/lib64
collect2: ld returned 1 exit status
It reports that cannot find -l/lib64.
I have done everything about envrionment configuration in the CULAProgrammersGuide_1.1.pdf.
Below is my .bash_profile and ld.so.conf
$cat .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
export PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/cudaprof/bin:/usr/local/cula/lib64:/usr/local/cula/lib:/usr/local/cula/bin64:$LD_LIBRARY_PATH
export PATH=$PATH:/usr/local/cuda/bin
export PATH=$PATH:$HOME/cuda/bin/linux/release
export MANPATH=$MANPATH:/usr/local/cuda/man
export CUDA_INC_PATH=/usr/local/cuda/include
# CULA package environment setup
export CULA_ROOT="/usr/local/cula"
export CULA_INC_PATH="$CULA_ROOT/include"
export CULA_BIN_PATH_64="$CULA_ROOT/bin64"
export CULA_LIB_PATH_64="$CULA_ROOT/lib64"
export CULA_BIN_PATH_32="$CULA_ROOT/bin"
export CULA_LIB_PATH_32="$CULA_ROOT/lib"
export LD_LIBRARY_PATH=$CULA_LIB_PATH_64:$LD_LIBRARY_PATH
#for g95
export PATH=$PATH:/home/apps/g95/64/g95-install/bin
#for nag
export NAG_KUSARI_FILE=empower.mines.edu:
source /opt/intel/Compiler/11.1/073/bin/iccvars.sh intel64
source /opt/intel/Compiler/11.1/073/bin/iccvars.sh ia32
source /opt/intel/Compiler/11.1/073/bin/ifortvars.sh intel64
source /opt/intel/Compiler/11.1/073/bin/ifortvars.sh ia32
$ cat ld.so.conf
include ld.so.conf.d/*.conf
include /usr/local/cuda/lib
include /usr/local/cula/lib64
include /usr/local/cula/lib
I try to use CULA basic, but I can get enviroment setup down. Every time I compile my program :
$ gfortran cudaonly.f90 -o3 -i$cula_root/include -l$cula_root/lib64 -lcula -lcula_fortran -lcublas -lcudart -o nrfcuda
/usr/bin/ld: cannot find -l/lib64
collect2: ld returned 1 exit status
It reports that cannot find -l/lib64.
I have done everything about envrionment configuration in the CULAProgrammersGuide_1.1.pdf.
Below is my .bash_profile and ld.so.conf
$cat .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
export PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/cudaprof/bin:/usr/local/cula/lib64:/usr/local/cula/lib:/usr/local/cula/bin64:$LD_LIBRARY_PATH
export PATH=$PATH:/usr/local/cuda/bin
export PATH=$PATH:$HOME/cuda/bin/linux/release
export MANPATH=$MANPATH:/usr/local/cuda/man
export CUDA_INC_PATH=/usr/local/cuda/include
# CULA package environment setup
export CULA_ROOT="/usr/local/cula"
export CULA_INC_PATH="$CULA_ROOT/include"
export CULA_BIN_PATH_64="$CULA_ROOT/bin64"
export CULA_LIB_PATH_64="$CULA_ROOT/lib64"
export CULA_BIN_PATH_32="$CULA_ROOT/bin"
export CULA_LIB_PATH_32="$CULA_ROOT/lib"
export LD_LIBRARY_PATH=$CULA_LIB_PATH_64:$LD_LIBRARY_PATH
#for g95
export PATH=$PATH:/home/apps/g95/64/g95-install/bin
#for nag
export NAG_KUSARI_FILE=empower.mines.edu:
source /opt/intel/Compiler/11.1/073/bin/iccvars.sh intel64
source /opt/intel/Compiler/11.1/073/bin/iccvars.sh ia32
source /opt/intel/Compiler/11.1/073/bin/ifortvars.sh intel64
source /opt/intel/Compiler/11.1/073/bin/ifortvars.sh ia32
$ cat ld.so.conf
include ld.so.conf.d/*.conf
include /usr/local/cuda/lib
include /usr/local/cula/lib64
include /usr/local/cula/lib
- cding
- Posts: 15
- Joined: Tue Sep 14, 2010 8:25 pm
Re: Weird problem: Help on environment setup
The environment is case sensitive, so you should do $CULA_ROOT rather than $cula_root.
- john
- Administrator
- Posts: 587
- Joined: Thu Jul 23, 2009 2:31 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest