Skip to content

Commit 5139df1

Browse files
committed
Set minimum required versions & fix debug building
1 parent 12e7bd5 commit 5139df1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

dpnp/backend/kernels/dpnp_krnl_arraycreation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//*****************************************************************************
2-
// Copyright (c) 2016-2022, Intel Corporation
2+
// Copyright (c) 2016-2023, Intel Corporation
33
// All rights reserved.
44
//
55
// Redistribution and use in source and binary forms, with or without

dpnp/backend/src/dpnpc_memory_adapter.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
#include "queue_sycl.hpp"
3131
#include "dpnp_utils.hpp"
3232

33+
static_assert(__SYCL_COMPILER_VERSION >= __SYCL_COMPILER_VERSION_REQUIRED,
34+
"The compiler does not meet minimum version requirement");
35+
3336
/**
3437
* @ingroup BACKEND_UTILS
3538
* @brief Adapter for the memory given by parameters in the DPNPC functions

dpnp/backend/src/queue_sycl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
#include "queue_sycl.hpp"
3232
#include "dpnp_utils.hpp"
3333

34+
static_assert(__SYCL_COMPILER_VERSION >= __SYCL_COMPILER_VERSION_REQUIRED,
35+
"The compiler does not meet minimum version requirement");
36+
3437
#if defined(DPNP_LOCAL_QUEUE)
3538
sycl::queue* backend_sycl::queue = nullptr;
3639
#endif

0 commit comments

Comments
 (0)