Skip to content

Fix profiler device info output for host SYCL backend and tidy-up SYCL math kernels

Issue/feature addressed

oneAPI DPC++ device info extensions are not available for host device and for other SYCL compiles such as AdaptiveCpp.

Proposed solution

Use #ifdef guard to prevent compilation/runtime problems

#if defined(NEKTAR_ENABLE_SYCL) && !defined(SYCL_ENABLE_CPU) &&                \
    defined(__INTEL_LLVM_COMPILER)

...

#elif defined(NEKTAR_ENABLE_SYCL)

...

#endif

Implementation

Tests

Suggested reviewers

Notes

Checklist

  • Functions and classes, or changes to them, are documented.
  • [ ] User guide/documentation is updated.
  • [ ] Changelog is updated.
  • Suitable tests added for new functionality.
  • Contributed code is correctly formatted. (See the contributing guidelines).
  • License added to any new files.
  • No extraneous files have been added (e.g. compiler output or test data files).
Edited by Jacques Xing

Merge request reports

Loading