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

SYCL parallel_for MDRangePolicy #3583

Merged
merged 2 commits into from
Nov 25, 2020

Conversation

masterleinad
Copy link
Contributor

@masterleinad masterleinad commented Nov 11, 2020

Needs #3582. So far only tested with the incremental test.

@masterleinad
Copy link
Contributor Author

Retest this please.

@masterleinad
Copy link
Contributor Author

Retest this please.

1 similar comment
@masterleinad
Copy link
Contributor Author

Retest this please.

@masterleinad masterleinad marked this pull request as ready for review November 20, 2020 05:26
@masterleinad
Copy link
Contributor Author

This should be ready.

@masterleinad masterleinad requested review from dalg24 and nliber and removed request for dalg24 November 20, 2020 05:27
@masterleinad
Copy link
Contributor Author

Only one of the HIP CI checks is timing out which I am pretty sure is unrelated.

@masterleinad masterleinad force-pushed the sycl_md_parallel_for branch 2 times, most recently from 55e17e8 to eaf4308 Compare November 23, 2020 02:59
core/src/SYCL/Kokkos_SYCL_Parallel_Range.hpp Outdated Show resolved Hide resolved
core/unit_test/TestRange.hpp Outdated Show resolved Hide resolved
}
#endif
#if defined(KOKKOS_ENABLE_SYCL)
// FIXME_SYCL query the limit instead
Copy link
Member

Choose a reason for hiding this comment

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

How do you plan on getting that number?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

m_device.get_info<device::max_work_group_size>() should work.

#else
range_type range(point_type{{0, 0, 0}}, point_type{{N0, N1, N2}},
tile_type{{8, 8, 4}});
#endif
Copy link
Member

Choose a reason for hiding this comment

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

Are you changing all these because m_prod_tile_dims > 256?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

const Policy m_policy;

ParallelFor() = delete;
ParallelFor& operator=(ParallelFor const&) = delete;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should declare the copy/move constructor and move assignment operator as deleted and the destructor as defaulted (Rule of 5).

@dalg24
Copy link
Member

dalg24 commented Nov 25, 2020

Please address #3583 (comment)
and cleanup history and I will merge

@masterleinad
Copy link
Contributor Author

Please address #3583 (comment)
and cleanup history and I will merge

@dalg24 Here you go!

@masterleinad
Copy link
Contributor Author

All CI except for Travis has passed.

@dalg24 dalg24 merged commit 32a6475 into kokkos:develop Nov 25, 2020
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.

None yet

3 participants