diff --git a/inference-engine/include/ie_blob.h b/inference-engine/include/ie_blob.h index 234a13528eb..30b9b6b978a 100644 --- a/inference-engine/include/ie_blob.h +++ b/inference-engine/include/ie_blob.h @@ -577,13 +577,14 @@ public: /** *@brief Virtual destructor. */ -#ifdef __clang__ + +#if defined(__clang__) && !defined(__SYCL_COMPILER_VERSION) virtual ~TBlob(); #else virtual ~TBlob() { free(); } -#endif // __clang__ +#endif // __clang__ && !__SYCL_COMPILER_VERSION /** * @brief Gets the size of the given type. @@ -806,7 +807,7 @@ protected: } }; -#ifdef __clang__ +#if defined(__clang__) && !defined(__SYCL_COMPILER_VERSION) extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob); @@ -819,7 +820,7 @@ extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob); extern template class INFERENCE_ENGINE_API_CLASS(InferenceEngine::TBlob); -#endif // __clang__ +#endif // __clang__ && !__SYCL_COMPILER_VERSION /** * @brief Creates a blob with the given tensor descriptor. diff --git a/inference-engine/include/ie_parameter.hpp b/inference-engine/include/ie_parameter.hpp index d274edd083a..e53cef2fb2c 100644 --- a/inference-engine/include/ie_parameter.hpp +++ b/inference-engine/include/ie_parameter.hpp @@ -265,11 +265,11 @@ private: struct HasOperatorEqual : CheckOperatorEqual::type {}; struct Any { -#ifdef __clang__ +#if defined(__clang__) && !defined(__SYCL_COMPILER_VERSION) virtual ~Any(); #else virtual ~Any() = default; -#endif +#endif // __clang__ && !__SYCL_COMPILER_VERSION virtual bool is(const std::type_info&) const = 0; virtual Any* copy() const = 0; virtual bool operator==(const Any& rhs) const = 0; @@ -326,7 +326,7 @@ private: Any* ptr = nullptr; }; -#ifdef __clang__ +#if defined(__clang__) && !defined(__SYCL_COMPILER_VERSION) extern template struct INFERENCE_ENGINE_API_CLASS(InferenceEngine::Parameter::RealData); extern template struct INFERENCE_ENGINE_API_CLASS(InferenceEngine::Parameter::RealData); extern template struct INFERENCE_ENGINE_API_CLASS(InferenceEngine::Parameter::RealData); @@ -341,6 +341,6 @@ extern template struct INFERENCE_ENGINE_API_CLASS( InferenceEngine::Parameter::RealData>); extern template struct INFERENCE_ENGINE_API_CLASS( InferenceEngine::Parameter::RealData>); -#endif // __clang__ +#endif // __clang__ && !__SYCL_COMPILER_VERSION } // namespace InferenceEngine diff --git a/inference-engine/src/inference_engine/ie_rtti.cpp b/inference-engine/src/inference_engine/ie_rtti.cpp index a2e45d59fab..e32e69ff188 100644 --- a/inference-engine/src/inference_engine/ie_rtti.cpp +++ b/inference-engine/src/inference_engine/ie_rtti.cpp @@ -81,7 +81,7 @@ Parameter::~Parameter() { clear(); } -#ifdef __clang__ +#if defined(__clang__) && !defined(__SYCL_COMPILER_VERSION) Parameter::Any::~Any() {} template struct InferenceEngine::Parameter::RealData; @@ -97,12 +97,12 @@ template struct InferenceEngine::Parameter::RealData> template struct InferenceEngine::Parameter::RealData>; template struct InferenceEngine::Parameter::RealData>; template struct InferenceEngine::Parameter::RealData; -#endif // __clang__ +#endif // __clang__ && !__SYCL_COMPILER_VERSION // // ie_blob.h // -#ifdef __clang__ +#if defined(__clang__) && !defined(__SYCL_COMPILER_VERSION) template TBlob::~TBlob() { free(); @@ -120,4 +120,4 @@ template class InferenceEngine::TBlob; template class InferenceEngine::TBlob; template class InferenceEngine::TBlob; template class InferenceEngine::TBlob; -#endif // __clang__ +#endif // __clang__ && !__SYCL_COMPILER_VERSION