Page 1 of 1

COPRTHR2 or 1.6

PostPosted: Thu Aug 10, 2017 9:31 pm
by claudio4parallella
Hi, please, I would like to have a little help.
If I have well tested my UBUNTU Img 2016.11.1-hdmi-z7010, while I'm assuming that in /usr/local/browndeer is installed only coprthr 1.6.
In ~/.bashrc is already in the PATH
export PATH=/usr/local/browndeer/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/browndeer/lib:/usr/local/lib:$LD_LIBRARY_PATH

I'd like to test COPRTHR2 from BrowndeerTechnology.

In a POST is explained that to install COPRTHR2, is necessary the following procedure:

Code: Select all
###Libelf prerequisite
wget www.mr511.de/software/libelf-0.8.13.tar.gz
tar -zxvf libelf-0.8.13.tar.gz
cd libelf-0.8.13
./configure
sudo make install
cd ../


###Libevent prerequisite
wget github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz
tar -zxvf libevent-2.0.18-stable.tar.gz
cd libevent-2.0.18-stable
./configure
sudo make install
cd ../


###Libconfig prerequisite
wget www.hyperrealm.com/libconfig/libconfig-1.4.8.tar.gz
tar -zxvf libconfig-1.4.8.tar.gz
cd libconfig-1.4.8
./configure

sudo make install
cd ../


###Install parallella opencl package
wget http://www.browndeertechnology.com/code/coprthr-1.6.0-parallella.tgz
tar -zxvf coprthr-1.6.0-parallella.tgz
sudo ./browndeer/scripts/install_coprthr_parallella.sh


### Add paths to .bashrc
echo 'export PATH=/usr/local/browndeer/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/browndeer/lib:/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.bashrc


### Add paths to root .bashrc
sudo su
echo 'export PATH=/usr/local/browndeer/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/browndeer/lib:/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.bashrc

git clone https://github.com/browndeer/coprthr.git
cd coprthr/
./configure --enable-epiphany
make
sudo make install


wget http://www.browndeertechnology.com/code/bdt_anthem-20160518.tgz
tar -zxvf bdt_anthem-20160518.tgz
sudo mkdir /usr/local/browndeer/coprthr2
sudo bash ./run_installer_bdt_anthem-20160518.sh


wget http://www.browndeertechnology.com/code/bdt-libcoprthr_mpi-preview.tgz
tar -zxvf bdt-libcoprthr_mpi-preview.tgz
cd libcoprthr_mpi/
sudo ./install.sh

echo 'export PATH=/usr/local/browndeer/coprthr2/bin:$PATH' > ~/.bashrc

sudo shutdown -r now

sudo apt-get update
sudo apt-get upgrade

wget http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.1.tar.gz
tar -zxvf openmpi-1.8.1.tar.gz
cd openmpi-1.8.1
./configure --prefix=/usr/local \
            --enable-mpirun-prefix-by-default \
            --enable-static
make all
sudo make install

wget http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz
tar zxvf mpich-3.2.tar.gz
cd mpich-3.2
./configure --prefix=/usr
make
sudo make install


Well, 3 questions, please:

1. in order to work with OpenCL, COPRTHR2 is not to be installed, isn't it?

2. In order to install COPRTHR2 the right procedure is that I reported above? In case yes, wget www.hyperrealm.com/libconfig/libconfig-1.4.8.tar.gz doen't exist any more.

3. MPICH2 , COPRTHR2 are to be installed to update the Ubuntu Image that Adapteva is providing?

Thanks for your help in order to have the last updated software on my Parallella ready to my new paralle applications.

Thanks a lot in advance, my best regards
Claudio

Re: COPRTHR2 or 1.6

PostPosted: Fri Aug 11, 2017 2:54 am
by jar
COPRTHR 2 doesn't support OpenCL anymore. If you want to use COPRTHR 2, the 2015.1 image is presently required. COPRTHR 2 comes pre-built. After installing, you'll find it in /usr/local/browndeer/coprthr2

I am not sure if/when BDT will release COPRTHR 2 for the 2016.11 image.

Re: COPRTHR2 or 1.6

PostPosted: Fri Aug 11, 2017 5:16 am
by claudio4parallella
thank you very much, jar, very glad to have your help and clarifications.
My best from It!