/* *Copyright (c) 2018 Intel Corporation. * *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in *all copies or substantial portions of the Software. * *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *THE SOFTWARE. * */ #ifndef _IDEEP_HPP #define _IDEEP_HPP #include #include #include #include #include #include #include #include #include #include #include #include "ideep/abstract_types.hpp" #include "ideep/tensor.hpp" #include "ideep/computations.hpp" // The ideep version number has four segments // The first three are the same as oneDNN version numbers // The fourth is to indicate ideep API change // So, ideep version = MAJOR.MINOR.PATCH.REVISION // e.g., 3.1.0.0 // REVISION should +1 after API change in IDEEP. // REVISION should NOT be reset to 0 after oneDNN update #define IDEEP_VERSION_MAJOR DNNL_VERSION_MAJOR #define IDEEP_VERSION_MINOR DNNL_VERSION_MINOR #define IDEEP_VERSION_PATCH DNNL_VERSION_PATCH #define IDEEP_VERSION_REVISION 4 // Check if ideep version prerequisite is met #define IDEEP_PREREQ(major, minor, patch, revision) \ (((IDEEP_VERSION_MAJOR << 16) + (IDEEP_VERSION_MINOR << 8) + \ (IDEEP_VERSION_PATCH << 0)) >= \ ((major << 16) + (minor << 8) + (patch << 0)) && \ (IDEEP_VERSION_REVISION >= revision)) #endif