Skip to content

Conversation

@aelovikov-intel
Copy link
Contributor

Trying to reduce compile-time for

namespace oneapi = sycl::ext::oneapi;

extern "C"
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((oneapi::experimental::nd_range_kernel<1>))
void iota(float start, float *ptr) {
  size_t id = oneapi::this_work_item::get_nd_item<1>().get_global_linear_id();
  ptr[id] = start + static_cast<float>(id);
}

Trying to reduce compile-time for

```c+++
namespace oneapi = sycl::ext::oneapi;

extern "C"
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((oneapi::experimental::nd_range_kernel<1>))
void iota(float start, float *ptr) {
  size_t id = oneapi::this_work_item::get_nd_item<1>().get_global_linear_id();
  ptr[id] = start + static_cast<float>(id);
}
```
#define __SYCL_ASSERT(x) assert(x)
#endif // #ifdef __SYCL_DEVICE_ONLY__

#define __SYCL_UR_ERROR_REPORT(backend) \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only used under sycl/source, so moved there.

#include <sycl/ext/oneapi/properties/property_utils.hpp> // for Sorted, Mer...
#include <sycl/ext/oneapi/properties/property_value.hpp> // for property_value

#include <tuple> // for tuple, tupl...
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we've stopped using std::tuple during the refactoring around
#16024, #16126 timeframe.

@aelovikov-intel aelovikov-intel merged commit bdd0fd1 into intel:sycl Sep 24, 2025
43 of 44 checks passed
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.

2 participants