Skip to content

Commit

Permalink
update opencl.cat
Browse files Browse the repository at this point in the history
  • Loading branch information
tonghaining committed Oct 13, 2024
1 parent 016c6ec commit 41d755c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cat/opencl.cat
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let Fsb = [F]; sb
let sbF = sb; [F]

(* Release sequence *)
let rs_prime = wi | (unv; [R & W])
let rs_prime = (_ * RMW) | wi
let rs = mo & rs_prime & ~((mo & ~rs_prime) ; mo)

(* Release-acquire synchronisation *)
Expand Down Expand Up @@ -124,10 +124,10 @@ flag ~empty dr as data_race

(* unsequenced_races *)
let symm(r) = r | r^-1
let ur = (wi & cnf & ~symm(po)) \ id
let ur = (wi & cnf & ~symm(sb)) \ id
flag ~empty ur as unsequenced_race

(* Barrier divergence *)
let bsw = bar_sw(dynamic_tag(GLOBAL)) | bar_sw(dynamic_tag(LOCAL))
let bd = [EF] & ((~wi & swg); unv) \ (bsw ; unv)
let bd = [EF] & [domain(~wi & swg)] \ [domain(bsw)]
flag ~empty bd as barrier_divergence

0 comments on commit 41d755c

Please sign in to comment.