Skip to content

Commit e24745a

Browse files
committed
address comments
1 parent 3397610 commit e24745a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

sycl/source/exception.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ context exception::get_context() const {
2626

2727
cl_int exception::get_cl_code() const { return MCLErr; }
2828

29-
const detail::SYCLCategory SYCLCategoryObj;
3029

31-
const std::error_category &sycl_category() noexcept { return SYCLCategoryObj; }
30+
const std::error_category &sycl_category() noexcept {
31+
static const detail::SYCLCategory SYCLCategoryObj;
32+
return SYCLCategoryObj;
33+
}
3234

3335
std::error_code make_error_code(sycl::errc Err) noexcept {
3436
return {static_cast<int>(Err), sycl_category()};

sycl/source/kernel_bundle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ build_impl(const kernel_bundle<bundle_state::input> &InputBundle,
214214
InputBundle, Devs, PropList, bundle_state::executable);
215215
}
216216

217+
// This function finds intersection of associated devices in common for all
218+
// bundles
217219
std::vector<sycl::device> find_device_intersection(
218220
const std::vector<kernel_bundle<bundle_state::object>> &ObjectBundles) {
219-
// This API requires to find the intersection of associated devices in common
220-
// for all bundles
221221
std::vector<sycl::device> IntersectDevices;
222222
std::vector<unsigned int> DevsCounters;
223223
std::map<device, unsigned int, LessByHash<device>> DevCounters;

0 commit comments

Comments
 (0)