GPU_PTX sl_future_fix-p0::p1-xgyg {y=1;} P0 | P1 ; ld.cg.u32 r0, [r1] | atom.cas.b32 r0, [r1], 0, 1 ; | mov.u32 r2, 1 ; membar.gl | ; atom.exch.b32 r2, [r3], 0 | setp.eq.u32 r4, r0, 0 ; | @r4 membar.gl ; | @r4 mov.u32 r5, 1 ; | @r4 st.cg.u32 [r3], r2 ; exists (0:r0=1 /\ 1:r0=0) (device (kernel (cta (warp P0)) (cta (warp P1)))) y:global; x:global Generated assembler //START _litmus_P1 atom.cas.b32 sr01, [sr11], 0, 1 ; mov.u32 sr21, 1 ; setp.eq.u32 sr41, sr01, 0 ; @sr41 membar.gl ; @sr41 mov.u32 sr51, 1 ; @sr41 st.cg.u32 [sr31], sr21 ; //START _litmus_P0 ld.cg.u32 sr00, [sr10] ; membar.gl ; atom.exch.b32 sr20, [sr30], 0 ; Binary '/tmp/dir324f4f.tmp/sl-future-fix.exe' successfully loaded Specification clusters: 2 Specification: [[(399, 6, 'R6'), (400, 2, 'R10')], [(458, 3, 'R4'), (455, 7, 'R5')]] Cluster 0: OK Cluster 1: OK !!SUCCESS!! Test sl-future-fix Allowed Histogram (2 states) 10028 :>0:r0=0; 1:r0=0; 89972 :>0:r0=0; 1:r0=1; No Witnesses Positive: 0, Negative: 100000 Condition exists (0:r0=1 /\ 1:r0=0) is NOT validated Observation sl-future-fix Never 0 100000 Time sl-future-fix 14.82 -- device info -- Name: GeForce GT 540M Major revision number: 2 Minor revision number: 1 Total global memory: 1072889856 Total shared memory per block: 49152 Number of multiprocessors: 2 Machine: DeepThought3 Revision 1371, version 5.01 GPU_PTX experimental backend Command line: ./litmus -mach GTX540m.cfg -gpu-verf-comp true ASPLOS/sl-future-fix.litmus -gpu-general-bc false Parameters #ifndef SIZE_OF_TEST #define SIZE_OF_TEST 100000 #endif #ifndef NUMBER_OF_RUN #define NUMBER_OF_RUN 1 #endif /* cc options: -arch=sm_21 */ /* barrier: user */ /* speedcheck: no */ /* gpu_general_bc: false */ /* gpu_mem_stress: true */ /* gpu-rand-threads: true */ /* gpu_cuda: true */ /* gpu_gen_addr: true */ /* gpu_cvt_global_to_gen: true */ /* gpu_cvt_shared_to_gen: true */ /* gpu_max_ctas: 4 */ /* gpu_min_ctas: 4 */ /* gpu_max_threads: 128 */ /* gpu_min_threads: 128 */