New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Buffer is too small" error in mul_uW #12

Closed
007 opened this Issue Aug 29, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@007

007 commented Aug 29, 2018

Calculating Euler-Mascheroni Constant to 268,435,456 digits results in

Buffer is too small:
    Function:       BigFloat::mul_uW()
    Buffer Size:    1,830,984
    Required Size:  1,830,985

during Summing Series C at 83%.

Start Time: Tue Aug 28 22:43:56 2018

Working Memory...  1.92 GiB  (locked, spread: ?)
Twiddle Tables...   110 MiB  (locked, spread: ?)

Begin Computation:

Summing Series A and B...  512,995,030 terms
Time:    1065.780 seconds  ( 17.763 minutes )
Division...
Time:    1.982 seconds  ( 0.033 minutes )

Summing Series C...  9,311,986 terms
Summing: 83%  ( 0 ) E ( 27,210,357 )

Exception Encountered: BufferTooSmallException

Buffer is too small:
    Function:       BigFloat::mul_uW()
    Buffer Size:    1,830,984
    Required Size:  1,830,985


Time:    8.240 seconds  ( 0.137 minutes )


Exception Encountered: BufferTooSmallException

Buffer is too small:
    Function:       BigFloat::mul_uW()
    Buffer Size:    1,830,984
    Required Size:  1,830,985

CPU is Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz, running y-cruncher in a Linux container on OSX. I'll attempt the same with the detected core and this 13-HSW core tonight on an i7-7700k.

Full config and CPU detection

y-cruncher v0.7.6 Build 9483

Detecting Environment...

CPU Vendor:
    AMD         = No
    Intel       = Yes

OS Features:
  * 64-bit      = Yes
  * OS AVX      = Yes
  * OS AVX512   = No

Hardware Features:
    MMX         = Yes
  * x64         = Yes
  * ABM         = Yes
    RDRAND      = Yes
    RDSEED      = No
    BMI1        = Yes
  * BMI2        = Yes
  * ADX         = No
    MPX         = No
    PREFETCHW   = Yes
    PREFETCHWT1 = No

SIMD: 128-bit
  * SSE         = Yes
  * SSE2        = Yes
  * SSE3        = Yes
  * SSSE3       = Yes
    SSE4a       = No
  * SSE4.1      = Yes
  * SSE4.2      = Yes
    AES-NI      = Yes
    SHA         = No

SIMD: 256-bit
  * AVX         = Yes
  * XOP         = No
  * FMA3        = Yes
  * FMA4        = No
  * AVX2        = Yes

SIMD: 512-bit
  * AVX512-F         = No
    AVX512-CD        = No
    AVX512-PF        = No
    AVX512-ER        = No
  * AVX512-VL        = No
  * AVX512-BW        = No
  * AVX512-DQ        = No
  * AVX512-IFMA      = No
  * AVX512-VBMI      = No

Alright Intel, how many drinks have you had tonight?
    AVX512-VPOPCNTDQ = No
    AVX512-4FMAPS    = No
    AVX512-4VNNIW    = No
    AVX512-VBMI2     = No
    AVX512-GFNI      = No
    AVX512-VAES      = No
    AVX512-VPCLMUL   = No
    AVX512-VNNI      = No
    AVX512-BITALG    = No


Auto-Selecting: 13-HSW ~ Airi

/Binaries/13-HSW ~ Airi


Launching y-cruncher...
================================================================



Insufficient permissions to set thread priority. Please retry as root.

Further messages for this warning will be suppressed.

Checking processor/OS features...

Required Features:
    x64, ABM, BMI1, BMI2,
    SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2,
    AVX, FMA3, AVX2



Parsing Core -> Handle Mappings...
    Cores:  0-3

Parsing NUMA -> Core Mappings...

y-cruncher v0.7.6 Build 9483                ( www.numberworld.org )
Copyright 2008-2019 Alexander J. Yee      ( a-yee@u.northwestern.edu )

Distribute Freely - Please report any bugs.

Tuning:  Linux/13-HSW ~ Airi  -  Haswell (x64 AVX2)

@Mysticial Mysticial added the bug label Aug 29, 2018

@Mysticial

This comment has been minimized.

Show comment
Hide comment
@Mysticial

Mysticial Aug 29, 2018

Owner

Confirmed and reproduced locally. Definitely broke this in the v0.7.6 refactoring.

I'll have a fix up soon. Thanks for the report!

Owner

Mysticial commented Aug 29, 2018

Confirmed and reproduced locally. Definitely broke this in the v0.7.6 refactoring.

I'll have a fix up soon. Thanks for the report!

@Mysticial

This comment has been minimized.

Show comment
Hide comment
@Mysticial

Mysticial Aug 29, 2018

Owner

I just released v0.7.6.9484 which has a fix for this.

Owner

Mysticial commented Aug 29, 2018

I just released v0.7.6.9484 which has a fix for this.

@007

This comment has been minimized.

Show comment
Hide comment
@007

007 Aug 29, 2018

Verified success on Euler-Mascheroni and a few others up to 256M, tks.

007 commented Aug 29, 2018

Verified success on Euler-Mascheroni and a few others up to 256M, tks.

@007 007 closed this Aug 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment