Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] StarPU does not accept too long opencl kernel sources

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] StarPU does not accept too long opencl kernel sources


Chronologique Discussions 
  • From: Nathalie Furmento <nathalie.furmento@labri.fr>
  • To: "helluy@math.unistra.fr" <helluy@math.unistra.fr>, starpu-devel@lists.gforge.inria.fr
  • Cc: Malcolm Roberts <squidgyhead@gmail.com>
  • Subject: Re: [Starpu-devel] StarPU does not accept too long opencl kernel sources
  • Date: Tue, 8 Dec 2015 16:08:56 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=nathalie.furmento@labri.fr; spf=Pass smtp.mailfrom=nathalie.furmento@labri.fr; spf=Pass smtp.helo=postmaster@iona.labri.fr
  • Ironport-phdr: 9a23:fBLVuRL1Q2Lb7oyLCdmcpTZWNBhigK39O0sv0rFitYgVKvXxwZ3uMQTl6Ol3ixeRBMOAu6wC07KempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRMiK14ye7KObxd76W01wnj2zYLd/fl2djD76kY0ou7ZkMbs70RDTo3FFKKx8zGJsIk+PzV6nvp/jtM0rzyMF8fIs88pdQI3/drg4C6FeDS86KWlz6teh/U3DQA+L+2o0V2wKklxVBQne8AvzGJnr5G+yrfZ0wjGHeMH7U70wcTCj9LtwDhDmjz0IOng49nvWg4p+lvF1uhWk8jp2347dZICYfNRjZKbQe88dDT5HV9pRXihAD8WycpEKAuwdOs5cpoPnph0At03tVkGXGOrzx2oQ1TfN1qog3rF5HA==
  • 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>

Hello,

Thanks for reporting the bug. The bottom layer is indeed doing a malloc to store the contents of the OpenCL kernel. I wil fix the code ASAP.

Cheers,

Nathalie

On 08/12/2015 15:57, helluy@math.unistra.fr wrote:
Hello,

StarPU does not accept too long kernel sources.

I have made a simple modification for my purposes:

---------------------------------------------------------------

Index: src/drivers/opencl/driver_opencl_utils.c
===================================================================
--- src/drivers/opencl/driver_opencl_utils.c (révision 16654)
+++ src/drivers/opencl/driver_opencl_utils.c (copie de travail)
@@ -364,7 +364,7 @@
char located_file_name[1024];
char located_dir_name[1024];
char new_build_options[1024];
- char opencl_program_source[16384];
+ char opencl_program_source[131072];

// Do not try to load and compile the file if there is no devices
nb_devices = starpu_opencl_worker_get_count();


-----------------------------------------------------------------------

But I think that it would be better to implement a more general solution with a malloc.


Best regards

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





Archives gérées par MHonArc 2.6.19+.

Haut de le page