Skip to content

add standalone_debug attribute to sycl::device class #19059

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

Draft
wants to merge 2 commits into
base: sycl
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sycl/include/sycl/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,18 @@ enum class peer_access {
};

} // namespace ext::oneapi
#if __has_cpp_attribute(_Clang::__standalone_debug__)
#define PLATFORM_SPECIFIC_ATTRIBUTE [[_Clang::__standalone_debug__]]
#else
#define PLATFORM_SPECIFIC_ATTRIBUTE
#endif

/// The SYCL device class encapsulates a single SYCL device on which kernels
/// may be executed.
///
/// \ingroup sycl_api
class __SYCL_EXPORT device : public detail::OwnerLessBase<device> {
class PLATFORM_SPECIFIC_ATTRIBUTE __SYCL_EXPORT device
: public detail::OwnerLessBase<device> {
public:
/// Constructs a SYCL device instance using the default device.
device();
Expand Down
Loading