Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent race condition in accelerator copies management #575

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions parsec/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ int parsec_data_start_transfer_ownership_to_copy(parsec_data_t* data,

copy = data->device_copies[device];
assert( NULL != copy );

PARSEC_DEBUG_VERBOSE(10, parsec_debug_output,
"DEV[%d]: start transfer ownership of data %p to copy %p in mode %d",
device, data, copy, access_mode);

switch( copy->coherency_state ) {
case PARSEC_DATA_COHERENCY_INVALID:
transfer_required = 1;
Expand Down Expand Up @@ -415,8 +415,6 @@ int parsec_data_start_transfer_ownership_to_copy(parsec_data_t* data,
}
}

assert( (!transfer_required) || (data->device_copies[valid_copy]->version >= copy->version) );

if( PARSEC_FLOW_ACCESS_READ & access_mode ) {
copy->readers++;
}
Expand Down
Loading