Lines Matching full:id
19 - bits 0-3: wavefront id
20 - bits 4-23: workgroup id (+1, so never zero)
44 /* Dim(0) is the workgroup ID; range 0 to maybe thousands. in __gcn_thread_id()
45 Dim(1) is the wavefront ID; range 0 to 15. */ in __gcn_thread_id()
53 int id = __gcn_thread_id (); in __gcn_lock_acquire_int() local
57 __builtin_sprintf (buf,"acquire:%p(%d) lock_value:0x%x id:0x%x", lock_ptr, in __gcn_lock_acquire_int()
58 _try, *lock_ptr, id); in __gcn_lock_acquire_int()
63 while (!__atomic_compare_exchange_n (lock_ptr, &expected, id, 0, in __gcn_lock_acquire_int()
77 __builtin_sprintf (buf,"acquired:%p(%d) lock_value:0x%x id:0x%x", lock_ptr, in __gcn_lock_acquire_int()
78 _try, *lock_ptr, id); in __gcn_lock_acquire_int()
100 int id = __gcn_thread_id (); in __gcn_lock_acquire_recursive_int() local
104 __builtin_sprintf (buf,"acquire recursive:%p(%d) lock_value:0x%x id:0x%x", in __gcn_lock_acquire_recursive_int()
105 lock_ptr, _try, *lock_ptr, id); in __gcn_lock_acquire_recursive_int()
110 if ((lock_value & 0xffffff) == id) in __gcn_lock_acquire_recursive_int()
115 lock_value = ((count + 1) << 24) | id; in __gcn_lock_acquire_recursive_int()
120 "increment recursive:%p(%d) lock_value:0x%x id:0x%x", in __gcn_lock_acquire_recursive_int()
121 lock_ptr, _try, *lock_ptr, id); in __gcn_lock_acquire_recursive_int()
148 __builtin_sprintf (buf,"release:%p lock_value:0x%x id:0x%x", lock_ptr, in __gcn_lock_release()
159 int id = __gcn_thread_id (); in __gcn_lock_release_recursive() local
164 __builtin_sprintf (buf, "release recursive:%p lock_value:0x%x id:0x%x", in __gcn_lock_release_recursive()
165 lock_ptr, lock_value, id); in __gcn_lock_release_recursive()
170 assert ((lock_value & 0xffffff) == id); in __gcn_lock_release_recursive()
176 lock_value = ((count - 1) << 24) | id; in __gcn_lock_release_recursive()
180 __builtin_sprintf (buf, "decrement recursive:%p lock_value:0x%x id:0x%x", in __gcn_lock_release_recursive()
181 lock_ptr, *lock_ptr, id); in __gcn_lock_release_recursive()