Re: OpenCL inquire

2009-06-23 Thread Phil Pratt-Szeliga
The following emails have been transfered between Soufiane and I.
Paolo Bonzini asked that I cc the
emails to the list.

=
Hi Soufiane,

I am working on OpenCL for google summer of code.  I just emailled my
mentor asking about what the rules of collaboration are while I am
being paid under gsoc.  (It is a little fuzzy on the website: Q: Can a
group apply for and work on a single proposal? A: No, only an
individual may work on a given project. Of course, students should
feel free to collaborate with others to accomplish their project
goals.)

You can certainly do work on your own and I would love to work with you.
I will let you know what my mentor says.

Sincerely,
Phil
=
Hello Phil,

I am happy to work with you, just tell me which parser do you use?
do you convert your parsed OpenCL grammar to ATI IL or Stream?
can i start from where you are or should i do all the work from scratch!

Soufiane


Hi Soufiane,

My gsoc project is not making an OpenCL C compiler, but instead the
supporting infrastructure.  I have made rough draft functions that
support clCreateContext, clCreateCommandQueue, clCreateMemoryObject,
clCreateProgramWithBinaries, clCreateKernel, clEnqueueNDRangeKernel
and clEnqueueBufferRead.  Without an OpenCL C compiler, I get use
clCreateProgramWithBinaries to load compiled code into the runtime. So
far this works to load dynamic link libraries on the cpu (without
knowing the number of kernel arguments at compile time).  I am making
a structure where there are various drivers for all the different
devices and I am focusing on CPU and Cell.  So if you wanted to make a
device driver to load and execute the ATI binaries, that would be a
big help (as long as it is okay with google).

We use git for this project.  There is barely any documentation right
now as I am developing things still (and things can change a little if
you need info for the driver).  The code is in github:
http://github.com/pcpratts/gcc_opencl/tree/master

The code I was talking about is in cl/devices/cpu/generic/driver.c

To run the code you will need the dependencies in the NOTES file.
Also you will need to put the output of
# lshw -xml > lshw_output.xml

in the root folder of the project.

Phil


Compiling gcc 4.4.0 for Cell

2009-06-28 Thread Phil Pratt-Szeliga
Hello gcc list,

I am trying to compile gcc 4.4.0 for the Cell processor for my google
summer of code project (GCC's OpenCL implementation starting point).

I have used OpenMP for some things and now I am trying to compile
everything on the Cell.  OpenMP is supported in the ppu-gcc 4.1.0 so
I am trying to upgrade my PS3 to gcc 4.4.0.

I did
#ppu-gcc -v
and that got me how gcc was configured for the cell.

So I pasted most of it into the shell:

[r...@ps3 gcc-4.4.0]# ./configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-as=/usr/bin/ppu-as --with-ld=/usr/bin/ppu-ld --enable-threads
--with-system-zlib --disable-checking --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,fortran,ada
--disable-nls --enable-clocale=gnu
--enable-version-specific-runtime-libs --with-long-double-128
--program-prefix=ppu- --disable-bootstrap --host=ppu
--build=powerpc64-unknown-linux-gnu --target=ppu
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... Invalid configuration `ppu': machine
`ppu' not recognized
configure: error: /bin/sh ./config.sub ppu failed
[r...@ps3 gcc-4.4.0]#

Anyone have any tips to get this compiled?

Thanks.

Sincererly,
Phil Pratt-Szeliga


Region array SSA

2012-03-21 Thread Phil Pratt-Szeliga
Hello,

I am a PhD student studying compilers. I am wondering, is there any
representation of array regions in the gcc/g++ IR? (Like in this
paper: http://dl.acm.org/citation.cfm?id=1152165).

I am having quite a hard time understanding how to build this IR from
the paper. Does anyone on this list have experience with this IR or
any array SSA form? I want to use this in my research, so I would be
interested in paying a small consulting fee if someone was able to
give me real advice/algorithms/help on constructing an array SSA form
like the one in the paper.

Thanks for any help,
Phil Pratt-Szeliga
Syracuse University