How to getting start OpenCL on 16-core parallella board

Moderator: dar

How to getting start OpenCL on 16-core parallella board

Postby elysium5290 » Thu Apr 09, 2015 5:29 am

I have some trouble of building opencl environment ,can someone help me?

I list my all steps

step1
I follow this instruction
http://www.parallella.org/create-sdcard/

and I install Ubuntu 14.04 Parallella (Zynq7020) headless image
then I use ssh to connect my parallella board success

step2
I follow this website
https://github.com/parallella/parallell ... /para-para
and install some package
Code: Select all
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

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

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

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


step3
follow this website
https://github.com/browndeer/coprthr
Code: Select all
git clone https://github.com/browndeer/coprthr.git

./configure --enable-epiphany

make

sudo make install


step4
Code: Select all
cd /coprthr/examples/hello_opencl

gcc hello_opencl.c -o hello_opencl.x -I/usr/local/browndeer/include -I/home/parallella/coprthr/include/ -L/home/parallella/coprthr/src/libocl -locl
-L/usr/local/browndeer/lib -lcoprthr

./hello_opencl.x


and it will show
coprthr-1.6.1 (Freewill)


I don't know why
and I am not sure whether I need to install ephiphany SDK or not?

and I try to run hello_stdcl

http://imgur.com/tME8Bfz

it seems shutdown
elysium5290
 
Posts: 8
Joined: Sat Mar 28, 2015 7:12 am

Re: How to getting start OpenCL on 16-core parallella board

Postby nickoppen » Thu Apr 09, 2015 10:37 am

Hi,

Firstly, thank you for alerting me to the fact that there is a new version of the Brown Deer compiler available. I've been working on 1.6.0.

Second, you have gotten everything installed correctly. The "shutdown" refers to the end of the OpenCL process.

But, are you saying that the whole machine shuts down? After you see the shutdown you should return to the command prompt. Is that the case?

nick
Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

Re: How to getting start OpenCL on 16-core parallella board

Postby elysium5290 » Thu Apr 09, 2015 1:35 pm

hi, Nick

"shutdown" is means the message of putty , not the machine shutdown, machine is normally.

I think whether I have not installed the epiphany SDK , so my hello_opencl process can not communicate with coprocessor or not
elysium5290
 
Posts: 8
Joined: Sat Mar 28, 2015 7:12 am

Re: How to getting start OpenCL on 16-core parallella board

Postby nickoppen » Fri Apr 10, 2015 12:17 am

Everything looks fine to me.

The image comes with eSDK already installed and you have a correctly functioning OpenCL program.

You don't need to do anything more.
Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

Re: How to getting start OpenCL on 16-core parallella board

Postby elysium5290 » Fri Apr 10, 2015 9:18 am

Hi, Nick

I find this topic
viewtopic.php?f=13&t=2055&p=12182&hilit=getting+started+with+parallel+programming&sid=5b271488b8cd555880dcbc71eb4ebcd5#p12182

Andrew said that I don't need to install any package when I format the SD card by Headless image.
Then I can run the example.

what do you think about it ??

if you agree that , I will re-format my SD card ~~~~~

thank

Eric
elysium5290
 
Posts: 8
Joined: Sat Mar 28, 2015 7:12 am

Re: How to getting start OpenCL on 16-core parallella board

Postby nickoppen » Sun Apr 12, 2015 1:11 am

Yes, that is correct.

The headless image that is available on the Getting Started page has both the eSDK and OpenCL installed. The OpenCL is version 1.6.0 which is not the latest but it will work. This is the image that I am using at the moment.

nick
Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia


Return to OpenCL

Who is online

Users browsing this forum: MSN [Bot] and 1 guest