Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] Fwd: Re: StarPU OpenCL on Mac

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] Fwd: Re: StarPU OpenCL on Mac


Chronologique Discussions 
  • From: Nathalie Furmento <nathalie.furmento@labri.fr>
  • To: "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>, Usman Dastgeer <usman.dastgeer@liu.se>
  • Subject: Re: [Starpu-devel] Fwd: Re: StarPU OpenCL on Mac
  • Date: Wed, 27 Jul 2011 11:15:08 +0200
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Usman,

You also need to make sure you have

#define STARPU_USE_OPENCL 1

in the file build/include/starpu_config.h

You can also add some #warning in the file include/starpu_opencl.h to make sure the opencl api is defined.

Cheers,

Nathalie

On 26/07/2011 18:34, Nathalie Furmento wrote:
4E2EECA2.1090100@labri.fr"> (Just Forwarding to the list.)
(Usman, you should always replied to the list, it is easier to keep a track on current issues, and potentially more persons can help with the problem)

-------- Original Message -------- Subject: Re: [Starpu-devel] StarPU OpenCL on Mac Date: Tue, 26 Jul 2011 17:29:50 +0200 From: Usman Dastgeer <usman.dastgeer@liu.se> To: Nathalie Furmento <nathalie.furmento@labri.fr>

Thanks Nathalie!

I knew about this -framework OpenCL in Mac as I used it with other applications. The problem is when using it with StarPU. What I understood from your response is that configure does not need to detect OpenCL. This means that I need to change the makefile (or possibly some other location?) to allow StarPU to compile its OpenCL drivers etc.

I did that to some extent but still starpu_opencl code is not compiled and thus ngives following compiler errors:

../include_starpu/skepu/map.h:167: error: field ‘opencl_codelet’ has incomplete type
../include_starpu/skepu/map.h:167: error:   in instantiation of template ‘skepu::Map<MapFunc, T, c_type, cont_type>’
../include_starpu/skepu/map.h:316: error: field ‘opencl_codelet’ has incomplete type
../include_starpu/skepu/map.h:316: error:   in instantiation of template ‘skepu::Map<MapFunc, T, BINARY, SKEPU_VECTOR>’
../include_starpu/skepu/map.h:474: error: field ‘opencl_codelet’ has incomplete type
../include_starpu/skepu/map.h:474: error:   in instantiation of template ‘skepu::Map<MapFunc, T, TERNARY, SKEPU_VECTOR>’
../include_starpu/skepu/map.h:640: error: field ‘opencl_codelet’ has incomplete type
../include_starpu/skepu/map.h:640: error:   in instantiation of template ‘skepu::Map<MapFunc, T, BINARY, MATRIX>’
....
../include_starpu/skepu/src/map_cl.inl:93: error: ‘starpu_opencl_load_opencl_from_string’ was not declared in this scope
...

I have attached the Makefile with small modification to enable OpenCL (e.g. setting STARPU_USE_OPENCL = yes). I rebuilt the StarPU using the attached Makefile but still I am not getting OpenCL working and having the above errors. 

PS: I have used -framework OpenCL option when compiling the code.

--
Usman.



On Jul 25, 2011, at 3:07 PM, Nathalie Furmento wrote:

Usman,

Could you have a look at George's email below and see if that helps ?

Cheers,

Nathalie

On 25/07/2011 10:37, George Russell wrote:
Hi,

I believe that the OSX GCC differs in librarys etc

There is the need to compile with gcc -framework OpenCL 

That gets gcc to look in the appropriate locations for libraries and headers

FWIW, all OSX 10.6 have OpenCL, and none before that version, - so, the configure should not have to find it directly itself.

Cheers,
George

On 22/07/2011 16:30, Nathalie Furmento wrote:
Dear Usman,

On Apple systems, StarPU tries to include OpenCL/cl.h. This may need to be fixed, as on your system this file does not seem to be available.

Could you please send us the config.log file to get more information on what is detected or not by the configure ?

Thanks.

Regards,

Nathalie

On 22/07/2011 09:37, Usman Dastgeer wrote:
Hello,

When using on Mac, how could I specify OpenCL directory? In manual, it says that is should be with directory include/OpenCL/cl.h on Mac OS.

First, when using Mac OpenCL implementation we normally do like #include <OpenCL/opencl.h>. Secondly, I could not find this include directory (include/OpenCL/cl.h). My search gives me following results:

sudo find /System /Developer/ /Applications/ /bin /etc/ -name opencl.h
/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/opencl.h
/Developer//GPU Computing/OpenCL/common/inc/CL/opencl.h
/Developer//SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/opencl.h

sudo find /System /Developer/ /Applications/ /bin /etc/ -name cl.h
/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/cl.h
/Developer//GPU Computing/OpenCL/common/inc/CL/cl.h
/Developer//SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/cl.h

I tried specifying ./configure --with-opencl-dir=/Developer/GPU\ Computing/OpenCL/common/ but it didn't recognize OpenCL.


Any idea?
_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/starpu-devel

_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/starpu-devel

_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/starpu-devel



_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/starpu-devel




Archives gérées par MHonArc 2.6.19+.

Haut de le page