Skip to content

[SYCL] Fix segmentation fault that occurs when creating host accessors in parallel#1597

Merged
bader merged 4 commits into
intel:syclfrom
dm-vodopyanov:private/dvodopya/fix_seg_fault_in_host_accessor
Apr 29, 2020
Merged

[SYCL] Fix segmentation fault that occurs when creating host accessors in parallel#1597
bader merged 4 commits into
intel:syclfrom
dm-vodopyanov:private/dvodopya/fix_seg_fault_in_host_accessor

Conversation

@dm-vodopyanov
Copy link
Copy Markdown
Contributor

Signed-off-by: Dmitry Vodopyanov dmitry.vodopyanov@intel.com

…s in parallel

Signed-off-by: Dmitry Vodopyanov <dmitry.vodopyanov@intel.com>
@dm-vodopyanov dm-vodopyanov requested a review from a team as a code owner April 28, 2020 12:38
Signed-off-by: Dmitry Vodopyanov <dmitry.vodopyanov@intel.com>
Comment thread sycl/source/detail/scheduler/scheduler.cpp Outdated
Comment thread sycl/source/detail/scheduler/scheduler.hpp Outdated
Comment thread sycl/source/detail/scheduler/scheduler.cpp Outdated
Signed-off-by: Dmitry Vodopyanov <dmitry.vodopyanov@intel.com>
Comment thread sycl/source/detail/scheduler/scheduler.cpp Outdated
Copy link
Copy Markdown
Contributor

@keryell keryell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not clear why it happens.
Is it because you are looking to late and release too early?
I do not remember this issue in triSYCL, even if there are currently some other problems.

Signed-off-by: Dmitry Vodopyanov <dmitry.vodopyanov@intel.com>
@dm-vodopyanov
Copy link
Copy Markdown
Contributor Author

@keryell correct, this is typical data race caused by accessing data by one thread which was already released by another thread. Segmentation fault was happened on line 508 of Command::enqueue(...) func:

  cl_int Res = enqueueImp();

Copy link
Copy Markdown
Contributor

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants