[llvm] [SYCL] Add platform enumeration and info query using liboffload (PR #166927)
Dmitry Rogozhkin via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 12 08:35:02 PST 2025
================
@@ -15,17 +15,108 @@
#ifndef _LIBSYCL___IMPL_PLATFORM_HPP
#define _LIBSYCL___IMPL_PLATFORM_HPP
+#include <sycl/__impl/backend.hpp>
#include <sycl/__impl/detail/config.hpp>
+#include <sycl/__impl/detail/obj_utils.hpp>
+#include <sycl/__impl/info/platform.hpp>
+
+#include <memory>
+#include <vector>
_LIBSYCL_BEGIN_NAMESPACE_SYCL
+namespace detail {
+class platform_impl;
+} // namespace detail
+
+// SYCL 2020 4.6.2. Platform class
class _LIBSYCL_EXPORT platform {
public:
- /// Constructs a SYCL platform which contains the default device.
- platform();
+ /// Constructs a platform object that is a copy of the platform which contains
+ /// the device returned by default_selector_v.
+ // platform();
----------------
dvrogozh wrote:
Did you forget to prune the commented code?
https://github.com/llvm/llvm-project/pull/166927
More information about the llvm-commits
mailing list