cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

paolom
Journeyman III

Ubuntu 11.04 Open CL Problems

OpenCL problems

Hi all,

I have installed AMD 2.5 SDK but I'm not able to get it working....

It's seem that enviromental variables are messed up...

Sadly I have installed the package twice so I don't know if the bug

of errors in /etc/prfile/ affects me or is another problem

 


my /etc/profile

if [ "$PS1" ]; then if [ "$BASH" ]; then PS1='\u@\h:\w\$ ' if [ -f /etc/bash.bashrc ]; then . /etc/bash.bashrc fi else if [ "`id -u`" -eq 0 ]; then PS1='# ' else PS1='$ ' fi fi fi umask 022 AMDAPPSDKROOT="/opt/AMDAPP" LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86_64":"/opt/AMDAPP/lib/x86" export AMDAPPSDKROOT export LD_LIBRARY_PATH


 

 

my .bashrc

...a lot of stuff ...

export LD_LIBRARY_PATH=/opt/AMDAPP/lib/x86_64/
export LIBRARY_PATH=/opt/AMDAPP/lib/x86_64/
export C_INCLUDE_PATH=/opt/AMDAPP/include/

 

0 Likes
2 Replies
paolom
Journeyman III

A solution:

 

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

umask 022

 

0 Likes

Backup copies are also  in

 

/usr/share/base-files/

0 Likes