Re: Any libraries for vector mask and vector population count?
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Thu, 10 Apr 2008 11:44:53 -0800
James Van Buskirk wrote:
(snip)
Oh yeah, the code that kills gfortran is like this:
integer(C_INT8_T), parameter :: IBITC(0:65535) = [( &(snip)
ibits(i,0,1)+ibits(i,1,1)+ibits(i,2,1)+ibits(i,3,1)+ &
ibits(i,4,1)+ibits(i,5,1)+ibits(i,6,1)+ibits(i,7,1)+ &
ibits(i,8,1)+ibits(i,9,1)+ibits(i,10,1)+ibits(i,11,1)+ &
ibits(i,12,1)+ibits(i,13,1)+ibits(i,14,1)+ibits(i,15,1), &
i=0,65535)]
gcc version 4.4.0 20080404 (experimental) (GCC)
C:\gfortran\clf\popcnt>C:\gcc_equation\bin\x86_64-pc-mingw32-gfortran -c popcnt1
6.f90
popcnt16.f90: In function 'popcnt16':
popcnt16.f90:20: internal compiler error: in gfc_conv_array_initializer, at fort
Maybe a stack overflow trying to store the whole thing.
How about as a DATA statement instead of PARAMETER?
This reminds me of limits on the size of static arrays with a
C compiler on the Alpha. (Probably the DEC compiler, though it
might have been gcc.)
-- glen
.
- References:
- Any libraries for vector mask and vector population count?
- From: Dan
- Re: Any libraries for vector mask and vector population count?
- From: Dan Nagle
- Re: Any libraries for vector mask and vector population count?
- From: *** Hendrickson
- Re: Any libraries for vector mask and vector population count?
- From: glen herrmannsfeldt
- Re: Any libraries for vector mask and vector population count?
- From: Terence
- Re: Any libraries for vector mask and vector population count?
- From: James Van Buskirk
- Re: Any libraries for vector mask and vector population count?
- From: James Van Buskirk
- Any libraries for vector mask and vector population count?
- Prev by Date: Re: Any libraries for vector mask and vector population count?
- Next by Date: Re: please try this program (generic resolution)
- Previous by thread: Re: Any libraries for vector mask and vector population count?
- Next by thread: Re: Any libraries for vector mask and vector population count?
- Index(es):