Skip to content

Commit f3ba4de

Browse files
committed
Working draft
1 parent 1e994a8 commit f3ba4de

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,17 @@
4040
#define __SYCL_NONCONST_FUNCTOR__
4141
#endif
4242

43-
#ifdef SYCL_LANGUAGE_VERSION
44-
#define SYCL_STD_VERSION SYCL_LANGUAGE_VERSION
43+
#if SYCL_LANGUAGE_VERSION
44+
#define __SYCL_STD_VERSION__ SYCL_LANGUAGE_VERSION
4545
#else
46-
#define SYCL_STD_VERSION 201707
46+
#define __SYCL_STD_VERSION__ 201707
4747
#endif
4848

4949
enum Sycl_std_versions {
5050
version_older_2020,
5151
version_2020
5252
};
53-
const Sycl_std_versions sycl_ver =
54-
SYCL_STD_VERSION < 202000 ? version_older_2020 : version_2020;
53+
extern Sycl_std_versions sycl_ver;
5554

5655
template <typename DataT, int Dimensions, cl::sycl::access::mode AccessMode,
5756
cl::sycl::access::target AccessTarget,

sycl/source/handler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <detail/queue_impl.hpp>
2121
#include <detail/scheduler/scheduler.hpp>
2222

23+
Sycl_std_versions sycl_ver;
24+
2325
__SYCL_INLINE_NAMESPACE(cl) {
2426
namespace sycl {
2527

0 commit comments

Comments
 (0)