MMM
Results 1 to 25 of 815

Thread: New Multi-Threaded Pi Program - Faster than SuperPi and PiFast

Threaded View

  1. #11
    Xtreme Enthusiast
    Join Date
    Mar 2009
    Location
    Bay Area, California
    Posts
    705
    Quote Originally Posted by bonis62 View Post
    T Y V M


    the FLOAT instead of DOUBLE saves bits and gains efficiency,
    but i do not know if YOUR APP can work with FLOAT...
    I'm already pushing "double" to its limit of precision.
    "float" has less than half the precision of "double" so that would require more than 4x the work.

    Actually, because of the way the algorithm works, using type "float" would require MUCH more than 4x the work. It would actually fail above a certain (small) size.

    The run-time complexity is this:

    where "n" is the # of digits.
    and "w" is the # of bits of precision in the floating-point.

    When the denominator goes to zero, the run-time (and memory) blows up to infinity - in other words, the algorithm fails.

    This is the reason why I can't use GPU.

    If there was a 128-bit floating-point type that was supported by hardware, the program would actually be MUCH faster.


    EDIT: That complexity is just a reasonable approximation to the true complexity.
    The true complexity (ignoring round-off error), has special functions in it... so it's unreadable to normal people. (even myself)
    Last edited by poke349; 02-10-2010 at 01:08 PM.
    Main Machine:
    AMD FX8350 @ stock --- 16 GB DDR3 @ 1333 MHz --- Asus M5A99FX Pro R2.0 --- 2.0 TB Seagate

    Miscellaneous Workstations for Code-Testing:
    Intel Core i7 4770K @ 4.0 GHz --- 32 GB DDR3 @ 1866 MHz --- Asus Z87-Plus --- 1.5 TB (boot) --- 4 x 1 TB + 4 x 2 TB (swap)

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •