Re: PFGW HELP!!!!
- There are pre-built GMP dll's which do not use the alloca. These can
be found in the files sections of primeform. There are alloca
versions for different CPU's and non-alloca versions also for various
CPU's. The reason that alloca was chosen, is that it is about
twice as fast for most work. However, for really large numbers, it
will overflow the stack.
--- In primenumbers@y..., Phil Carmody <thefatphil@y...> wrote:
>--- Cletus Emmanuel <cemmanu@h...> wrote:
>>>--- Cletus Emmanuel <cemmanu@h...> wrote:
>>>> I am trying to PRP test a 5.05M-digit number using PFGW and it
>>>> won't let me.
>>>> I am getting this error message
>>>> "Unknown error in PFGW runtime|Possibly a number too big for
>>>> alloca version of GMP".
>>>>Can anyone explain and tell me how to get around this problem?
>>>Recompile GMP with alloca disabled for temporaries, as documented
>>>the 'Build Options' section of the documentation. You don't need
>>>reentrancy, so `malloc-notreentrant' should do the business.
>>>that or bump up the stack size for PGFW to 20MB or however large
>>>need to go.
>>thanks for the quick response. In short, are you saying that I
>>have to get
>>the source code and change the stack size or memory allocation? If
>>so , I
>>don't have the source code. I only have the program (I am new to
>The latest version of PFGW can use a dynamically linked external GMP
>library, so maybe if you can find a prebuilt non-alloca version of
>GMP you can use that without any recompilation at all.
>Otherwise you've either got to build your own GMP, or even build your
>own PFGW from scratch. I think Jim F or Chris N will have definitive
>answers to your dilemma.