[Issue 8505] New: Threadgroups fails using DMD 2.060

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 4 03:45:32 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8505

           Summary: Threadgroups fails using DMD 2.060
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: russel at winder.org.uk


--- Comment #0 from Russel Winder <russel at winder.org.uk> 2012-08-04 03:45:27 PDT ---
Created an attachment (id=1133)
Source code for the example showing the problem.

The attached code compiles and runs as expected using gdc on Debian Unstable:

gdc -I. -O3 -c -o pi_d_threadsGlobalState_threadGroup.o
pi_d_threadsGlobalState_threadGroup.d
gdc -I. -O3 -c -o output_d.o output_d.d
gdc -o pi_d_threadsGlobalState_threadGroup
pi_d_threadsGlobalState_threadGroup.o output_d.o
./pi_d_threadsGlobalState_threadGroup
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 1
    π = 3.141592653589970752
    iteration count = 1000000000
    elapse time = 8.610002
    number of processors = 8
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 2
    π = 3.141592653589901030
    iteration count = 1000000000
    elapse time = 4.307193
    number of processors = 8
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 8
    π = 3.141592653589769135
    iteration count = 1000000000
    elapse time = 1.126820
    number of processors = 8
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 32
    π = 3.141592653589757145
    iteration count = 1000000000
    elapse time = 1.103556
    number of processors = 8

Using dmd 2.060 installed using the deb on the DLang downloads website:

rdmd pi_d_threadsGlobalState_threadGroup.d
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 1
    π = 3.706147513366483626
    iteration count = 1000000000
    elapse time = 11.192674
    number of processors = 8
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 2
    π = 0.000000000000000000
    iteration count = 1000000000
    elapse time = 0.000162
    number of processors = 8
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 8
    π = 3.093593503818492962
    iteration count = 1000000000
    elapse time = 1.446934
    number of processors = 8
======================== pi_d_threadsGlobalState_threadGroup.d, task count: 32
    π = 2.126965177696329423
    iteration count = 1000000000
    elapse time = 1.436152
    number of processors = 8

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list