Skip to content

Commit 5a792fa

Browse files
Update src/runtime/d3d12compute.cpp
Co-authored-by: Alex Reinking <alex.reinking@gmail.com>
1 parent ac888fd commit 5a792fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/d3d12compute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3521,7 +3521,7 @@ WEAK int halide_d3d12compute_image_copy_to_host(void *user_context, halide_buffe
35213521
wait_until_completed(frame);
35223522

35233523
// Decrement the ref_count that suballocate() incremented — the GPU work is done.
3524-
__atomic_sub_fetch(&readback.ref_count, 1, __ATOMIC_SEQ_CST);
3524+
atomic_sub_fetch_sequentially_consistent(&readback.ref_count, 1);
35253525

35263526
// Unpack row-by-row from the padded staging buffer to the dense host buffer.
35273527
void *staging_data = buffer_contents(&readback);

0 commit comments

Comments
 (0)