Page 1 of 1

Weird problem: Help on environment setup

PostPosted: Tue Sep 14, 2010 8:34 pm
by cding

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
$cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc

# User specific environment and startup programs


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"

#for g95
export PATH=$PATH:/home/apps/g95/64/g95-install/bin

#for nag

source /opt/intel/Compiler/11.1/073/bin/ intel64
source /opt/intel/Compiler/11.1/073/bin/ ia32
source /opt/intel/Compiler/11.1/073/bin/ intel64
source /opt/intel/Compiler/11.1/073/bin/ ia32

$ cat
include /usr/local/cuda/lib
include /usr/local/cula/lib64
include /usr/local/cula/lib

Re: Weird problem: Help on environment setup

PostPosted: Wed Sep 15, 2010 10:18 am
by john
The environment is case sensitive, so you should do $CULA_ROOT rather than $cula_root.