Commit 96358e41 authored by Paul's avatar Paul
Browse files

Rename to migraphx

parent 80203608
#include <migraph/generate.hpp> #include <migraphx/generate.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
argument generate_argument(shape s, unsigned long seed) argument generate_argument(shape s, unsigned long seed)
...@@ -32,4 +32,4 @@ literal abs(literal l) ...@@ -32,4 +32,4 @@ literal abs(literal l)
} }
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP #ifndef MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP #define MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP
#include <migraph/shape.hpp> #include <migraphx/shape.hpp>
#include <migraph/raw_data.hpp> #include <migraphx/raw_data.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
#include <functional> #include <functional>
#include <utility> #include <utility>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
/** /**
...@@ -48,6 +48,6 @@ struct argument : raw_data<argument> ...@@ -48,6 +48,6 @@ struct argument : raw_data<argument>
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
#ifndef MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP #ifndef MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP
#define MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP #define MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
namespace detail { namespace detail {
...@@ -35,6 +35,6 @@ detail::auto_any_caster<T> auto_any_cast(T& x) ...@@ -35,6 +35,6 @@ detail::auto_any_caster<T> auto_any_cast(T& x)
} }
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_AUTO_CONTIGOUS_HPP #define MIGRAPH_GUARD_RTGLIB_AUTO_CONTIGOUS_HPP
#include <string> #include <string>
#include <migraph/instruction_ref.hpp> #include <migraphx/instruction_ref.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -17,6 +17,6 @@ struct auto_contiguous ...@@ -17,6 +17,6 @@ struct auto_contiguous
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
#ifndef MIGRAPH_GUARD_BUILTIN_HPP #ifndef MIGRAPH_GUARD_BUILTIN_HPP
#define MIGRAPH_GUARD_BUILTIN_HPP #define MIGRAPH_GUARD_BUILTIN_HPP
#include <migraph/context.hpp> #include <migraphx/context.hpp>
#include <migraph/errors.hpp> #include <migraphx/errors.hpp>
#include <migraph/argument.hpp> #include <migraphx/argument.hpp>
#include <migraph/reflect.hpp> #include <migraphx/reflect.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
namespace builtin { namespace builtin {
...@@ -65,6 +65,6 @@ struct param ...@@ -65,6 +65,6 @@ struct param
} // namespace builtin } // namespace builtin
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
#ifndef MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP #ifndef MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP
#define MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP #define MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP
#include <migraph/program.hpp> #include <migraphx/program.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
template <class T> template <class T>
...@@ -28,6 +28,6 @@ struct check_context ...@@ -28,6 +28,6 @@ struct check_context
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
#ifndef MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP #ifndef MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP
#define MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP #define MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP
#include <migraph/shape.hpp> #include <migraphx/shape.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
#include <algorithm> #include <algorithm>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct check_shapes struct check_shapes
...@@ -157,6 +157,6 @@ struct check_shapes ...@@ -157,6 +157,6 @@ struct check_shapes
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_COMMON_SUBEXPRESSION_ELIMINATION_HPP #define MIGRAPH_GUARD_RTGLIB_COMMON_SUBEXPRESSION_ELIMINATION_HPP
#include <string> #include <string>
#include <migraph/instruction_ref.hpp> #include <migraphx/instruction_ref.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -20,6 +20,6 @@ struct common_subexpression_elimination ...@@ -20,6 +20,6 @@ struct common_subexpression_elimination
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
#include <migraph/operation.hpp> #include <migraphx/operation.hpp>
#include <migraph/operators.hpp> #include <migraphx/operators.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -236,6 +236,6 @@ inline const ValueType& any_cast(const concat_optimization& x) ...@@ -236,6 +236,6 @@ inline const ValueType& any_cast(const concat_optimization& x)
#endif #endif
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
#ifndef MIGRAPH_GUARD_CONFIG_HPP #ifndef MIGRAPH_GUARD_CONFIG_HPP
#define MIGRAPH_GUARD_CONFIG_HPP #define MIGRAPH_GUARD_CONFIG_HPP
namespace migraph { namespace migraphx {
#if !defined(MIGRAPH_USE_CLANG_TIDY) && !defined(DOXYGEN) #if !defined(MIGRAPH_USE_CLANG_TIDY) && !defined(DOXYGEN)
#define MIGRAPH_INLINE_NS version_1 #define MIGRAPH_INLINE_NS version_1
#endif #endif
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
#define MIGRAPH_GUARD_RTGLIB_CONSTANT_PROPAGATE_HPP #define MIGRAPH_GUARD_RTGLIB_CONSTANT_PROPAGATE_HPP
#include <string> #include <string>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -19,6 +19,6 @@ struct constant_propagate ...@@ -19,6 +19,6 @@ struct constant_propagate
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
#include <memory> #include <memory>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
#ifdef DOXYGEN #ifdef DOXYGEN
...@@ -206,6 +206,6 @@ inline const ValueType& any_cast(const context& x) ...@@ -206,6 +206,6 @@ inline const ValueType& any_cast(const context& x)
#endif #endif
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_DEAD_CODE_ELIMINATION_HPP #define MIGRAPH_GUARD_RTGLIB_DEAD_CODE_ELIMINATION_HPP
#include <string> #include <string>
#include <migraph/instruction_ref.hpp> #include <migraphx/instruction_ref.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -20,6 +20,6 @@ struct dead_code_elimination ...@@ -20,6 +20,6 @@ struct dead_code_elimination
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP #ifndef MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP #define MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
// Multidimensional for loop // Multidimensional for loop
...@@ -24,6 +24,6 @@ auto dfor(T x, Ts... xs) ...@@ -24,6 +24,6 @@ auto dfor(T x, Ts... xs)
} }
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP #define MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP
#include <string> #include <string>
#include <migraph/instruction_ref.hpp> #include <migraphx/instruction_ref.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -23,6 +23,6 @@ struct eliminate_allocation ...@@ -23,6 +23,6 @@ struct eliminate_allocation
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP #define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP
#include <string> #include <string>
#include <migraph/instruction_ref.hpp> #include <migraphx/instruction_ref.hpp>
#include <migraph/concat_opt.hpp> #include <migraphx/concat_opt.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -22,6 +22,6 @@ struct eliminate_concat ...@@ -22,6 +22,6 @@ struct eliminate_concat
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONTIGUOUS_HPP #define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONTIGUOUS_HPP
#include <string> #include <string>
#include <migraph/instruction_ref.hpp> #include <migraphx/instruction_ref.hpp>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
struct program; struct program;
...@@ -20,6 +20,6 @@ struct eliminate_contiguous ...@@ -20,6 +20,6 @@ struct eliminate_contiguous
}; };
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
// Declare a cached environment variable // Declare a cached environment variable
...@@ -34,6 +34,6 @@ bool disabled(T) ...@@ -34,6 +34,6 @@ bool disabled(T)
} }
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
#define MIGRAPH_GUARD_ERASE_HPP #define MIGRAPH_GUARD_ERASE_HPP
#include <algorithm> #include <algorithm>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
/** /**
...@@ -34,6 +34,6 @@ auto erase_if(R&& r, P&& pred) ...@@ -34,6 +34,6 @@ auto erase_if(R&& r, P&& pred)
} }
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
#include <exception> #include <exception>
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>
#include <migraph/config.hpp> #include <migraphx/config.hpp>
namespace migraph { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
/// Represents exceptions that can be thrown by migraphlib /// Represents exceptions that can be thrown by migraphxlib
struct exception : std::runtime_error struct exception : std::runtime_error
{ {
exception(const std::string& msg = "") : std::runtime_error(msg) {} exception(const std::string& msg = "") : std::runtime_error(msg) {}
...@@ -44,9 +44,9 @@ inline std::string make_source_context(const std::string& file, int line) ...@@ -44,9 +44,9 @@ inline std::string make_source_context(const std::string& file, int line)
* @brief Throw an exception with context information * @brief Throw an exception with context information
*/ */
#define MIGRAPH_THROW(...) \ #define MIGRAPH_THROW(...) \
throw migraph::make_exception(migraph::make_source_context(__FILE__, __LINE__), __VA_ARGS__) throw migraphx::make_exception(migraphx::make_source_context(__FILE__, __LINE__), __VA_ARGS__)
} // namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraphx
#endif #endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment