Hello Gopal

Gopal wrote on 2013-12-06:

> 1. The first thing I want to know the dependency of libpocl.so, i mean
> which file are being used to generate libpocl.so file?

The build rules with required files and libraries are listed in
lib/CL/Makefile.am 
The source files listed there you probably will not need to touch at
all, though.

> 2. Secondly, which file shall I need to modify/rewrite in order to
> detect a new hardware?

I assume here the new hardware you speak of is a
peripheral/co-processor, not just a new host processor type.

You need to write a driver for your hardware. This driver then detects
and handles any communication with your hardware. Look in
lib/CL/devices/, there are four drivers there currently. 'Basic' and
'pthreads' run on the host CPU, 'tce' and 'cellspu' run on external
processors. Of these two 'tce' is much more complete than the cellspu.

> 3. Apart from this, what else I need to consider in order to detect a
> new hardware device?

The macros that need to be modified when adding a new driver was cleaned
up since 0.8, so I suggest using the latest version of pocl from
github. Also, pocl 0.9 is just around the corner.

kalle 

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to