Accéder au contenu.
Menu Sympa

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

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] StarPU OpenCL on Mac


Chronologique Discussions 
  • From: Usman Dastgeer <usman.dastgeer@liu.se>
  • To: Nathalie Furmento <nathalie.furmento@labri.fr>
  • Subject: Re: [Starpu-devel] StarPU OpenCL on Mac
  • Date: Tue, 26 Jul 2011 17:29:50 +0200
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • 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>
  • Resent-date: Tue, 26 Jul 2011 18:22:21 +0200
  • Resent-from: Nathalie Furmento <nathalie.furmento@labri.fr>
  • Resent-message-id: <20110726162221.GA3544@labri.fr>
  • Resent-to: starpu-devel@lists.gforge.inria.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


Attachment: Makefile
Description: Makefile




Archives gérées par MHonArc 2.6.19+.

Haut de le page