This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53672] gcc/branches/cilkplus does not like C++ spawn (when optimized)
- From: "jjhforrest at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Jun 2012 06:57:43 +0000
- Subject: [Bug c++/53672] gcc/branches/cilkplus does not like C++ spawn (when optimized)
- Auto-submitted: auto-generated
- References: <bug-53672-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53672
--- Comment #3 from John Forrest <jjhforrest at gmail dot com> 2012-06-15 06:57:43 UTC ---
Balaji,
Attached - AbcMatrix.ii gives segfault using "compile"
There are more than a dozen places in my code where code such as -
> for (int i=0;i<numberBlocks-1;i++)
> which[i]=cilk_spawn pivotColumnDantzig(i,useRowCopy,updates,spare,best[i]);
> which[numberBlocks-1]=pivotColumnDantzig(numberBlocks-1,useRowCopy,updates,
> spare,best[numberBlocks-1]);
> cilk_sync;
>
inside a class such as AbcMatrix segfaults on compilation. If I
create a non class static function doWork(AbcMatrix * matrix, other
stuff) and in that function do
which[i]=cilk_spawn(matrix,other stuff)
it works. There is not much of an overhead but is ugly and time consuming.
Hope you can reproduce fault.
Regards,
John
On 14/06/12 17:56, bviyer at gmail dot com wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53672
>
> Balaji V. Iyer<bviyer at gmail dot com> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |bviyer at gmail dot com
>
> --- Comment #1 from Balaji V. Iyer<bviyer at gmail dot com> 2012-06-14 16:56:19 UTC ---
> Hello John,
> This problem seem to be fixed as of this commit:
>
> git:0ac59c91905a106865589114d4e55f0c7f256874
> svn: revision:188147
>
> I tried your code and mine passes fine.
>
> Thanks,
>
> Balaji V. Iyer.
>