GPU_PTX exch_sl+membar.gls-p0::p1-xgyg {y=1;} P0 | P1 ; mov.u32 r0, 1 | atom.exch.b32 r0, [r1], 1 ; st.cg.u32 [r1], r0 | setp.eq.u32 r4, r0, 0 ; membar.gl | @r4 membar.gl ; atom.exch.b32 r2, [r3], 0 | @r4 ld.cg.u32 r2, [r3] ; exists (1:r0=0 /\ 1:r2=0) (device (kernel (cta (warp P0)) (cta (warp P1)))) y:global; x:global Generated assembler //START _litmus_P1 atom.exch.b32 sr01, [sr11], 1 ; setp.eq.u32 sr41, sr01, 0 ; @sr41 membar.gl ; @sr41 ld.cg.u32 sr21, [sr31] ; //START _litmus_P0 mov.u32 sr00, 1 ; st.cg.u32 [sr10], sr00 ; membar.gl ; atom.exch.b32 sr20, [sr30], 0 ; Binary '/tmp/dir311551.tmp/exch-sl+membar.gls.exe' successfully loaded Specification clusters: 2 Specification: [[(814, 7, 'R5'), (817, 3, 'R4')], [(877, 2, 'R8'), (875, 7, 'R0')]] Cluster 0: OK Cluster 1: OK !!SUCCESS!! Test exch-sl+membar.gls Allowed Histogram (2 states) 1029 :>1:r0=0; 1:r2=1; 98976 :>1:r0=1; 1:r2=1; No Witnesses Positive: 0, Negative: 100005 Condition exists (1:r0=0 /\ 1:r2=0) is NOT validated Observation exch-sl+membar.gls Never 0 100005 Time exch-sl+membar.gls 6.22 -- device info -- Name: GeForce GTX TITAN Major revision number: 3 Minor revision number: 5 Total global memory: 6442123264 Total shared memory per block: 49152 Number of multiprocessors: 14 Machine: formal Revision 1371, version 5.01 GPU_PTX experimental backend Command line: ./litmus -mach GTXTitan.cfg -gpu-verf-comp true ASPLOS/exch-sl+membar.gls.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_35 */ /* 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: 14 */ /* gpu_min_ctas: 10 */ /* gpu_max_threads: 512 */ /* gpu_min_threads: 128 */