Objet : Developers list for StarPU
Archives de la liste
- From: Miguel Palhas <mpalhas@gmail.com>
- To: starpu-devel@lists.gforge.inria.fr
- Subject: [Starpu-devel] starpu_codelet must be global?
- Date: Tue, 30 Apr 2013 15:59:15 +0100
- 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>
I'm trying to mess around with the initial examples of starpu, and came across a strange error
--
Best Regards
The original sample declares a global variable, struct starpu_codelet cl. I tried to make this variable local to the main function, basically doing this:
// this is the old variable, commented out
// struct starpu_codelet cl;
int main() {
...
// and this is the new one
struct starpu_codelet cl;
cl.where = STARPU_CPU
cl.cpu_funcs[0] = cpu_func;
cl.cpu_funcs[1] = NULL;
cl.nbuffers = 0;
This version crashes with the following error:
[1] 26482 illegal hardware instruction ./a.out
but if i just switch the comments and use the global variable instead, it all goes well again.
I'm actually fine with this requirement, i just wanted to know if this is to be expected, and why?
Best Regards
Miguel Palhas
- [Starpu-devel] starpu_codelet must be global?, Miguel Palhas, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Samuel Thibault, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Miguel Palhas, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Samuel Thibault, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Miguel Palhas, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Samuel Thibault, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Miguel Palhas, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Samuel Thibault, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Miguel Palhas, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Nathalie Furmento, 30/04/2013
- Re: [Starpu-devel] starpu_codelet must be global?, Samuel Thibault, 30/04/2013
Archives gérées par MHonArc 2.6.19+.