From e16faac2579c4d26d0e8608c1d4e2dd118eb9471 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 16 Jun 2022 11:18:42 -0500 Subject: [PATCH 01/32] Use env var for creds --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cf5b7e1df..cbf194aa0 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,7 @@ def rocmtestnode(Map conf) { stage("checkout ${variant}") { checkout scm } - gitStatusWrapper(credentialsId: '7126e5fe-eb51-4576-b52b-9aaf1de8f0fd', gitHubContext: "Jenkins - ${variant}", account: 'ROCmSoftwarePlatform', repo: 'AMDMIGraphX') { + gitStatusWrapper(credentialsId: "${env.status_wrapper_creds}", gitHubContext: "Jenkins - ${variant}", account: 'ROCmSoftwarePlatform', repo: 'AMDMIGraphX') { pre() stage("image ${variant}") { try { -- GitLab From f59806195c88a1c7571ac4aa554ec4e682c18866 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Thu, 16 Jun 2022 17:55:43 -0500 Subject: [PATCH 02/32] Instruction distance check fix (#1237) * Use custom distance function * Pass module, skip order check if other module * Change other valid() * Remove unnecessary declaration * test multiple module dependency * Refactor to make more clear * Code cleanup * Simplify fix * Test EXPECT Co-authored-by: Paul Fultz II --- src/instruction.cpp | 1 + src/module.cpp | 5 ++--- test/module_test.cpp | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/instruction.cpp b/src/instruction.cpp index cf8b7a5e3..eda5a4794 100644 --- a/src/instruction.cpp +++ b/src/instruction.cpp @@ -81,6 +81,7 @@ bool instruction::valid(instruction_ref start, bool check_order) const bool ret = self != i->outputs().end(); if(check_order) { + // check arguments for this instruction before this instruction ret = ret and (std::distance(start, i) < std::distance(start, *self)); } return ret; diff --git a/src/module.cpp b/src/module.cpp index 6b2a02826..d12d4ef6d 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -510,9 +510,8 @@ instruction_ref module::validate() const return std::find_if( impl->instructions.begin(), impl->instructions.end(), [&](const instruction& i) { auto inputs = i.inputs(); - bool check_order = std::all_of(inputs.begin(), inputs.end(), [&](auto in) { - return contains(impl->instructions, *in); - }); + bool check_order = std::all_of( + inputs.begin(), inputs.end(), [&](auto in) { return has_instruction(in); }); return !i.valid(impl->instructions.begin(), check_order); }); } diff --git a/test/module_test.cpp b/test/module_test.cpp index 8d338433c..a3f687522 100644 --- a/test/module_test.cpp +++ b/test/module_test.cpp @@ -312,4 +312,18 @@ TEST_CASE(module_without_bypass) EXPECT(found); } +TEST_CASE(multiple_module_dependency) +{ + // Test when an instruction from a submodule depends on previous module + migraphx::program p; + auto* mm = p.get_main_module(); + auto* sub = p.create_module("sub"); + auto l1 = mm->add_literal(migraphx::literal(3)); + // second same literal to make sure instruction_ref is being compared, rather than the + // instructions + sub->add_literal(migraphx::literal(3)); + sub->add_instruction(sum_op{}, l1, l1); + EXPECT((sub->validate() == sub->end())); +} + int main(int argc, const char* argv[]) { test::run(argc, argv); } -- GitLab From add6fb3be2908ca8f19fb47fc6513c92381e6e6a Mon Sep 17 00:00:00 2001 From: kahmed10 <15948690+kahmed10@users.noreply.github.com> Date: Fri, 17 Jun 2022 10:32:06 -0400 Subject: [PATCH 03/32] Create allocate op and replace_allocate pass (#1183) * add allocate op header * formatting * add replace_allocate pass * formatting * move output param to remove_allocate pass * formatting * fix bugs in replace_allocate pass * formatting * fix verify if tests * formatting * move if op logic * formatting * cleanup lowering * cleanup lowering * formatting * fix tidy * formatting * fix tidy * add cpu allocate check * formatting * change cpu allocate in pass * formatting * add some tests for replace_allocate pass * formatting * pass by ref * fix run_pass * formatting * update variable name for module * update dce to use contains() and fix tidy * formatting * update cppcheck * add if test * formatting * add if test * rename var to mod_output_names * formatting * remove conditional * update allocate op and tests * formatting * update replace_allocate tests * update create_output_names() and conditional in replace_allocate * formatting * remove extra variable in replace_allocate * update tools script for allocation_model Co-authored-by: Umang Yadav <29876643+umangyadav@users.noreply.github.com> Co-authored-by: Chris Austen Co-authored-by: Paul Fultz II --- src/CMakeLists.txt | 2 + src/dead_code_elimination.cpp | 6 +- src/include/migraphx/allocation_model.hpp | 17 ++ src/include/migraphx/op/allocate.hpp | 43 ++++ src/include/migraphx/replace_allocate.hpp | 23 +++ src/replace_allocate.cpp | 101 +++++++++ .../include/migraphx/cpu/allocation_model.hpp | 1 + src/targets/cpu/lowering.cpp | 25 +-- src/targets/cpu/target.cpp | 3 + .../include/migraphx/gpu/allocation_model.hpp | 1 + src/targets/gpu/lowering.cpp | 99 ++------- src/targets/gpu/target.cpp | 3 + test/gpu/adjust_allocation.cpp | 16 +- test/gpu/pack_int8_args.cpp | 5 +- test/replace_allocate.cpp | 195 ++++++++++++++++++ tools/include/allocation_model.hpp | 5 +- 16 files changed, 426 insertions(+), 119 deletions(-) create mode 100644 src/include/migraphx/op/allocate.hpp create mode 100644 src/include/migraphx/replace_allocate.hpp create mode 100644 src/replace_allocate.cpp mode change 100755 => 100644 src/targets/cpu/include/migraphx/cpu/allocation_model.hpp mode change 100755 => 100644 test/gpu/adjust_allocation.cpp create mode 100644 test/replace_allocate.cpp diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1b32e3d48..87c0b8807 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,6 +54,7 @@ add_library(migraphx reduce_dims.cpp register_op.cpp register_target.cpp + replace_allocate.cpp simplify_qdq.cpp rewrite_batchnorm.cpp rewrite_pooling.cpp @@ -80,6 +81,7 @@ register_migraphx_ops( acosh acos add + allocate argmax argmin asinh diff --git a/src/dead_code_elimination.cpp b/src/dead_code_elimination.cpp index 3505c7190..07d15e506 100644 --- a/src/dead_code_elimination.cpp +++ b/src/dead_code_elimination.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include namespace migraphx { @@ -24,9 +25,10 @@ void dead_code_elimination::apply(module& m) const // Skip the last instruction if(i == last) break; - // Skip instruction with empty shape as output unless its a builtin or undefined or identity + // Skip instruction with empty shape as output unless its a builtin, undefined, identity, or + // allocate if(i->get_shape().elements() == 0 and i->name().front() != '@' and - i->name() != "undefined" and i->name() != "identity") + not contains({"undefined", "identity", "allocate"}, i->name())) continue; assert(std::distance(m.begin(), i) <= std::distance(m.begin(), last)); std::unordered_set visited; diff --git a/src/include/migraphx/allocation_model.hpp b/src/include/migraphx/allocation_model.hpp index e5e0ee22f..af0b562c2 100644 --- a/src/include/migraphx/allocation_model.hpp +++ b/src/include/migraphx/allocation_model.hpp @@ -28,6 +28,8 @@ struct allocation_model operation allocate(const shape& s) const; /// Create a preallocated operator for the given shape operation preallocate(const shape& s, const std::string& id) const; + /// Check if outputs are to be inserted + bool needs_out_params() const; }; #else @@ -45,6 +47,8 @@ struct allocation_model operation allocate(const shape& s) const; // operation preallocate(const shape& s, std::string id) const; + // + bool needs_out_params() const; }; #else @@ -136,6 +140,12 @@ struct allocation_model return (*this).private_detail_te_get_handle().preallocate(s, std::move(id)); } + bool needs_out_params() const + { + assert((*this).private_detail_te_handle_mem_var); + return (*this).private_detail_te_get_handle().needs_out_params(); + } + friend bool is_shared(const allocation_model& private_detail_x, const allocation_model& private_detail_y) { @@ -154,6 +164,7 @@ struct allocation_model virtual std::string copy() const = 0; virtual operation allocate(const shape& s) const = 0; virtual operation preallocate(const shape& s, std::string id) const = 0; + virtual bool needs_out_params() const = 0; }; template @@ -200,6 +211,12 @@ struct allocation_model return private_detail_te_value.preallocate(s, std::move(id)); } + bool needs_out_params() const override + { + + return private_detail_te_value.needs_out_params(); + } + PrivateDetailTypeErasedT private_detail_te_value; }; diff --git a/src/include/migraphx/op/allocate.hpp b/src/include/migraphx/op/allocate.hpp new file mode 100644 index 000000000..fe7741a42 --- /dev/null +++ b/src/include/migraphx/op/allocate.hpp @@ -0,0 +1,43 @@ +#ifndef MIGRAPHX_GUARD_OPERATORS_ALLOCATE_HPP +#define MIGRAPHX_GUARD_OPERATORS_ALLOCATE_HPP + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { +namespace op { + +struct allocate +{ + shape s{}; + template + static auto reflect(Self& self, F f) + { + return pack(f(self.s, "shape")); + } + std::string name() const { return "allocate"; } + shape compute_shape(const std::vector& inputs) const + { + migraphx::check_shapes{inputs, *this}.has(0); + return s; + } + argument compute(const shape& output_shape, const std::vector&) const + { + return {output_shape}; + } +}; + +} // namespace op +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx + +#endif diff --git a/src/include/migraphx/replace_allocate.hpp b/src/include/migraphx/replace_allocate.hpp new file mode 100644 index 000000000..02096dc48 --- /dev/null +++ b/src/include/migraphx/replace_allocate.hpp @@ -0,0 +1,23 @@ +#ifndef MIGRAPHX_GUARD_RTGLIB_REPLACE_ALLOCATE_HPP +#define MIGRAPHX_GUARD_RTGLIB_REPLACE_ALLOCATE_HPP + +#include +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { + +struct module; + +struct replace_allocate +{ + allocation_model model; + bool offload_copy = false; + std::string name() const { return "replace_allocate"; } + void apply(module& m) const; +}; + +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx + +#endif diff --git a/src/replace_allocate.cpp b/src/replace_allocate.cpp new file mode 100644 index 000000000..d79a8d927 --- /dev/null +++ b/src/replace_allocate.cpp @@ -0,0 +1,101 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { + +std::unordered_map create_output_names(const module& mod) +{ + std::unordered_map mod_output_names{}; + auto last = std::prev(mod.end()); + if(last->name() == "@return") + { + const auto& prog_outputs = last->inputs(); + std::vector outputs_alias(prog_outputs.size()); + + std::transform(prog_outputs.begin(), + prog_outputs.end(), + outputs_alias.begin(), + [](const auto& i) { return instruction::get_output_alias(i); }); + + std::size_t index = 0; + for(auto ins : outputs_alias) + { + mod_output_names[ins] = mod.name() + ":#output_" + std::to_string(index++); + } + } + else + { + auto ins = instruction::get_output_alias(last); + mod_output_names[ins] = "output"; + } + return mod_output_names; +} + +void insert_submod_allocations(instruction_ref ins, module& mod, const allocation_model& model) +{ + std::vector inputs = ins->inputs(); + std::vector mod_args = ins->module_inputs(); + + std::map name_shapes; + for(const auto& smod : mod_args) + { + auto ps = smod->get_parameter_shapes(); + name_shapes.insert(ps.begin(), ps.end()); + } + + for(auto& pn : name_shapes) + { + const auto& s = pn.second; + instruction_ref output{}; + output = mod.insert_instruction(ins, model.allocate(s)); + inputs.push_back(output); + } + + mod.replace_instruction(ins, ins->get_operator(), inputs, mod_args); +} + +void replace_allocate::apply(module& m) const +{ + auto mod_output_names = create_output_names(m); + bool main_offload_copy = m.name() == "main" ? this->offload_copy : false; + for(auto ins : iterator_for(m)) + { + auto op = ins->get_operator(); + auto op_name = op.name(); + + // check if allocations from submodules need to be inserted + // for now, only the "if" operator is affected + if(op_name == "if") + { + insert_submod_allocations(ins, m, model); + continue; + } + if(op_name != "allocate") + continue; + + auto s = ins->get_shape(); + + if(not main_offload_copy and model.needs_out_params() and contains(mod_output_names, ins)) + { + + auto out_param = m.add_parameter(mod_output_names[ins], s); + m.replace_instruction(ins, out_param); + continue; + } + + m.replace_instruction( + ins, + m.insert_instruction(ins, + make_op(model.name(), migraphx::value{{"shape", to_value(s)}}))); + } +} + +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx diff --git a/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp b/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp old mode 100755 new mode 100644 index 3cbc82be9..4a302d002 --- a/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp +++ b/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp @@ -15,6 +15,7 @@ struct cpu_allocation_model std::string copy() const; operation allocate(const shape& s) const; operation preallocate(const shape& s, const std::string& id) const; + bool needs_out_params() const { return false; } }; } // namespace cpu diff --git a/src/targets/cpu/lowering.cpp b/src/targets/cpu/lowering.cpp index 17743bdd4..6fd2d28b7 100755 --- a/src/targets/cpu/lowering.cpp +++ b/src/targets/cpu/lowering.cpp @@ -291,30 +291,8 @@ struct cpu_apply { module* modl; std::unordered_map> apply_map{}; - std::unordered_map prog_output_names{}; instruction_ref last{}; - void create_output_names() - { - this->last = instruction::get_output_alias(std::prev(modl->end())); - if(this->last->name() == "@return") - { - const auto& prog_outputs = last->inputs(); - std::vector outputs_alias(prog_outputs.size()); - - std::transform(prog_outputs.begin(), - prog_outputs.end(), - outputs_alias.begin(), - [](const auto& i) { return instruction::get_output_alias(i); }); - - std::size_t index = 0; - for(auto ins : outputs_alias) - { - prog_output_names[ins] = modl->name() + ":#output_" + std::to_string(index++); - } - } - } - void extend_op(const std::string& op_name, const std::string& cpu_name, bool allocate = true) { apply_map.emplace(op_name, [=](instruction_ref ins) { @@ -360,7 +338,6 @@ struct cpu_apply void init() { - create_output_names(); extend_dnnl_algos("dnnl::binary", { {"add", "binary_add"}, @@ -490,7 +467,7 @@ struct cpu_apply instruction_ref insert_allocation(instruction_ref ins, const shape& s) const { - return modl->insert_instruction(ins, make_op("cpu::allocate", {{"shape", to_value(s)}})); + return modl->insert_instruction(ins, make_op("allocate", {{"shape", to_value(s)}})); } }; diff --git a/src/targets/cpu/target.cpp b/src/targets/cpu/target.cpp index feb42efcd..36d19df76 100755 --- a/src/targets/cpu/target.cpp +++ b/src/targets/cpu/target.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -70,6 +71,8 @@ std::vector target::get_passes(migraphx::context& gctx, const compile_opti lowering{}, eliminate_contiguous{"dnnl::reorder"}, dead_code_elimination{}, + replace_allocate{cpu_allocation_model{}}, + dead_code_elimination{}, adjust_allocation{cpu_allocation_model{}}, dead_code_elimination{}, fuse_ops{&ctx}, diff --git a/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp b/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp index cbb31be0b..e9e1e3c55 100644 --- a/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp +++ b/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp @@ -16,6 +16,7 @@ struct gpu_allocation_model std::string copy() const; operation allocate(const shape& s) const; operation preallocate(const shape& s, const std::string& id) const; + bool needs_out_params() const { return true; } }; } // namespace gpu diff --git a/src/targets/gpu/lowering.cpp b/src/targets/gpu/lowering.cpp index 637185191..cb3008254 100644 --- a/src/targets/gpu/lowering.cpp +++ b/src/targets/gpu/lowering.cpp @@ -58,7 +58,6 @@ struct miopen_apply const lowering* pass = nullptr; std::unordered_map> apply_map{}; instruction_ref last{}; - std::unordered_map prog_output_names{}; bool offload_copy = false; bool int8_x4_format = true; bool compute_fp32 = false; @@ -77,27 +76,6 @@ struct miopen_apply (void)i; } - void create_output_names() - { - this->last = instruction::get_output_alias(std::prev(mod->end())); - if(this->last->name() == "@return") - { - const auto& prog_outputs = last->inputs(); - std::vector outputs_alias(prog_outputs.size()); - - std::transform(prog_outputs.begin(), - prog_outputs.end(), - outputs_alias.begin(), - [](const auto& i) { return instruction::get_output_alias(i); }); - - std::size_t index = 0; - for(auto ins : outputs_alias) - { - prog_output_names[ins] = mod->name() + ":#output_" + std::to_string(index++); - } - } - } - const std::unordered_set& get_rocblas_fp32_archs() { static std::unordered_set supported_archs{"gfx908", "gfx90a"}; @@ -120,7 +98,6 @@ struct miopen_apply #endif offload_copy = (mod->name() == "main") ? pass->offload_copy : false; - create_output_names(); add_generic_op("acos"); add_generic_op("acosh"); @@ -201,7 +178,7 @@ struct miopen_apply add_quant_convolution_op(); } - void copy_params() + void copy_params() const { if(not offload_copy) return; @@ -261,7 +238,7 @@ struct miopen_apply copy_params(); } - instruction_ref insert_precompile_op(instruction_ref ins) + instruction_ref insert_precompile_op(instruction_ref ins) const { auto output = insert_allocation(ins, ins->get_shape()); std::vector refs = ins->inputs(); @@ -274,28 +251,9 @@ struct miopen_apply ins->module_inputs()); } - instruction_ref insert_allocation(instruction_ref ins, const shape& s, std::string tag = "") + instruction_ref insert_allocation(instruction_ref ins, const shape& s) const { - // Instruction's output is an input of the ret instruction - if(offload_copy) - { - auto result = mod->insert_instruction( - ins, make_op("hip::allocate", {{"shape", to_value(s)}, {"tag", std::move(tag)}})); - return result; - } - - auto ins_alias = instruction::get_output_alias(ins); - if(last->name() == "@return" and tag.empty() and prog_output_names.count(ins_alias) > 0) - { - return mod->add_parameter(prog_output_names[ins_alias], s); - } - else if(ins == last and tag.empty()) - { - return mod->add_parameter("output", s); - } - - return mod->insert_instruction( - ins, make_op("hip::allocate", {{"shape", to_value(s)}, {"tag", std::move(tag)}})); + return mod->insert_instruction(ins, make_op("allocate", {{"shape", to_value(s)}})); } void add_convolution_op() @@ -306,7 +264,7 @@ struct miopen_apply auto conv = miopen_convolution{op, make_conv(op)}; auto ws = conv.find(get_context(), ins->get_shape(), to_shapes(ins->inputs())); - auto workspace = insert_allocation(ins, ws, "workspace"); + auto workspace = insert_allocation(ins, ws); auto output = insert_allocation(ins, ins->get_shape()); return mod->replace_instruction( @@ -322,7 +280,7 @@ struct miopen_apply auto conv = miopen_deconvolution{op, make_deconv(op)}; auto ws = conv.compile(get_context(), ins->get_shape(), to_shapes(ins->inputs())); - auto workspace = insert_allocation(ins, ws, "workspace"); + auto workspace = insert_allocation(ins, ws); auto output = insert_allocation(ins, ins->get_shape()); return mod->replace_instruction( @@ -383,7 +341,7 @@ struct miopen_apply } auto args = ins->inputs(); - auto workspace = insert_allocation(ins, ws, "workspace"); + auto workspace = insert_allocation(ins, ws); auto output = insert_allocation(ins, ins->get_shape()); return mod->replace_instruction(ins, conv, args[0], args[1], workspace, output); @@ -480,33 +438,7 @@ struct miopen_apply auto sync_cond = mod->insert_instruction(ins, make_op("hip::sync_stream"), cpu_cond); inputs.front() = sync_cond; - std::vector mod_args = ins->module_inputs(); - std::map name_shapes; - for(const auto& smod : mod_args) - { - auto ps = smod->get_parameter_shapes(); - name_shapes.insert(ps.begin(), ps.end()); - } - - bool ins_output_allocated = false; - for(auto& pn : name_shapes) - { - const auto& s = pn.second; - instruction_ref output{}; - if(s == ins->get_shape() and not ins_output_allocated) - { - output = insert_allocation(ins, s); - ins_output_allocated = true; - } - else - { - output = mod->insert_instruction( - ins, make_op("hip::allocate", {{"shape", to_value(s)}})); - } - inputs.push_back(output); - } - - return mod->replace_instruction(ins, ins->get_operator(), inputs, mod_args); + return mod->replace_instruction(ins, ins->get_operator(), inputs, ins->module_inputs()); }); } @@ -525,20 +457,17 @@ struct miopen_apply inputs.at(0) = synced_max_iter; inputs.at(1) = cpu_cond; auto copy_inputs = inputs; - std::transform( - copy_inputs.begin(), copy_inputs.end(), std::back_inserter(inputs), [&](auto in) { - return mod->insert_instruction( - ins, make_op("hip::allocate", {{"shape", to_value(in->get_shape())}})); - }); + std::transform(copy_inputs.begin(), + copy_inputs.end(), + std::back_inserter(inputs), + [&](auto in) { return insert_allocation(ins, in->get_shape()); }); auto mod_args = ins->module_inputs(); auto output = insert_allocation(ins, ins->get_shape()); const auto* sub_mod = mod_args.front(); - auto cond_out = mod->insert_instruction( - ins, - make_op("hip::allocate", - {{"shape", to_value(sub_mod->get_output_shapes().front())}})); + auto cond_out = insert_allocation(ins, sub_mod->get_output_shapes().front()); + // add cond and mod outputs to the argument list inputs.push_back(cond_out); inputs.push_back(output); diff --git a/src/targets/gpu/target.cpp b/src/targets/gpu/target.cpp index 3706a9526..1d3a6b549 100644 --- a/src/targets/gpu/target.cpp +++ b/src/targets/gpu/target.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -109,6 +110,8 @@ std::vector target::get_passes(migraphx::context& gctx, const compile_opti lowering{&ctx, options.offload_copy}, eliminate_contiguous{"gpu::contiguous"}, dead_code_elimination{}, + replace_allocate{gpu_allocation_model{}, options.offload_copy}, + dead_code_elimination{}, eliminate_concat{concat_gpu_optimization{}}, dead_code_elimination{}, pack_int8_args{}, diff --git a/test/gpu/adjust_allocation.cpp b/test/gpu/adjust_allocation.cpp old mode 100755 new mode 100644 index 3b731a059..46d27933b --- a/test/gpu/adjust_allocation.cpp +++ b/test/gpu/adjust_allocation.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -20,12 +21,15 @@ void run_lowering(migraphx::program& p, bool offload_copy = false) { auto ctx = migraphx::gpu::context{}; - migraphx::run_passes(*p.get_main_module(), - {migraphx::auto_contiguous{}, - migraphx::gpu::lowering{&ctx, offload_copy}, - migraphx::dead_code_elimination{}, - migraphx::eliminate_contiguous{"gpu::contiguous"}, - migraphx::dead_code_elimination{}}); + migraphx::run_passes( + *p.get_main_module(), + {migraphx::auto_contiguous{}, + migraphx::gpu::lowering{&ctx, offload_copy}, + migraphx::dead_code_elimination{}, + migraphx::eliminate_contiguous{"gpu::contiguous"}, + migraphx::dead_code_elimination{}, + migraphx::replace_allocate{migraphx::gpu::gpu_allocation_model{}, offload_copy}, + migraphx::dead_code_elimination{}}); } TEST_CASE(tanh_shape) diff --git a/test/gpu/pack_int8_args.cpp b/test/gpu/pack_int8_args.cpp index 39b4c405d..585d6ca3b 100644 --- a/test/gpu/pack_int8_args.cpp +++ b/test/gpu/pack_int8_args.cpp @@ -2,13 +2,14 @@ #include #include #include +#include #include #include #include #include #include #include -#include +#include #include #include #include @@ -22,6 +23,8 @@ void run_passes(migraphx::module& m) {migraphx::auto_contiguous{}, migraphx::gpu::lowering{&ctx, false}, migraphx::dead_code_elimination{}, + migraphx::replace_allocate{migraphx::gpu::gpu_allocation_model{}}, + migraphx::dead_code_elimination{}, migraphx::gpu::pack_int8_args{}, migraphx::dead_code_elimination{}}); } diff --git a/test/replace_allocate.cpp b/test/replace_allocate.cpp new file mode 100644 index 000000000..a3fd8ffe0 --- /dev/null +++ b/test/replace_allocate.cpp @@ -0,0 +1,195 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +struct allocate_no_out : migraphx::auto_register_op +{ + migraphx::shape s{}; + + template + static auto reflect(Self& self, F f) + { + return migraphx::pack(f(self.s, "shape")); + } + + std::string name() const { return "allocate_no_out"; } + migraphx::shape compute_shape(const std::vector& inputs) const + { + migraphx::check_shapes{inputs, *this}.has(0); + return s; + } + migraphx::argument compute(migraphx::context&, + const migraphx::shape& output_shape, + const std::vector&) const + { + return {output_shape}; + } +}; + +struct allocate_with_out : migraphx::auto_register_op +{ + migraphx::shape s{}; + + template + static auto reflect(Self& self, F f) + { + return migraphx::pack(f(self.s, "shape")); + } + + std::string name() const { return "allocate_with_out"; } + migraphx::shape compute_shape(const std::vector& inputs) const + { + migraphx::check_shapes{inputs, *this}.has(0); + return s; + } + migraphx::argument compute(migraphx::context&, + const migraphx::shape& output_shape, + const std::vector&) const + { + return {output_shape}; + } +}; + +// allocation model that has no out params +struct allocation_no_out_model +{ + std::string name() const { return "allocate_no_out"; } + migraphx::operation allocate(const migraphx::shape& s) const + { + return migraphx::make_op(name(), {{"shape", to_value(s)}}); + } + migraphx::operation preallocate(const migraphx::shape&, const std::string&) const { return {}; } + std::string copy() const { return {}; } + bool needs_out_params() const { return false; } +}; + +// allocation model with out params +struct allocation_with_out_model +{ + std::string name() const { return "allocate_with_out"; } + migraphx::operation allocate(const migraphx::shape& s) const + { + return migraphx::make_op(name(), {{"shape", to_value(s)}}); + } + migraphx::operation preallocate(const migraphx::shape&, const std::string&) const { return {}; } + std::string copy() const { return {}; } + bool needs_out_params() const { return true; } +}; + +void run_pass(migraphx::module& m, migraphx::allocation_model model, bool offload_copy = false) +{ + migraphx::run_passes(m, + {migraphx::replace_allocate{std::move(model), offload_copy}, + migraphx::dead_code_elimination{}}); +} + +void run_pass(migraphx::program& p, migraphx::allocation_model model, bool offload_copy = false) +{ + migraphx::run_passes(p, + {migraphx::replace_allocate{std::move(model), offload_copy}, + migraphx::dead_code_elimination{}}); +} + +migraphx::module create_simple_program() +{ + migraphx::module m; + migraphx::shape s{migraphx::shape::float_type, {5}}; + auto x = m.add_parameter("x", s); + auto y = m.add_parameter("y", s); + auto alloc = + m.add_instruction(migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}})); + m.add_instruction(pass_op{}, alloc, x, y); + return m; +} + +TEST_CASE(allocate_no_out) +{ + migraphx::module m = create_simple_program(); + run_pass(m, allocation_no_out_model{}); + + EXPECT(std::any_of(m.begin(), m.end(), [](const migraphx::instruction& ins) { + return migraphx::contains(ins.name(), "allocate_no_out"); + })); +} + +TEST_CASE(allocate_with_out_param) +{ + migraphx::module m = create_simple_program(); + run_pass(m, allocation_with_out_model{}); + + EXPECT(std::none_of(m.begin(), m.end(), [](const migraphx::instruction& ins) { + return migraphx::contains(ins.name(), "allocate"); + })); +} + +TEST_CASE(allocate_with_out_return) +{ + migraphx::module m = create_simple_program(); + m.add_return({std::prev(m.end())}); + run_pass(m, allocation_with_out_model{}); + + EXPECT(std::none_of(m.begin(), m.end(), [](const migraphx::instruction& ins) { + return migraphx::contains(ins.name(), "allocate"); + })); +} + +TEST_CASE(allocate_with_out_no_params) +{ + migraphx::module m; + migraphx::shape s{migraphx::shape::float_type, {5}}; + auto x = m.add_parameter("x", s); + auto y = m.add_parameter("y", s); + auto z = m.add_parameter("z", s); + auto alloc = + m.add_instruction(migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}})); + auto pass1 = m.add_instruction(pass_op{}, alloc, x, y); + auto alloc2 = + m.add_instruction(migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}})); + m.add_instruction(pass_op{}, alloc2, z, pass1); + run_pass(m, allocation_with_out_model{}); + + EXPECT(std::any_of(m.begin(), m.end(), [](const migraphx::instruction& ins) { + return migraphx::contains(ins.name(), "allocate_with_out"); + })); +} + +TEST_CASE(if_allocate) +{ + migraphx::program p; + auto* mm = p.get_main_module(); + migraphx::shape cond_s{migraphx::shape::bool_type}; + auto cond = mm->add_parameter("cond", cond_s); + migraphx::shape s{migraphx::shape::float_type, {5}}; + auto x = mm->add_parameter("x", s); + auto y = mm->add_parameter("y", s); + + auto* then_mod = p.create_module("If_0_if"); + auto alloc = then_mod->add_instruction( + migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}})); + auto a1 = then_mod->add_instruction(pass_op{}, alloc, x); + then_mod->add_return({a1}); + + auto* else_mod = p.create_module("If_0_else"); + auto alloc1 = else_mod->add_instruction( + migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}})); + auto a2 = else_mod->add_instruction(pass_op{}, alloc1, y); + else_mod->add_return({a2}); + + mm->add_instruction(migraphx::make_op("if"), {cond}, {then_mod, else_mod}); + + run_pass(p, allocation_with_out_model{}); + EXPECT(std::any_of(mm->begin(), mm->end(), [](const migraphx::instruction& ins) { + return migraphx::contains(ins.name(), "allocate_with_out"); + })); +} + +int main(int argc, const char* argv[]) { test::run(argc, argv); } diff --git a/tools/include/allocation_model.hpp b/tools/include/allocation_model.hpp index daeacf4fe..a0973f188 100755 --- a/tools/include/allocation_model.hpp +++ b/tools/include/allocation_model.hpp @@ -28,6 +28,8 @@ struct allocation_model operation allocate(const shape& s) const; /// Create a preallocated operator for the given shape operation preallocate(const shape& s, const std::string& id) const; + /// Check if outputs are to be inserted + bool needs_out_params() const; }; #else @@ -37,7 +39,8 @@ interface('allocation_model', virtual('name', returns='std::string', const=True), virtual('copy', returns='std::string', const=True), virtual('allocate', s='const shape&', returns='operation', const=True), - virtual('preallocate', s='const shape&', id='std::string', returns='operation', const=True) + virtual('preallocate', s='const shape&', id='std::string', returns='operation', const=True), + virtual('needs_out_params', returns='bool', const=True) ) %> -- GitLab From 421a562133cf90357b101f4b83feed0cb3a07e3d Mon Sep 17 00:00:00 2001 From: Ted Themistokleous <107195283+TedThemistokleous@users.noreply.github.com> Date: Fri, 17 Jun 2022 12:01:52 -0400 Subject: [PATCH 04/32] Update tf_parser to have add_common_op() for parse_relu6 (#1241) * [#935] Update tf_parser to have add_common_op() for parse_relu6 Similar to that of the onnx_parser.cpp add a add_common_op template and functionality to support clip based operations. This is done so clip operations can be guarenteed to have the same dimensions. * fixup! [#935] Update tf_parser to have add_common_op() for parse_relu6 * fixup! fixup! [#935] Update tf_parser to have add_common_op() for parse_relu6 * fixup! fixup! fixup! [#935] Update tf_parser to have add_common_op() for parse_relu6 * fixup! fixup! fixup! fixup! [#935] Update tf_parser to have add_common_op() for parse_relu6 * Formatting * fixup! Formatting Co-authored-by: Umang Yadav <29876643+umangyadav@users.noreply.github.com> Co-authored-by: Paul Fultz II --- src/tf/include/migraphx/tf/tf_parser.hpp | 10 ++++++++++ src/tf/parse_relu6.cpp | 11 +++-------- src/tf/tf_parser.cpp | 8 +++++++- test/tf/gen_tf_pb.py | 10 ++++++++++ test/tf/relu6_mismatch_test.pb | 8 ++++++++ test/tf/tf_test.cpp | 25 ++++++++++++++++++++++++ 6 files changed, 63 insertions(+), 9 deletions(-) create mode 100644 test/tf/relu6_mismatch_test.pb diff --git a/src/tf/include/migraphx/tf/tf_parser.hpp b/src/tf/include/migraphx/tf/tf_parser.hpp index b199053dc..d1324f2f7 100644 --- a/src/tf/include/migraphx/tf/tf_parser.hpp +++ b/src/tf/include/migraphx/tf/tf_parser.hpp @@ -33,6 +33,16 @@ struct tf_parser instruction_ref add_broadcastable_binary_op(const std::string& op_name, instruction_ref arg0, instruction_ref arg1) const; + + instruction_ref add_common_op(const std::string& op_name, + std::vector inputs) const; + + template + instruction_ref add_common_op(const std::string& op_name, Ts... xs) const + { + return add_common_op(op_name, {xs...}); + } + instruction_ref add_instruction(const operation& op, const std::vector& args) const; diff --git a/src/tf/parse_relu6.cpp b/src/tf/parse_relu6.cpp index 05c9f2237..540386037 100644 --- a/src/tf/parse_relu6.cpp +++ b/src/tf/parse_relu6.cpp @@ -18,15 +18,10 @@ struct parse_relu6 : op_parser const tf_parser::node_info& info, std::vector args) const { - auto input_lens = args[0]->get_shape().lens(); - auto min_val = info.add_literal(0.0f); - auto max_val = info.add_literal(6.0f); + auto min_val = info.add_literal(0.0f); + auto max_val = info.add_literal(6.0f); - min_val = - info.add_instruction(make_op("multibroadcast", {{"out_lens", input_lens}}), min_val); - max_val = - info.add_instruction(make_op("multibroadcast", {{"out_lens", input_lens}}), max_val); - return info.add_instruction(make_op("clip"), args.front(), min_val, max_val); + return info.add_common_op("clip", args[0], min_val, max_val); } }; diff --git a/src/tf/tf_parser.cpp b/src/tf/tf_parser.cpp index 4ec8588cf..d8ffae2ea 100644 --- a/src/tf/tf_parser.cpp +++ b/src/tf/tf_parser.cpp @@ -79,7 +79,13 @@ instruction_ref tf_parser::node_info::add_broadcastable_binary_op(const std::str instruction_ref arg0, instruction_ref arg1) const { - return add_common_op(*mm, make_op(op_name), {arg0, arg1}); + return this->add_common_op(op_name, arg0, arg1); +} + +instruction_ref tf_parser::node_info::add_common_op(const std::string& op_name, + std::vector inputs) const +{ + return migraphx::add_common_op(*mm, make_op(op_name), std::move(inputs)); } int64_t tf_parser::parse_axis(const int64_t dim, const size_t num_dims) const diff --git a/test/tf/gen_tf_pb.py b/test/tf/gen_tf_pb.py index 1dae5fc18..b9fae1ed1 100644 --- a/test/tf/gen_tf_pb.py +++ b/test/tf/gen_tf_pb.py @@ -471,6 +471,15 @@ def relu6_test(g1): tf.nn.relu6(g1_input, 'relu6') +@tf_test +def relu6_mismatch_test(g1): + with g1.as_default(): + g1_input = tf.compat.v1.placeholder(tf.float16, + shape=(1, 3, 13, 37), + name='0') + tf.nn.relu6(g1_input, 'relu6') + + @tf_test def reshape_test(g1): with g1.as_default(): @@ -676,6 +685,7 @@ if __name__ == '__main__': pow_test() relu_test() relu6_test() + relu6_mismatch_test() reshape_test() rsqrt_test() shape_test() diff --git a/test/tf/relu6_mismatch_test.pb b/test/tf/relu6_mismatch_test.pb new file mode 100644 index 000000000..64d952519 --- /dev/null +++ b/test/tf/relu6_mismatch_test.pb @@ -0,0 +1,8 @@ + +: +0 Placeholder* +dtype0* +shape: % + +relu6Relu60* +T0"‚ \ No newline at end of file diff --git a/test/tf/tf_test.cpp b/test/tf/tf_test.cpp index 5211166be..1fd9198ec 100644 --- a/test/tf/tf_test.cpp +++ b/test/tf/tf_test.cpp @@ -706,6 +706,31 @@ TEST_CASE(relu6_test) EXPECT(p == prog); } +TEST_CASE(relu6_mismatch_test) +{ + migraphx::program p; + + auto* mm = p.get_main_module(); + std::vector input_lens{1, 3, 13, 37}; + auto l0 = mm->add_parameter("0", migraphx::shape{migraphx::shape::half_type, input_lens}); + auto min_val = mm->add_literal(0.0f); + auto max_val = mm->add_literal(6.0f); + + auto l0_convert = mm->add_instruction( + migraphx::make_op("convert", {{"target_type", migraphx::shape::float_type}}), l0); + + min_val = mm->add_instruction(migraphx::make_op("multibroadcast", {{"out_lens", input_lens}}), + min_val); + max_val = mm->add_instruction(migraphx::make_op("multibroadcast", {{"out_lens", input_lens}}), + max_val); + + mm->add_instruction(migraphx::make_op("clip"), l0_convert, min_val, max_val); + + auto prog = optimize_tf("relu6_mismatch_test.pb", false); + + EXPECT(p == prog); +} + TEST_CASE(reshape_test) { migraphx::program p; -- GitLab From c99be32c013a21c41f6ad31154fc12c03eac1124 Mon Sep 17 00:00:00 2001 From: Umang Yadav <29876643+umangyadav@users.noreply.github.com> Date: Fri, 17 Jun 2022 16:15:34 -0400 Subject: [PATCH 05/32] Update lowering of Dot operator (#1247) * remove code for allocation of C param in dot lowering * formatting Co-authored-by: Paul Fultz II --- src/targets/gpu/lowering.cpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/src/targets/gpu/lowering.cpp b/src/targets/gpu/lowering.cpp index cb3008254..2e9d1f781 100644 --- a/src/targets/gpu/lowering.cpp +++ b/src/targets/gpu/lowering.cpp @@ -293,27 +293,9 @@ struct miopen_apply { apply_map.emplace(name, [=](instruction_ref ins) { std::vector refs = ins->inputs(); - if(refs.size() == 2) - { - auto output = insert_allocation(ins, ins->get_shape()); - refs.push_back(output); - } - else - { - auto c_alias = instruction::get_output_alias(refs.back()); - if(ins == last or refs.back()->outputs().size() > 1 or c_alias->inputs().empty()) - { - auto output = insert_allocation(ins, ins->get_shape()); - auto copy_out = - mod->insert_instruction(ins, make_op("hip::copy"), refs.back(), output); - refs.back() = copy_out; - refs.push_back(copy_out); - } - else - { - refs.push_back(refs.back()); - } - } + assert(refs.size() == 2); + auto output = insert_allocation(ins, ins->get_shape()); + refs.push_back(output); return mod->replace_instruction( ins, rocblas_gemm{Op{}, 1, 0, int8_x4_format, compute_fp32}, refs); }); -- GitLab From c0398dedc045ba70a69b952856b6bce996688588 Mon Sep 17 00:00:00 2001 From: Zhuoran Yin Date: Mon, 20 Jun 2022 16:05:38 -0500 Subject: [PATCH 06/32] Fixing misspelled macro to enable MIOpen hidden find mode API (#1250) * Fixing misspelled macro Co-authored-by: Paul Fultz II --- src/targets/gpu/include/migraphx/gpu/miopen.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/targets/gpu/include/migraphx/gpu/miopen.hpp b/src/targets/gpu/include/migraphx/gpu/miopen.hpp index e667424bc..e505ca5b3 100644 --- a/src/targets/gpu/include/migraphx/gpu/miopen.hpp +++ b/src/targets/gpu/include/migraphx/gpu/miopen.hpp @@ -11,9 +11,10 @@ #include -#ifdef HAS_FIND_MODE_API -extern "C" miopenStatus_t miopenHiddenSetConvolutionFindMode(miopenConvolutionDescriptor_t convDesc, - int findMode); +#ifdef MIGRAPHX_HAS_FIND_MODE_API +extern "C" miopenStatus_t +miopenHiddenSetConvolutionFindMode(miopenConvolutionDescriptor_t convDesc, // NOLINT + int findMode); // NOLINT #endif namespace migraphx { @@ -104,7 +105,7 @@ inline convolution_descriptor make_conv(const T& op) c.get(), padding.size(), padding.data(), stride.data(), dilation.data(), c_mode); if(op.group > 1) miopenSetConvolutionGroupCount(c.get(), op.group); -#ifdef HAS_FIND_MODE_API +#ifdef MIGRAPHX_HAS_FIND_MODE_API miopenHiddenSetConvolutionFindMode(c.get(), 1); // Normal mode #endif return c; -- GitLab From e44cecbc67d53dd62ef575eebd81d61dc866b8b3 Mon Sep 17 00:00:00 2001 From: Ted Themistokleous <107195283+TedThemistokleous@users.noreply.github.com> Date: Wed, 22 Jun 2022 14:32:23 -0400 Subject: [PATCH 07/32] Update license files (#1248) Updated each source file in the repo with the existing license. --- CMakeLists.txt | 23 ++ LICENSE | 7 +- dev-requirements.txt | 23 ++ doc/CMakeLists.txt | 23 ++ doc/requirements.txt | 23 ++ doc/src/conf.py | 23 ++ .../cpp_parse_load_save/CMakeLists.txt | 23 ++ .../cpp_parse_load_save/parse_load_save.cpp | 23 ++ .../Untitled-checkpoint.ipynb | 6 - .../example-checkpoint.ipynb | 28 ++ .../export_frozen_graph_tf2/example.ipynb | 28 ++ .../nlp/python_bert_squad/BERT-Squad.ipynb | 28 ++ .../python_bert_squad/bert-squad-migraphx.py | 23 ++ .../requirements_bertsquad.txt | 23 ++ examples/vision/cpp_mnist/CMakeLists.txt | 23 ++ examples/vision/cpp_mnist/mnist_inference.cpp | 23 ++ .../python_3dunet/3dunet_inference.ipynb | 28 ++ .../python_3dunet/visualization_utils.py | 23 ++ .../vision/python_nfnet/nfnet_inference.ipynb | 28 ++ .../vision/python_nfnet/ort_comparison.py | 24 ++ .../python_nfnet/requirements_nfnet.txt | 23 ++ .../python_resnet50/resnet50_inference.ipynb | 28 ++ .../Run_Super_Resolution_Model.ipynb | 28 ++ .../python_super_resolution/requirements.txt | 23 ++ examples/vision/python_unet/requirements.txt | 23 ++ .../vision/python_unet/unet_inference.ipynb | 28 ++ .../vision/python_yolov4/image_processing.py | 23 ++ .../python_yolov4/yolov4_inference.ipynb | 28 ++ requirements.txt | 23 ++ src/CMakeLists.txt | 23 ++ src/adjust_allocation.cpp | 23 ++ src/analyze_streams.cpp | 23 ++ src/api/CMakeLists.txt | 23 ++ src/api/api.cpp | 23 ++ src/api/include/migraphx/migraphx.h | 23 ++ src/api/include/migraphx/migraphx.hpp | 23 ++ src/api/migraphx.py | 23 ++ src/apply_alpha_beta.cpp | 23 ++ src/argument.cpp | 23 ++ src/auto_contiguous.cpp | 23 ++ src/common.cpp | 23 ++ src/compile_src.cpp | 23 ++ src/convert_to_json.cpp | 23 ++ src/cpp_generator.cpp | 23 ++ src/dead_code_elimination.cpp | 23 ++ src/dom_info.cpp | 23 ++ src/driver/CMakeLists.txt | 23 ++ src/driver/alexnet.cpp | 23 ++ src/driver/argument_parser.hpp | 23 ++ src/driver/command.hpp | 23 ++ src/driver/inceptionv3.cpp | 23 ++ src/driver/main.cpp | 23 ++ src/driver/marker_roctx.cpp | 23 ++ src/driver/marker_roctx.hpp | 23 ++ src/driver/models.hpp | 23 ++ src/driver/perf.cpp | 23 ++ src/driver/perf.hpp | 23 ++ src/driver/precision.hpp | 23 ++ src/driver/resnet50.cpp | 23 ++ src/driver/verify.cpp | 23 ++ src/driver/verify.hpp | 23 ++ src/dynamic_loader.cpp | 23 ++ src/eliminate_allocation.cpp | 23 ++ src/eliminate_common_subexpression.cpp | 23 ++ src/eliminate_concat.cpp | 23 ++ src/eliminate_contiguous.cpp | 23 ++ src/eliminate_data_type.cpp | 23 ++ src/eliminate_identity.cpp | 23 ++ src/eliminate_pad.cpp | 23 ++ src/env.cpp | 23 ++ src/file_buffer.cpp | 23 ++ src/fuse_pointwise.cpp | 23 ++ src/generate.cpp | 23 ++ src/include/migraphx/adjust_allocation.hpp | 23 ++ src/include/migraphx/algorithm.hpp | 23 ++ src/include/migraphx/allocation_model.hpp | 23 ++ src/include/migraphx/analyze_streams.hpp | 23 ++ src/include/migraphx/any_ptr.hpp | 23 ++ src/include/migraphx/apply_alpha_beta.hpp | 23 ++ src/include/migraphx/argument.hpp | 23 ++ src/include/migraphx/array.hpp | 23 ++ src/include/migraphx/assert.hpp | 23 ++ src/include/migraphx/auto_any_cast.hpp | 23 ++ src/include/migraphx/auto_contiguous.hpp | 23 ++ src/include/migraphx/auto_register.hpp | 23 ++ src/include/migraphx/builtin.hpp | 23 ++ src/include/migraphx/check_context.hpp | 23 ++ src/include/migraphx/check_shapes.hpp | 23 ++ src/include/migraphx/clamp.hpp | 23 ++ src/include/migraphx/cloneable.hpp | 23 ++ src/include/migraphx/common.hpp | 23 ++ src/include/migraphx/compile_options.hpp | 23 ++ src/include/migraphx/compile_src.hpp | 23 ++ src/include/migraphx/concat_opt.hpp | 23 ++ src/include/migraphx/config.hpp | 23 ++ src/include/migraphx/context.hpp | 23 ++ src/include/migraphx/convert_to_json.hpp | 23 ++ src/include/migraphx/cpp_generator.hpp | 23 ++ .../migraphx/dead_code_elimination.hpp | 23 ++ src/include/migraphx/dfor.hpp | 23 ++ src/include/migraphx/dom_info.hpp | 23 ++ src/include/migraphx/dynamic_loader.hpp | 23 ++ src/include/migraphx/eliminate_allocation.hpp | 23 ++ .../eliminate_common_subexpression.hpp | 23 ++ src/include/migraphx/eliminate_concat.hpp | 23 ++ src/include/migraphx/eliminate_contiguous.hpp | 23 ++ src/include/migraphx/eliminate_data_type.hpp | 23 ++ src/include/migraphx/eliminate_identity.hpp | 23 ++ src/include/migraphx/eliminate_pad.hpp | 23 ++ src/include/migraphx/env.hpp | 23 ++ src/include/migraphx/erase.hpp | 23 ++ src/include/migraphx/errors.hpp | 23 ++ src/include/migraphx/fallthrough.hpp | 23 ++ src/include/migraphx/file_buffer.hpp | 23 ++ src/include/migraphx/filesystem.hpp | 23 ++ src/include/migraphx/float_equal.hpp | 23 ++ src/include/migraphx/functional.hpp | 23 ++ src/include/migraphx/fuse_pointwise.hpp | 23 ++ src/include/migraphx/gemm.hpp | 23 ++ src/include/migraphx/generate.hpp | 23 ++ src/include/migraphx/half.hpp | 29 +- src/include/migraphx/inline_module.hpp | 23 ++ src/include/migraphx/insert_pad.hpp | 23 ++ src/include/migraphx/instruction.hpp | 23 ++ src/include/migraphx/instruction_ref.hpp | 23 ++ src/include/migraphx/int_divide.hpp | 23 ++ src/include/migraphx/iota_iterator.hpp | 23 ++ src/include/migraphx/iterator.hpp | 23 ++ src/include/migraphx/iterator_for.hpp | 23 ++ src/include/migraphx/json.hpp | 23 ++ src/include/migraphx/lifetime.hpp | 23 ++ src/include/migraphx/literal.hpp | 23 ++ src/include/migraphx/load_save.hpp | 23 ++ src/include/migraphx/make_op.hpp | 23 ++ src/include/migraphx/make_shared_array.hpp | 23 ++ src/include/migraphx/make_signed.hpp | 23 ++ src/include/migraphx/manage_ptr.hpp | 23 ++ src/include/migraphx/marker.hpp | 23 ++ src/include/migraphx/match/gelu_erf.hpp | 23 ++ src/include/migraphx/match/gelu_tanh.hpp | 23 ++ src/include/migraphx/match/layernorm.hpp | 23 ++ src/include/migraphx/matcher.hpp | 23 ++ src/include/migraphx/memory_coloring.hpp | 23 ++ src/include/migraphx/module.hpp | 23 ++ src/include/migraphx/module_ref.hpp | 23 ++ src/include/migraphx/msgpack.hpp | 23 ++ src/include/migraphx/normalize_attributes.hpp | 23 ++ src/include/migraphx/normalize_ops.hpp | 23 ++ src/include/migraphx/onnx.hpp | 23 ++ src/include/migraphx/op/abs.hpp | 23 ++ src/include/migraphx/op/acos.hpp | 23 ++ src/include/migraphx/op/acosh.hpp | 23 ++ src/include/migraphx/op/add.hpp | 23 ++ src/include/migraphx/op/allocate.hpp | 23 ++ src/include/migraphx/op/argmax.hpp | 23 ++ src/include/migraphx/op/argmin.hpp | 23 ++ src/include/migraphx/op/as_shape.hpp | 23 ++ src/include/migraphx/op/asin.hpp | 23 ++ src/include/migraphx/op/asinh.hpp | 23 ++ src/include/migraphx/op/atan.hpp | 23 ++ src/include/migraphx/op/atanh.hpp | 23 ++ .../migraphx/op/batch_norm_inference.hpp | 23 ++ src/include/migraphx/op/binary.hpp | 23 ++ src/include/migraphx/op/broadcast.hpp | 23 ++ src/include/migraphx/op/capture.hpp | 23 ++ src/include/migraphx/op/ceil.hpp | 23 ++ src/include/migraphx/op/clip.hpp | 23 ++ src/include/migraphx/op/common.hpp | 23 ++ src/include/migraphx/op/concat.hpp | 23 ++ src/include/migraphx/op/contiguous.hpp | 23 ++ src/include/migraphx/op/convert.hpp | 23 ++ src/include/migraphx/op/convolution.hpp | 23 ++ src/include/migraphx/op/cos.hpp | 23 ++ src/include/migraphx/op/cosh.hpp | 23 ++ src/include/migraphx/op/deconvolution.hpp | 23 ++ src/include/migraphx/op/dequantizelinear.hpp | 23 ++ src/include/migraphx/op/div.hpp | 23 ++ src/include/migraphx/op/dot.hpp | 23 ++ src/include/migraphx/op/elu.hpp | 23 ++ src/include/migraphx/op/equal.hpp | 23 ++ src/include/migraphx/op/erf.hpp | 23 ++ src/include/migraphx/op/exp.hpp | 23 ++ src/include/migraphx/op/flatten.hpp | 23 ++ src/include/migraphx/op/floor.hpp | 23 ++ src/include/migraphx/op/gather.hpp | 23 ++ src/include/migraphx/op/gathernd.hpp | 23 ++ src/include/migraphx/op/get_tuple_elem.hpp | 23 ++ src/include/migraphx/op/greater.hpp | 23 ++ src/include/migraphx/op/gru.hpp | 23 ++ src/include/migraphx/op/identity.hpp | 23 ++ src/include/migraphx/op/if_op.hpp | 23 ++ src/include/migraphx/op/im2col.hpp | 23 ++ src/include/migraphx/op/isnan.hpp | 23 ++ src/include/migraphx/op/leaky_relu.hpp | 23 ++ src/include/migraphx/op/less.hpp | 23 ++ src/include/migraphx/op/load.hpp | 23 ++ src/include/migraphx/op/log.hpp | 23 ++ src/include/migraphx/op/logical_and.hpp | 23 ++ src/include/migraphx/op/logical_or.hpp | 23 ++ src/include/migraphx/op/logical_xor.hpp | 23 ++ src/include/migraphx/op/logsoftmax.hpp | 23 ++ src/include/migraphx/op/loop.hpp | 23 ++ src/include/migraphx/op/lrn.hpp | 23 ++ src/include/migraphx/op/lstm.hpp | 23 ++ src/include/migraphx/op/max.hpp | 23 ++ src/include/migraphx/op/min.hpp | 23 ++ src/include/migraphx/op/mul.hpp | 23 ++ src/include/migraphx/op/multibroadcast.hpp | 23 ++ src/include/migraphx/op/multinomial.hpp | 23 ++ src/include/migraphx/op/name.hpp | 23 ++ src/include/migraphx/op/neg.hpp | 23 ++ src/include/migraphx/op/nonmaxsuppression.hpp | 23 ++ src/include/migraphx/op/nonzero.hpp | 23 ++ .../migraphx/op/normalize_attribute.hpp | 23 ++ src/include/migraphx/op/outline.hpp | 23 ++ src/include/migraphx/op/pad.hpp | 23 ++ src/include/migraphx/op/pointwise.hpp | 23 ++ src/include/migraphx/op/pooling.hpp | 23 ++ src/include/migraphx/op/pow.hpp | 23 ++ src/include/migraphx/op/prefix_scan_op.hpp | 23 ++ src/include/migraphx/op/prefix_scan_sum.hpp | 23 ++ src/include/migraphx/op/prelu.hpp | 23 ++ src/include/migraphx/op/quant_convolution.hpp | 23 ++ src/include/migraphx/op/quant_dot.hpp | 23 ++ src/include/migraphx/op/quantizelinear.hpp | 23 ++ src/include/migraphx/op/recip.hpp | 23 ++ src/include/migraphx/op/reduce_max.hpp | 23 ++ src/include/migraphx/op/reduce_mean.hpp | 23 ++ src/include/migraphx/op/reduce_min.hpp | 23 ++ src/include/migraphx/op/reduce_op.hpp | 23 ++ src/include/migraphx/op/reduce_prod.hpp | 23 ++ src/include/migraphx/op/reduce_sum.hpp | 23 ++ src/include/migraphx/op/relu.hpp | 23 ++ src/include/migraphx/op/reshape.hpp | 23 ++ src/include/migraphx/op/reverse.hpp | 23 ++ src/include/migraphx/op/rnn.hpp | 23 ++ .../migraphx/op/rnn_last_cell_output.hpp | 23 ++ .../migraphx/op/rnn_last_hs_output.hpp | 23 ++ .../migraphx/op/rnn_var_sl_last_output.hpp | 23 ++ .../migraphx/op/rnn_variable_seq_lens.hpp | 23 ++ src/include/migraphx/op/roialign.hpp | 23 ++ src/include/migraphx/op/round.hpp | 23 ++ src/include/migraphx/op/rsqrt.hpp | 23 ++ src/include/migraphx/op/scalar.hpp | 23 ++ src/include/migraphx/op/scatter.hpp | 23 ++ src/include/migraphx/op/scatter_add.hpp | 23 ++ src/include/migraphx/op/scatter_mul.hpp | 23 ++ src/include/migraphx/op/scatter_none.hpp | 23 ++ src/include/migraphx/op/scatternd_add.hpp | 23 ++ src/include/migraphx/op/scatternd_mul.hpp | 23 ++ src/include/migraphx/op/scatternd_none.hpp | 23 ++ src/include/migraphx/op/scatternd_op.hpp | 23 ++ src/include/migraphx/op/sigmoid.hpp | 23 ++ src/include/migraphx/op/sign.hpp | 23 ++ src/include/migraphx/op/sin.hpp | 23 ++ src/include/migraphx/op/sinh.hpp | 23 ++ src/include/migraphx/op/slice.hpp | 23 ++ src/include/migraphx/op/softmax.hpp | 23 ++ src/include/migraphx/op/sqdiff.hpp | 23 ++ src/include/migraphx/op/sqrt.hpp | 23 ++ src/include/migraphx/op/squeeze.hpp | 23 ++ src/include/migraphx/op/step.hpp | 23 ++ src/include/migraphx/op/sub.hpp | 23 ++ src/include/migraphx/op/tan.hpp | 23 ++ src/include/migraphx/op/tanh.hpp | 23 ++ src/include/migraphx/op/topk.hpp | 23 ++ src/include/migraphx/op/transpose.hpp | 23 ++ src/include/migraphx/op/unary.hpp | 23 ++ src/include/migraphx/op/unary_not.hpp | 23 ++ src/include/migraphx/op/undefined.hpp | 23 ++ src/include/migraphx/op/unknown.hpp | 23 ++ src/include/migraphx/op/unsqueeze.hpp | 23 ++ src/include/migraphx/op/where.hpp | 23 ++ src/include/migraphx/operation.hpp | 23 ++ src/include/migraphx/operators.hpp | 23 ++ src/include/migraphx/optional.hpp | 23 ++ src/include/migraphx/output_iterator.hpp | 23 ++ src/include/migraphx/pad_calc.hpp | 23 ++ src/include/migraphx/par_dfor.hpp | 23 ++ src/include/migraphx/par_for.hpp | 23 ++ src/include/migraphx/pass.hpp | 23 ++ src/include/migraphx/pass_config.hpp | 23 ++ src/include/migraphx/pass_manager.hpp | 23 ++ src/include/migraphx/permutation.hpp | 23 ++ src/include/migraphx/preallocate_param.hpp | 23 ++ src/include/migraphx/process.hpp | 23 ++ src/include/migraphx/program.hpp | 23 ++ src/include/migraphx/propagate_constant.hpp | 23 ++ src/include/migraphx/quantization.hpp | 23 ++ src/include/migraphx/quantize_fp16.hpp | 23 ++ src/include/migraphx/quantize_int8.hpp | 23 ++ src/include/migraphx/ranges.hpp | 23 ++ src/include/migraphx/rank.hpp | 23 ++ src/include/migraphx/raw_data.hpp | 23 ++ src/include/migraphx/reduce_dims.hpp | 23 ++ src/include/migraphx/reflect.hpp | 23 ++ src/include/migraphx/register_op.hpp | 23 ++ src/include/migraphx/register_target.hpp | 23 ++ src/include/migraphx/replace_allocate.hpp | 23 ++ src/include/migraphx/requires.hpp | 23 ++ src/include/migraphx/rewrite_batchnorm.hpp | 23 ++ src/include/migraphx/rewrite_pooling.hpp | 23 ++ src/include/migraphx/rewrite_quantization.hpp | 23 ++ src/include/migraphx/rewrite_rnn.hpp | 23 ++ src/include/migraphx/run_loop.hpp | 23 ++ src/include/migraphx/schedule.hpp | 23 ++ src/include/migraphx/schedule_model.hpp | 23 ++ src/include/migraphx/serialize.hpp | 23 ++ src/include/migraphx/shape.hpp | 23 ++ src/include/migraphx/shape_for_each.hpp | 23 ++ src/include/migraphx/simplify_algebra.hpp | 23 ++ src/include/migraphx/simplify_qdq.hpp | 23 ++ src/include/migraphx/simplify_reshapes.hpp | 23 ++ src/include/migraphx/stream_model.hpp | 23 ++ src/include/migraphx/streamutils.hpp | 23 ++ src/include/migraphx/stringutils.hpp | 23 ++ src/include/migraphx/target.hpp | 23 ++ src/include/migraphx/tensor_view.hpp | 23 ++ src/include/migraphx/tf.hpp | 23 ++ src/include/migraphx/time.hpp | 23 ++ src/include/migraphx/tmp_dir.hpp | 23 ++ src/include/migraphx/tracer.hpp | 23 ++ src/include/migraphx/tune_axis.hpp | 23 ++ src/include/migraphx/type_name.hpp | 23 ++ src/include/migraphx/type_traits.hpp | 29 +- src/include/migraphx/value.hpp | 23 ++ src/include/migraphx/verify.hpp | 23 ++ src/include/migraphx/verify_args.hpp | 23 ++ src/inline_module.cpp | 23 ++ src/insert_pad.cpp | 23 ++ src/instruction.cpp | 23 ++ src/json.cpp | 23 ++ src/load_save.cpp | 23 ++ src/make_op.cpp | 23 ++ src/module.cpp | 23 ++ src/msgpack.cpp | 23 ++ src/normalize_attributes.cpp | 23 ++ src/normalize_ops.cpp | 23 ++ src/onnx/CMakeLists.txt | 23 ++ src/onnx/checks.cpp | 23 ++ src/onnx/conv.cpp | 23 ++ src/onnx/include/migraphx/onnx/checks.hpp | 23 ++ src/onnx/include/migraphx/onnx/conv.hpp | 23 ++ .../onnx/map_activation_functions.hpp | 23 ++ .../include/migraphx/onnx/onnx_parser.hpp | 23 ++ src/onnx/include/migraphx/onnx/op_parser.hpp | 23 ++ src/onnx/include/migraphx/onnx/padding.hpp | 23 ++ src/onnx/map_activation_functions.cpp | 23 ++ src/onnx/onnx.cpp | 23 ++ src/onnx/onnx_parser.cpp | 23 ++ src/onnx/op_parser.cpp | 23 ++ src/onnx/padding.cpp | 23 ++ src/onnx/parse_arg_op.cpp | 23 ++ src/onnx/parse_aten.cpp | 23 ++ src/onnx/parse_batchnorm.cpp | 23 ++ src/onnx/parse_binary_op.cpp | 23 ++ src/onnx/parse_cast.cpp | 23 ++ src/onnx/parse_celu.cpp | 23 ++ src/onnx/parse_clip.cpp | 23 ++ src/onnx/parse_compare_op.cpp | 23 ++ src/onnx/parse_constant.cpp | 23 ++ src/onnx/parse_constant_fill.cpp | 23 ++ src/onnx/parse_constant_of_shape.cpp | 23 ++ src/onnx/parse_convolution.cpp | 23 ++ src/onnx/parse_deconvolution.cpp | 23 ++ src/onnx/parse_depthtospace.cpp | 23 ++ src/onnx/parse_dequantizelinear.cpp | 23 ++ src/onnx/parse_dropout.cpp | 23 ++ src/onnx/parse_expand.cpp | 23 ++ src/onnx/parse_eyelike.cpp | 23 ++ src/onnx/parse_gather_elements.cpp | 23 ++ src/onnx/parse_gemm.cpp | 23 ++ src/onnx/parse_generic_op.cpp | 23 ++ src/onnx/parse_greaterorequal.cpp | 23 ++ src/onnx/parse_gru.cpp | 23 ++ src/onnx/parse_hardsigmoid.cpp | 23 ++ src/onnx/parse_if.cpp | 23 ++ src/onnx/parse_imagescalar.cpp | 23 ++ src/onnx/parse_instancenorm.cpp | 23 ++ src/onnx/parse_lessorequal.cpp | 23 ++ src/onnx/parse_loop.cpp | 23 ++ src/onnx/parse_lpnormalization.cpp | 23 ++ src/onnx/parse_lstm.cpp | 23 ++ src/onnx/parse_matmul.cpp | 23 ++ src/onnx/parse_mean.cpp | 23 ++ src/onnx/parse_multinomial.cpp | 23 ++ src/onnx/parse_nonzero.cpp | 23 ++ src/onnx/parse_onehot.cpp | 23 ++ src/onnx/parse_pad.cpp | 23 ++ src/onnx/parse_pooling.cpp | 23 ++ src/onnx/parse_pow.cpp | 23 ++ src/onnx/parse_prefix_scan.cpp | 23 ++ src/onnx/parse_quantizelinear.cpp | 23 ++ src/onnx/parse_randomnormal_ops.cpp | 23 ++ src/onnx/parse_randomuniform_ops.cpp | 23 ++ src/onnx/parse_range.cpp | 23 ++ src/onnx/parse_reduce_op.cpp | 23 ++ src/onnx/parse_reshape.cpp | 23 ++ src/onnx/parse_resize.cpp | 23 ++ src/onnx/parse_reversesequence.cpp | 23 ++ src/onnx/parse_rnn.cpp | 23 ++ src/onnx/parse_roialign.cpp | 23 ++ src/onnx/parse_scatter.cpp | 23 ++ src/onnx/parse_scatternd.cpp | 23 ++ src/onnx/parse_selu.cpp | 23 ++ src/onnx/parse_shape.cpp | 23 ++ src/onnx/parse_size.cpp | 23 ++ src/onnx/parse_slice.cpp | 23 ++ src/onnx/parse_softmax.cpp | 23 ++ src/onnx/parse_softplus.cpp | 23 ++ src/onnx/parse_softsign.cpp | 23 ++ src/onnx/parse_spacetodepth.cpp | 23 ++ src/onnx/parse_split.cpp | 23 ++ src/onnx/parse_squeeze.cpp | 23 ++ src/onnx/parse_thresholdedrelu.cpp | 23 ++ src/onnx/parse_tile.cpp | 23 ++ src/onnx/parse_topk.cpp | 23 ++ src/onnx/parse_transpose.cpp | 23 ++ src/onnx/parse_variadic_op.cpp | 23 ++ src/onnx/parse_where.cpp | 23 ++ src/op_enums.cpp | 23 ++ src/operation.cpp | 23 ++ src/opt/memory_coloring.cpp | 23 ++ src/opt/memory_coloring_impl.cpp | 23 ++ src/opt/memory_coloring_impl.hpp | 23 ++ src/pass_manager.cpp | 23 ++ src/permutation.cpp | 23 ++ src/preallocate_param.cpp | 23 ++ src/process.cpp | 23 ++ src/program.cpp | 23 ++ src/propagate_constant.cpp | 23 ++ src/py/CMakeLists.txt | 23 ++ src/py/backend/__init__.py | 24 +- src/py/backend/backend.py | 23 ++ src/py/backend/backend_rep.py | 27 +- src/py/migraphx_py.cpp | 23 ++ src/quantization.cpp | 23 ++ src/quantize_fp16.cpp | 23 ++ src/quantize_int8.cpp | 23 ++ src/reduce_dims.cpp | 23 ++ src/register_op.cpp | 23 ++ src/register_target.cpp | 23 ++ src/replace_allocate.cpp | 23 ++ src/rewrite_batchnorm.cpp | 23 ++ src/rewrite_pooling.cpp | 23 ++ src/rewrite_quantization.cpp | 23 ++ src/rewrite_rnn.cpp | 23 ++ src/schedule.cpp | 23 ++ src/serialize.cpp | 23 ++ src/shape.cpp | 23 ++ src/simplify_algebra.cpp | 23 ++ src/simplify_qdq.cpp | 23 ++ src/simplify_reshapes.cpp | 23 ++ src/targets/cpu/CMakeLists.txt | 23 ++ src/targets/cpu/allocate.cpp | 23 ++ src/targets/cpu/allocation_model.cpp | 23 ++ src/targets/cpu/binary.cpp | 23 ++ src/targets/cpu/concat.cpp | 23 ++ src/targets/cpu/convolution.cpp | 23 ++ src/targets/cpu/copy.cpp | 23 ++ src/targets/cpu/deconvolution.cpp | 23 ++ src/targets/cpu/dnnl.cpp | 23 ++ src/targets/cpu/eltwise.cpp | 23 ++ src/targets/cpu/erf.cpp | 23 ++ src/targets/cpu/fuse_ops.cpp | 23 ++ src/targets/cpu/gather.cpp | 23 ++ src/targets/cpu/gemm.cpp | 23 ++ .../include/migraphx/cpu/allocation_model.hpp | 23 ++ .../cpu/include/migraphx/cpu/context.hpp | 23 ++ src/targets/cpu/include/migraphx/cpu/dnnl.hpp | 23 ++ .../cpu/include/migraphx/cpu/fuse_ops.hpp | 23 ++ .../cpu/include/migraphx/cpu/lowering.hpp | 23 ++ .../cpu/include/migraphx/cpu/parallel.hpp | 23 ++ .../cpu/include/migraphx/cpu/pointwise.hpp | 23 ++ .../cpu/include/migraphx/cpu/target.hpp | 23 ++ .../include/migraphx/cpu/write_literals.hpp | 23 ++ src/targets/cpu/layernorm.cpp | 23 ++ src/targets/cpu/logsoftmax.cpp | 23 ++ src/targets/cpu/lowering.cpp | 23 ++ src/targets/cpu/lrn.cpp | 23 ++ src/targets/cpu/pooling.cpp | 23 ++ src/targets/cpu/preallocate.cpp | 23 ++ src/targets/cpu/reduction.cpp | 23 ++ src/targets/cpu/reorder.cpp | 23 ++ src/targets/cpu/softmax.cpp | 23 ++ src/targets/cpu/sub.cpp | 23 ++ src/targets/cpu/target.cpp | 23 ++ src/targets/cpu/write_literals.cpp | 23 ++ src/targets/gpu/CMakeLists.txt | 23 ++ src/targets/gpu/abs.cpp | 23 ++ src/targets/gpu/allocation_model.cpp | 23 ++ src/targets/gpu/analyze_streams.cpp | 23 ++ src/targets/gpu/argmax.cpp | 23 ++ src/targets/gpu/argmin.cpp | 23 ++ src/targets/gpu/batch_norm_inference.cpp | 23 ++ src/targets/gpu/clip.cpp | 23 ++ src/targets/gpu/code_object_op.cpp | 23 ++ src/targets/gpu/compile_gen.cpp | 23 ++ src/targets/gpu/compile_hip.cpp | 23 ++ src/targets/gpu/compile_hip_code_object.cpp | 23 ++ src/targets/gpu/compile_ops.cpp | 23 ++ src/targets/gpu/compiler.cpp | 23 ++ src/targets/gpu/concat.cpp | 23 ++ src/targets/gpu/convert.cpp | 23 ++ src/targets/gpu/convolution.cpp | 23 ++ src/targets/gpu/deconvolution.cpp | 23 ++ src/targets/gpu/device/acos.cpp | 23 ++ src/targets/gpu/device/acosh.cpp | 23 ++ src/targets/gpu/device/add.cpp | 23 ++ src/targets/gpu/device/add_clip.cpp | 23 ++ src/targets/gpu/device/add_relu.cpp | 23 ++ src/targets/gpu/device/add_sigmoid.cpp | 23 ++ src/targets/gpu/device/add_tanh.cpp | 23 ++ src/targets/gpu/device/argmax.cpp | 23 ++ src/targets/gpu/device/argmin.cpp | 23 ++ src/targets/gpu/device/asin.cpp | 23 ++ src/targets/gpu/device/asinh.cpp | 23 ++ src/targets/gpu/device/atan.cpp | 23 ++ src/targets/gpu/device/atanh.cpp | 23 ++ src/targets/gpu/device/ceil.cpp | 23 ++ src/targets/gpu/device/clip.cpp | 23 ++ src/targets/gpu/device/concat.cpp | 23 ++ src/targets/gpu/device/contiguous.cpp | 23 ++ src/targets/gpu/device/convert.cpp | 23 ++ src/targets/gpu/device/cos.cpp | 23 ++ src/targets/gpu/device/cosh.cpp | 23 ++ src/targets/gpu/device/div.cpp | 23 ++ src/targets/gpu/device/equal.cpp | 23 ++ src/targets/gpu/device/erf.cpp | 23 ++ src/targets/gpu/device/exp.cpp | 23 ++ src/targets/gpu/device/fill.cpp | 23 ++ src/targets/gpu/device/floor.cpp | 23 ++ src/targets/gpu/device/gather.cpp | 23 ++ src/targets/gpu/device/gelu.cpp | 23 ++ src/targets/gpu/device/greater.cpp | 23 ++ .../include/migraphx/gpu/device/array.hpp | 23 ++ .../include/migraphx/gpu/device/fast_div.hpp | 23 ++ .../migraphx/gpu/device/float_equal.hpp | 23 ++ .../include/migraphx/gpu/device/launch.hpp | 23 ++ .../migraphx/gpu/device/multi_index.hpp | 23 ++ .../include/migraphx/gpu/device/nary.hpp | 23 ++ .../include/migraphx/gpu/device/reduce.hpp | 23 ++ .../migraphx/gpu/device/reduce_ops.hpp | 23 ++ .../include/migraphx/gpu/device/scan.hpp | 23 ++ .../include/migraphx/gpu/device/shape.hpp | 23 ++ .../include/migraphx/gpu/device/tensor.hpp | 23 ++ .../migraphx/gpu/device/tensor_view.hpp | 23 ++ .../include/migraphx/gpu/device/types.hpp | 29 +- .../include/migraphx/gpu/device/vector.hpp | 23 ++ .../include/migraphx/gpu/device/visit.hpp | 23 ++ src/targets/gpu/device/int8_gemm_pack.cpp | 23 ++ src/targets/gpu/device/layernorm.cpp | 23 ++ src/targets/gpu/device/less.cpp | 23 ++ src/targets/gpu/device/log.cpp | 23 ++ src/targets/gpu/device/logical_and.cpp | 23 ++ src/targets/gpu/device/logical_or.cpp | 23 ++ src/targets/gpu/device/logical_xor.cpp | 23 ++ src/targets/gpu/device/logsoftmax.cpp | 23 ++ src/targets/gpu/device/max.cpp | 23 ++ src/targets/gpu/device/min.cpp | 23 ++ src/targets/gpu/device/mul.cpp | 23 ++ src/targets/gpu/device/mul_add.cpp | 23 ++ src/targets/gpu/device/mul_add_relu.cpp | 23 ++ src/targets/gpu/device/multinomial.cpp | 23 ++ src/targets/gpu/device/nonzero.cpp | 23 ++ src/targets/gpu/device/pad.cpp | 23 ++ src/targets/gpu/device/pow.cpp | 23 ++ src/targets/gpu/device/prefix_scan_sum.cpp | 23 ++ src/targets/gpu/device/prelu.cpp | 23 ++ src/targets/gpu/device/recip.cpp | 23 ++ src/targets/gpu/device/reduce_max.cpp | 23 ++ src/targets/gpu/device/reduce_mean.cpp | 23 ++ src/targets/gpu/device/reduce_min.cpp | 23 ++ src/targets/gpu/device/reduce_prod.cpp | 23 ++ src/targets/gpu/device/reduce_sum.cpp | 23 ++ src/targets/gpu/device/relu.cpp | 23 ++ src/targets/gpu/device/reverse.cpp | 23 ++ .../gpu/device/rnn_variable_seq_lens.cpp | 23 ++ src/targets/gpu/device/round.cpp | 23 ++ src/targets/gpu/device/rsqrt.cpp | 23 ++ src/targets/gpu/device/scatter.cpp | 23 ++ src/targets/gpu/device/sigmoid.cpp | 23 ++ src/targets/gpu/device/sign.cpp | 23 ++ src/targets/gpu/device/sin.cpp | 23 ++ src/targets/gpu/device/sinh.cpp | 23 ++ src/targets/gpu/device/softmax.cpp | 23 ++ src/targets/gpu/device/sqdiff.cpp | 23 ++ src/targets/gpu/device/sqrt.cpp | 23 ++ src/targets/gpu/device/sub.cpp | 23 ++ src/targets/gpu/device/tan.cpp | 23 ++ src/targets/gpu/device/tanh.cpp | 23 ++ src/targets/gpu/device/topk.cpp | 23 ++ src/targets/gpu/device/unary_not.cpp | 23 ++ src/targets/gpu/device/where.cpp | 23 ++ src/targets/gpu/device_name.cpp | 23 ++ src/targets/gpu/driver/CMakeLists.txt | 23 ++ src/targets/gpu/driver/action.cpp | 23 ++ src/targets/gpu/driver/compile_op.cpp | 23 ++ .../include/migraphx/gpu/driver/action.hpp | 23 ++ .../include/migraphx/gpu/driver/parser.hpp | 23 ++ .../include/migraphx/gpu/driver/perf.hpp | 23 ++ src/targets/gpu/driver/main.cpp | 23 ++ src/targets/gpu/driver/parser.cpp | 23 ++ src/targets/gpu/driver/perf.cpp | 23 ++ src/targets/gpu/driver/run_op.cpp | 23 ++ src/targets/gpu/eliminate_workspace.cpp | 23 ++ src/targets/gpu/elu.cpp | 23 ++ src/targets/gpu/fuse_ops.cpp | 23 ++ src/targets/gpu/gather.cpp | 23 ++ src/targets/gpu/gemm_impl.cpp | 23 ++ src/targets/gpu/hip.cpp | 23 ++ src/targets/gpu/include/migraphx/gpu/abs.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/acos.hpp | 23 ++ .../gpu/include/migraphx/gpu/acosh.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/add.hpp | 23 ++ .../include/migraphx/gpu/allocation_model.hpp | 23 ++ .../include/migraphx/gpu/analyze_streams.hpp | 23 ++ .../gpu/include/migraphx/gpu/argmax.hpp | 23 ++ .../gpu/include/migraphx/gpu/argmin.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/asin.hpp | 23 ++ .../gpu/include/migraphx/gpu/asinh.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/atan.hpp | 23 ++ .../gpu/include/migraphx/gpu/atanh.hpp | 23 ++ .../migraphx/gpu/batch_norm_inference.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/ceil.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/clip.hpp | 23 ++ .../include/migraphx/gpu/code_object_op.hpp | 23 ++ .../gpu/include/migraphx/gpu/compile_gen.hpp | 23 ++ .../gpu/include/migraphx/gpu/compile_hip.hpp | 23 ++ .../migraphx/gpu/compile_hip_code_object.hpp | 23 ++ .../gpu/include/migraphx/gpu/compile_ops.hpp | 23 ++ .../gpu/include/migraphx/gpu/compiler.hpp | 23 ++ .../gpu/include/migraphx/gpu/concat.hpp | 23 ++ .../include/migraphx/gpu/concat_gpu_opt.hpp | 23 ++ .../gpu/include/migraphx/gpu/context.hpp | 23 ++ .../gpu/include/migraphx/gpu/contiguous.hpp | 23 ++ .../gpu/include/migraphx/gpu/convert.hpp | 23 ++ .../gpu/include/migraphx/gpu/convolution.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/cos.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/cosh.hpp | 23 ++ .../include/migraphx/gpu/deconvolution.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/acos.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/acosh.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/add.hpp | 23 ++ .../include/migraphx/gpu/device/add_clip.hpp | 23 ++ .../include/migraphx/gpu/device/add_relu.hpp | 23 ++ .../migraphx/gpu/device/add_sigmoid.hpp | 23 ++ .../include/migraphx/gpu/device/add_tanh.hpp | 23 ++ .../include/migraphx/gpu/device/arg_op.hpp | 23 ++ .../include/migraphx/gpu/device/argmax.hpp | 23 ++ .../include/migraphx/gpu/device/argmin.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/asin.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/asinh.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/atan.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/atanh.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/ceil.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/clip.hpp | 23 ++ .../include/migraphx/gpu/device/concat.hpp | 23 ++ .../migraphx/gpu/device/contiguous.hpp | 23 ++ .../include/migraphx/gpu/device/convert.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/cos.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/cosh.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/div.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/equal.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/erf.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/exp.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/fill.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/floor.hpp | 23 ++ .../include/migraphx/gpu/device/gather.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/gelu.hpp | 23 ++ .../include/migraphx/gpu/device/greater.hpp | 23 ++ .../migraphx/gpu/device/int8_gemm_pack.hpp | 23 ++ .../include/migraphx/gpu/device/layernorm.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/less.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/log.hpp | 23 ++ .../migraphx/gpu/device/logical_and.hpp | 23 ++ .../migraphx/gpu/device/logical_or.hpp | 23 ++ .../migraphx/gpu/device/logical_xor.hpp | 23 ++ .../migraphx/gpu/device/logsoftmax.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/max.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/min.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/mul.hpp | 23 ++ .../include/migraphx/gpu/device/mul_add.hpp | 23 ++ .../migraphx/gpu/device/mul_add_relu.hpp | 23 ++ .../migraphx/gpu/device/multinomial.hpp | 23 ++ .../include/migraphx/gpu/device/nonzero.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/pad.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/pow.hpp | 23 ++ .../migraphx/gpu/device/prefix_scan_sum.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/prelu.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/recip.hpp | 23 ++ .../migraphx/gpu/device/reduce_max.hpp | 23 ++ .../migraphx/gpu/device/reduce_mean.hpp | 23 ++ .../migraphx/gpu/device/reduce_min.hpp | 23 ++ .../migraphx/gpu/device/reduce_prod.hpp | 23 ++ .../migraphx/gpu/device/reduce_sum.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/relu.hpp | 23 ++ .../include/migraphx/gpu/device/reverse.hpp | 23 ++ .../gpu/device/rnn_variable_seq_lens.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/round.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/rsqrt.hpp | 23 ++ .../include/migraphx/gpu/device/scatter.hpp | 23 ++ .../include/migraphx/gpu/device/sigmoid.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/sign.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/sin.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/sinh.hpp | 23 ++ .../include/migraphx/gpu/device/softmax.hpp | 23 ++ .../include/migraphx/gpu/device/sqdiff.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/sqrt.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/sub.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/tan.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/tanh.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/topk.hpp | 23 ++ .../include/migraphx/gpu/device/unary_not.hpp | 23 ++ .../gpu/include/migraphx/gpu/device/where.hpp | 23 ++ .../gpu/include/migraphx/gpu/device_name.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/div.hpp | 23 ++ .../migraphx/gpu/eliminate_workspace.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/elu.hpp | 23 ++ .../gpu/include/migraphx/gpu/equal.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/erf.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/exp.hpp | 23 ++ .../gpu/include/migraphx/gpu/floor.hpp | 23 ++ .../gpu/include/migraphx/gpu/fuse_ops.hpp | 23 ++ .../gpu/include/migraphx/gpu/gather.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/gemm.hpp | 23 ++ .../gpu/include/migraphx/gpu/gemm_impl.hpp | 23 ++ .../gpu/include/migraphx/gpu/greater.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/hip.hpp | 23 ++ .../include/migraphx/gpu/int8_conv_pack.hpp | 23 ++ .../include/migraphx/gpu/int8_gemm_pack.hpp | 23 ++ .../gpu/include/migraphx/gpu/kernel.hpp | 23 ++ .../gpu/include/migraphx/gpu/leaky_relu.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/less.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/log.hpp | 23 ++ .../gpu/include/migraphx/gpu/logical_and.hpp | 23 ++ .../gpu/include/migraphx/gpu/logical_or.hpp | 23 ++ .../gpu/include/migraphx/gpu/logical_xor.hpp | 23 ++ .../gpu/include/migraphx/gpu/logsoftmax.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/loop.hpp | 23 ++ .../gpu/include/migraphx/gpu/lowering.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/lrn.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/max.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/min.hpp | 23 ++ .../gpu/include/migraphx/gpu/miopen.hpp | 23 ++ .../gpu/include/migraphx/gpu/mlir_conv.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/mul.hpp | 23 ++ .../gpu/include/migraphx/gpu/multinomial.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/name.hpp | 23 ++ .../gpu/include/migraphx/gpu/nonzero.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/oper.hpp | 23 ++ .../gpu/include/migraphx/gpu/pack_args.hpp | 23 ++ .../include/migraphx/gpu/pack_int8_args.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/pad.hpp | 23 ++ .../gpu/include/migraphx/gpu/pooling.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/pow.hpp | 23 ++ .../include/migraphx/gpu/prefix_scan_sum.hpp | 23 ++ .../gpu/include/migraphx/gpu/prefuse_ops.hpp | 23 ++ .../gpu/include/migraphx/gpu/prelu.hpp | 23 ++ .../migraphx/gpu/quant_convolution.hpp | 23 ++ .../gpu/include/migraphx/gpu/recip.hpp | 23 ++ .../gpu/include/migraphx/gpu/reduce_max.hpp | 23 ++ .../gpu/include/migraphx/gpu/reduce_mean.hpp | 23 ++ .../gpu/include/migraphx/gpu/reduce_min.hpp | 23 ++ .../gpu/include/migraphx/gpu/reduce_op.hpp | 23 ++ .../gpu/include/migraphx/gpu/reduce_prod.hpp | 23 ++ .../gpu/include/migraphx/gpu/reduce_sum.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/relu.hpp | 23 ++ .../gpu/include/migraphx/gpu/reverse.hpp | 23 ++ .../migraphx/gpu/rnn_variable_seq_lens.hpp | 23 ++ .../gpu/include/migraphx/gpu/rocblas.hpp | 23 ++ .../gpu/include/migraphx/gpu/round.hpp | 23 ++ .../gpu/include/migraphx/gpu/rsqrt.hpp | 23 ++ .../gpu/include/migraphx/gpu/scatter.hpp | 23 ++ .../include/migraphx/gpu/schedule_model.hpp | 23 ++ .../gpu/include/migraphx/gpu/sigmoid.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/sign.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/sin.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/sinh.hpp | 23 ++ .../gpu/include/migraphx/gpu/softmax.hpp | 23 ++ .../gpu/include/migraphx/gpu/sqdiff.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/sqrt.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/sub.hpp | 23 ++ .../gpu/include/migraphx/gpu/sync_device.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/tan.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/tanh.hpp | 23 ++ .../gpu/include/migraphx/gpu/target.hpp | 23 ++ src/targets/gpu/include/migraphx/gpu/topk.hpp | 23 ++ .../gpu/include/migraphx/gpu/unary_not.hpp | 23 ++ .../gpu/include/migraphx/gpu/where.hpp | 23 ++ .../include/migraphx/gpu/write_literals.hpp | 23 ++ src/targets/gpu/int8_conv_pack.cpp | 23 ++ src/targets/gpu/int8_gemm_pack.cpp | 23 ++ src/targets/gpu/jit/gathernd.cpp | 23 ++ src/targets/gpu/jit/pointwise.cpp | 23 ++ src/targets/gpu/jit/reduce.cpp | 23 ++ src/targets/gpu/jit/roialign.cpp | 23 ++ src/targets/gpu/jit/scatternd.cpp | 23 ++ src/targets/gpu/kernel.cpp | 23 ++ .../include/migraphx/kernels/algorithm.hpp | 23 ++ .../kernels/include/migraphx/kernels/args.hpp | 23 ++ .../include/migraphx/kernels/array.hpp | 23 ++ .../include/migraphx/kernels/debug.hpp | 23 ++ .../kernels/include/migraphx/kernels/dfor.hpp | 23 ++ .../kernels/include/migraphx/kernels/dpp.hpp | 23 ++ .../include/migraphx/kernels/functional.hpp | 23 ++ .../include/migraphx/kernels/gathernd.hpp | 23 ++ .../migraphx/kernels/generic_constant.hpp | 23 ++ .../kernels/include/migraphx/kernels/hip.hpp | 23 ++ .../include/migraphx/kernels/index.hpp | 23 ++ .../migraphx/kernels/integral_constant.hpp | 23 ++ .../migraphx/kernels/iota_iterator.hpp | 23 ++ .../kernels/include/migraphx/kernels/math.hpp | 23 ++ .../kernels/include/migraphx/kernels/ops.hpp | 23 ++ .../include/migraphx/kernels/pointwise.hpp | 23 ++ .../include/migraphx/kernels/preload.hpp | 23 ++ .../include/migraphx/kernels/print.hpp | 23 ++ .../include/migraphx/kernels/reduce.hpp | 23 ++ .../include/migraphx/kernels/roialign.hpp | 23 ++ .../include/migraphx/kernels/scatternd.hpp | 23 ++ .../include/migraphx/kernels/shape.hpp | 23 ++ .../include/migraphx/kernels/tensor_view.hpp | 23 ++ .../include/migraphx/kernels/type_traits.hpp | 23 ++ .../include/migraphx/kernels/types.hpp | 23 ++ .../kernels/include/migraphx/kernels/vec.hpp | 23 ++ .../include/migraphx/kernels/vectorize.hpp | 23 ++ src/targets/gpu/leaky_relu.cpp | 23 ++ src/targets/gpu/logsoftmax.cpp | 23 ++ src/targets/gpu/loop.cpp | 23 ++ src/targets/gpu/lowering.cpp | 23 ++ src/targets/gpu/lrn.cpp | 23 ++ src/targets/gpu/mlir_conv.cpp | 23 ++ src/targets/gpu/multinomial.cpp | 23 ++ src/targets/gpu/nonzero.cpp | 23 ++ src/targets/gpu/pack_args.cpp | 23 ++ src/targets/gpu/pack_int8_args.cpp | 23 ++ src/targets/gpu/pad.cpp | 23 ++ src/targets/gpu/pooling.cpp | 23 ++ src/targets/gpu/prefuse_ops.cpp | 23 ++ src/targets/gpu/quant_convolution.cpp | 23 ++ src/targets/gpu/reverse.cpp | 23 ++ src/targets/gpu/rnn_variable_seq_lens.cpp | 23 ++ src/targets/gpu/rocblas.cpp | 23 ++ src/targets/gpu/scatter.cpp | 23 ++ src/targets/gpu/schedule_model.cpp | 23 ++ src/targets/gpu/softmax.cpp | 23 ++ src/targets/gpu/sync_device.cpp | 23 ++ src/targets/gpu/target.cpp | 23 ++ src/targets/gpu/topk.cpp | 23 ++ src/targets/gpu/write_literals.cpp | 23 ++ src/targets/ref/CMakeLists.txt | 23 ++ src/targets/ref/gemm.cpp | 23 ++ .../ref/include/migraphx/ref/context.hpp | 23 ++ src/targets/ref/include/migraphx/ref/gemm.hpp | 23 ++ .../ref/include/migraphx/ref/lowering.hpp | 23 ++ .../ref/include/migraphx/ref/target.hpp | 23 ++ src/targets/ref/lowering.cpp | 23 ++ src/targets/ref/target.cpp | 23 ++ src/tf/CMakeLists.txt | 23 ++ src/tf/include/migraphx/tf/op_parser.hpp | 23 ++ src/tf/include/migraphx/tf/tf_parser.hpp | 23 ++ src/tf/op_parser.cpp | 23 ++ src/tf/parse_arg_op.cpp | 23 ++ src/tf/parse_batchnorm.cpp | 23 ++ src/tf/parse_biasadd.cpp | 23 ++ src/tf/parse_binary_op.cpp | 23 ++ src/tf/parse_cast.cpp | 23 ++ src/tf/parse_concat.cpp | 23 ++ src/tf/parse_constant.cpp | 23 ++ src/tf/parse_conv.cpp | 23 ++ src/tf/parse_depthwiseconv.cpp | 23 ++ src/tf/parse_expanddims.cpp | 23 ++ src/tf/parse_gather.cpp | 23 ++ src/tf/parse_generic_op.cpp | 23 ++ src/tf/parse_matmul.cpp | 23 ++ src/tf/parse_mean.cpp | 23 ++ src/tf/parse_onehot.cpp | 23 ++ src/tf/parse_pack.cpp | 23 ++ src/tf/parse_pad.cpp | 23 ++ src/tf/parse_pooling.cpp | 23 ++ src/tf/parse_relu6.cpp | 23 ++ src/tf/parse_reshape.cpp | 23 ++ src/tf/parse_shape.cpp | 23 ++ src/tf/parse_slice.cpp | 23 ++ src/tf/parse_softmax.cpp | 23 ++ src/tf/parse_split.cpp | 23 ++ src/tf/parse_squeeze.cpp | 23 ++ src/tf/parse_stridedslice.cpp | 23 ++ src/tf/parse_transpose.cpp | 23 ++ src/tf/tf.cpp | 23 ++ src/tf/tf_parser.cpp | 23 ++ src/tmp_dir.cpp | 23 ++ src/value.cpp | 23 ++ src/verify_args.cpp | 23 ++ src/version.h.in | 23 ++ test/CMakeLists.txt | 23 ++ test/analyze_streams.cpp | 23 ++ test/any_ptr.cpp | 23 ++ test/api/CMakeLists.txt | 23 ++ test/api/test_array_base.cpp | 23 ++ test/api/test_assign.cpp | 23 ++ test/api/test_compile_options.cpp | 23 ++ test/api/test_cpu.cpp | 23 ++ test/api/test_custom_op.cpp | 23 ++ test/api/test_gpu.cpp | 23 ++ test/api/test_lookup.cpp | 23 ++ test/api/test_module_construct.cpp | 23 ++ test/api/test_op_construct.cpp | 23 ++ test/api/test_save_load.cpp | 23 ++ test/api/test_tf_parser.cpp | 23 ++ test/argument_test.cpp | 23 ++ test/auto_contiguous_test.cpp | 23 ++ test/const_eval_test.cpp | 23 ++ test/context_test.cpp | 23 ++ test/convert_to_json.cpp | 23 ++ test/dead_code_elimination_test.cpp | 23 ++ test/dom.cpp | 23 ++ test/dot_apply_alpha_beta_test.cpp | 23 ++ test/eliminate_allocation_test.cpp | 23 ++ test/eliminate_common_subexpression_test.cpp | 23 ++ test/eliminate_concat_test.cpp | 23 ++ test/eliminate_contiguous_test.cpp | 23 ++ test/eliminate_data_type_test.cpp | 23 ++ test/eliminate_identity_test.cpp | 23 ++ test/eliminate_pad_test.cpp | 23 ++ test/eval_test.cpp | 23 ++ test/float_equal.cpp | 23 ++ test/fuse_pointwise.cpp | 23 ++ test/generate.cpp | 23 ++ test/gpu/adjust_allocation.cpp | 23 ++ test/gpu/context_serialize.cpp | 23 ++ test/gpu/jit.cpp | 23 ++ test/gpu/literal.cpp | 23 ++ test/gpu/pack_args.cpp | 23 ++ test/gpu/pack_int8_args.cpp | 23 ++ test/gpu/quantization.cpp | 23 ++ test/include/basic_ops.hpp | 23 ++ test/include/pointwise.hpp | 23 ++ test/include/rob.hpp | 23 ++ test/include/test.hpp | 23 ++ test/inline_module_test.cpp | 23 ++ test/insert_pad_test.cpp | 23 ++ test/jit.cpp | 23 ++ test/json_test.cpp | 23 ++ test/literal_test.cpp | 23 ++ test/main.cpp | 23 ++ test/marker.cpp | 23 ++ test/matcher.cpp | 23 ++ test/memory_coloring_test.cpp | 23 ++ test/module_test.cpp | 23 ++ test/msgpack.cpp | 23 ++ test/normalize_ops_test.cpp | 23 ++ test/onnx/gen_onnx.py | 23 ++ test/onnx/onnx_rnn_test.cpp | 23 ++ test/onnx/onnx_test.cpp | 23 ++ test/onnx/verify_onnx.cpp | 23 ++ test/op_shape_test.cpp | 23 ++ test/operation.cpp | 23 ++ test/operators.cpp | 23 ++ test/output_alias.cpp | 23 ++ test/pad_calc_test.cpp | 23 ++ test/perf_report.cpp | 23 ++ test/print_graph_test.cpp | 23 ++ test/program_test.cpp | 23 ++ test/propagate_constant_test.cpp | 23 ++ test/py/CMakeLists.txt | 23 ++ test/py/onnx_backend_test.py | 23 ++ test/py/test_array.py | 23 ++ test/py/test_cpu.py | 23 ++ test/py/test_gpu.py | 23 ++ test/py/test_gpu_offload.py | 23 ++ test/py/test_module_construct.py | 23 ++ test/py/test_numpy.py | 23 ++ test/py/test_op.py | 23 ++ test/py/test_save_load.py | 23 ++ test/py/test_shape.py | 23 ++ test/quantization.cpp | 23 ++ test/reduce_dims.cpp | 23 ++ test/ref_dev_examples.cpp | 23 ++ test/ref_dot_op_test.cpp | 23 ++ test/ref_loop_test.cpp | 23 ++ test/ref_ops_nonstd_shape_test.cpp | 23 ++ test/ref_ops_test.cpp | 23 ++ test/ref_rnn_ops_test.cpp | 23 ++ test/replace_allocate.cpp | 23 ++ test/rewrite_batchnorm_test.cpp | 23 ++ test/rewrite_pooling_test.cpp | 23 ++ test/rewrite_quantization_test.cpp | 23 ++ test/run_loop_test.cpp | 23 ++ test/schedule_test.cpp | 23 ++ test/serialize_program.cpp | 23 ++ test/serialize_test.cpp | 23 ++ test/shape_test.cpp | 23 ++ test/simplify_algebra_test.cpp | 23 ++ test/simplify_qdq_test.cpp | 23 ++ test/simplify_reshapes_test.cpp | 23 ++ test/stringutils.cpp | 23 ++ test/targets.cpp | 23 ++ test/tf/gen_tf_pb.py | 23 ++ test/tf/tf_test.cpp | 23 ++ test/type_name.cpp | 23 ++ test/validate.cpp | 23 ++ test/value_test.cpp | 23 ++ test/verify/CMakeLists.txt | 23 ++ test/verify/auto_print.cpp | 23 ++ test/verify/auto_print.hpp | 23 ++ test/verify/batch_quant_dot_1.cpp | 23 ++ test/verify/batch_quant_dot_2.cpp | 23 ++ test/verify/batch_quant_dot_3.cpp | 23 ++ test/verify/batch_quant_dot_4.cpp | 23 ++ test/verify/batch_quant_dot_5.cpp | 23 ++ test/verify/gemm_2args_bmv.cpp | 23 ++ test/verify/gemm_2args_mm_1.cpp | 23 ++ test/verify/gemm_2args_mm_2.cpp | 23 ++ test/verify/gemm_2args_mm_3.cpp | 23 ++ test/verify/gemm_2args_mm_4.cpp | 23 ++ test/verify/gemm_2args_mm_5.cpp | 23 ++ test/verify/gemm_2args_mm_6.cpp | 23 ++ test/verify/gemm_2args_mm_7.cpp | 23 ++ test/verify/gemm_2args_mv.cpp | 23 ++ test/verify/gemm_2args_vbm.cpp | 23 ++ test/verify/gemm_2args_vm.cpp | 23 ++ test/verify/gemm_2args_vv.cpp | 23 ++ test/verify/gemm_add.cpp | 23 ++ test/verify/gemm_literal.cpp | 23 ++ test/verify/gemm_multi_3args.cpp | 23 ++ test/verify/gemm_multi_3args_alpha0.cpp | 23 ++ test/verify/gemm_multi_3args_beta0.cpp | 23 ++ test/verify/gemm_multi_3args_c25.cpp | 23 ++ test/verify/gemm_multi_dim_2.cpp | 23 ++ test/verify/gemm_multi_dim_2_3.cpp | 23 ++ test/verify/gemm_multi_transpose.cpp | 23 ++ test/verify/main.cpp | 23 ++ test/verify/quant_conv.cpp | 23 ++ test/verify/quant_conv_default_mode.cpp | 23 ++ test/verify/quant_conv_int8x4_default.cpp | 23 ++ test/verify/quant_conv_padding.cpp | 23 ++ test/verify/quant_conv_padding_stride.cpp | 23 ++ test/verify/quant_conv_valid_mode.cpp | 23 ++ test/verify/quant_dot_3args_1.cpp | 23 ++ test/verify/quant_dot_3args_2.cpp | 23 ++ test/verify/quant_dot_3args_3.cpp | 23 ++ test/verify/quant_dot_3args_4.cpp | 23 ++ test/verify/quant_dot_3args_5.cpp | 23 ++ test/verify/run_verify.cpp | 23 ++ test/verify/run_verify.hpp | 23 ++ test/verify/test_abs.cpp | 23 ++ test/verify/test_acos.cpp | 23 ++ test/verify/test_acosh.cpp | 23 ++ test/verify/test_add.cpp | 23 ++ test/verify/test_add_broadcast.cpp | 23 ++ test/verify/test_add_broadcast2.cpp | 23 ++ test/verify/test_add_broadcast3.cpp | 23 ++ test/verify/test_add_broadcast4.cpp | 23 ++ test/verify/test_add_broadcast5.cpp | 23 ++ test/verify/test_add_broadcast6.cpp | 23 ++ test/verify/test_add_gelu.cpp | 23 ++ test/verify/test_add_half.cpp | 23 ++ test/verify/test_add_relu.cpp | 23 ++ test/verify/test_add_relu_add.cpp | 23 ++ test/verify/test_add_sigmoid.cpp | 23 ++ test/verify/test_add_tanh.cpp | 23 ++ test/verify/test_and.cpp | 23 ++ test/verify/test_arg_ops.cpp | 23 ++ test/verify/test_asin.cpp | 23 ++ test/verify/test_asinh.cpp | 23 ++ test/verify/test_atan.cpp | 23 ++ test/verify/test_atanh.cpp | 23 ++ test/verify/test_avg_pooling_1d.cpp | 23 ++ test/verify/test_avg_pooling_3d.cpp | 23 ++ test/verify/test_avg_pooling_3d_opt.cpp | 23 ++ test/verify/test_avg_pooling_ceil_3d.cpp | 23 ++ test/verify/test_batchnorm_1d.cpp | 23 ++ test/verify/test_batchnorm_1d_per_actv.cpp | 23 ++ test/verify/test_batchnorm_2d_per_actv.cpp | 23 ++ test/verify/test_batchnorm_3d.cpp | 23 ++ test/verify/test_batchnorm_3d_per_actv.cpp | 23 ++ test/verify/test_batchnorm_inference.cpp | 23 ++ test/verify/test_batchnorm_inference_2.cpp | 23 ++ test/verify/test_ceil.cpp | 23 ++ test/verify/test_clip.cpp | 23 ++ test/verify/test_concat_axis_0.cpp | 23 ++ test/verify/test_concat_axis_1.cpp | 23 ++ test/verify/test_concat_axis_neg_1.cpp | 23 ++ test/verify/test_concat_pooling.cpp | 23 ++ test/verify/test_concat_relu.cpp | 23 ++ test/verify/test_concat_transpose.cpp | 23 ++ test/verify/test_concat_transpose2.cpp | 23 ++ test/verify/test_concat_transpose3.cpp | 23 ++ test/verify/test_contiguous.cpp | 23 ++ test/verify/test_contiguous_broadcast.cpp | 23 ++ .../test_contiguous_broadcast_transpose.cpp | 23 ++ test/verify/test_conv.cpp | 23 ++ test/verify/test_conv2.cpp | 23 ++ test/verify/test_conv3d.cpp | 23 ++ test/verify/test_conv_add.cpp | 23 ++ .../verify/test_conv_add_1x1_diff_strides.cpp | 23 ++ test/verify/test_conv_bias_clipped_relu.cpp | 23 ++ test/verify/test_conv_bn.cpp | 23 ++ test/verify/test_conv_bn_add.cpp | 23 ++ test/verify/test_conv_bn_relu_pooling.cpp | 23 ++ test/verify/test_conv_bn_relu_pooling2.cpp | 23 ++ test/verify/test_conv_pooling.cpp | 23 ++ test/verify/test_conv_relu.cpp | 23 ++ test/verify/test_conv_relu_half.cpp | 23 ++ test/verify/test_convert.cpp | 23 ++ test/verify/test_cos.cpp | 23 ++ test/verify/test_cosh.cpp | 23 ++ test/verify/test_deconv.cpp | 23 ++ test/verify/test_deconv_1d.cpp | 23 ++ test/verify/test_deconv_2x3.cpp | 23 ++ test/verify/test_deconv_3d.cpp | 23 ++ test/verify/test_dequantizelinear.cpp | 23 ++ test/verify/test_div.cpp | 23 ++ test/verify/test_div2.cpp | 23 ++ test/verify/test_elu.cpp | 23 ++ test/verify/test_equal.cpp | 23 ++ test/verify/test_equal_brcst.cpp | 23 ++ test/verify/test_erf.cpp | 23 ++ test/verify/test_exp.cpp | 23 ++ test/verify/test_floor.cpp | 23 ++ test/verify/test_fp32_fp16_add.cpp | 23 ++ test/verify/test_fp32_fp16_ladd.cpp | 23 ++ test/verify/test_fp32_fp16_lall.cpp | 23 ++ test/verify/test_fp32_fp16_sub.cpp | 23 ++ test/verify/test_gather.cpp | 23 ++ test/verify/test_gather_1d_index.cpp | 23 ++ test/verify/test_gather_neg_axis.cpp | 23 ++ test/verify/test_gather_neg_indices.cpp | 23 ++ test/verify/test_gather_scalar_index.cpp | 23 ++ test/verify/test_gather_scalar_output.cpp | 23 ++ test/verify/test_gathernd_batch_dims_1.cpp | 23 ++ test/verify/test_gathernd_batch_dims_2.cpp | 23 ++ test/verify/test_gathernd_default.cpp | 23 ++ .../verify/test_gathernd_negative_indices.cpp | 23 ++ test/verify/test_gelu.cpp | 23 ++ test/verify/test_gemm.cpp | 23 ++ test/verify/test_gemm_copy.cpp | 23 ++ test/verify/test_gemm_ex.cpp | 23 ++ test/verify/test_gemm_half.cpp | 23 ++ test/verify/test_gemm_ld.cpp | 23 ++ test/verify/test_gemm_transposea.cpp | 23 ++ test/verify/test_gemm_transposea_ex.cpp | 23 ++ test/verify/test_gemm_transposeab.cpp | 23 ++ test/verify/test_gemm_transposeb.cpp | 23 ++ test/verify/test_gemm_transposeb_ex.cpp | 23 ++ test/verify/test_global_avg_pooling.cpp | 23 ++ test/verify/test_global_max_pooling.cpp | 23 ++ test/verify/test_greater.cpp | 23 ++ test/verify/test_greater_brcst.cpp | 23 ++ test/verify/test_group_conv.cpp | 23 ++ test/verify/test_gru_bidirct.cpp | 23 ++ test/verify/test_gru_bidirct_3args.cpp | 23 ++ test/verify/test_gru_bidirct_3args_und.cpp | 23 ++ test/verify/test_gru_bidirct_default_actv.cpp | 23 ++ .../verify/test_gru_bidirct_default_actv1.cpp | 23 ++ test/verify/test_gru_bidirct_seq1.cpp | 23 ++ test/verify/test_gru_forward.cpp | 23 ++ test/verify/test_gru_forward_3args.cpp | 23 ++ test/verify/test_gru_forward_3args_und.cpp | 23 ++ test/verify/test_gru_forward_default_actv.cpp | 23 ++ .../verify/test_gru_forward_default_actv1.cpp | 23 ++ test/verify/test_gru_forward_seq1.cpp | 23 ++ test/verify/test_gru_reverse_3args.cpp | 23 ++ test/verify/test_gru_reverse_last.cpp | 23 ++ test/verify/test_gru_two_outputs.cpp | 23 ++ test/verify/test_hsqrt.cpp | 23 ++ test/verify/test_if_literal.cpp | 23 ++ test/verify/test_if_lp.cpp | 23 ++ test/verify/test_if_param.cpp | 23 ++ test/verify/test_isnan_broadcast.cpp | 23 ++ test/verify/test_isnan_float.cpp | 23 ++ test/verify/test_isnan_half.cpp | 23 ++ test/verify/test_layernorm.cpp | 23 ++ test/verify/test_leaky_relu.cpp | 23 ++ test/verify/test_less.cpp | 23 ++ test/verify/test_less_brcst.cpp | 23 ++ test/verify/test_literals.cpp | 23 ++ test/verify/test_log.cpp | 23 ++ test/verify/test_logsoftmax.cpp | 23 ++ test/verify/test_logsoftmax1.cpp | 23 ++ test/verify/test_loop.cpp | 23 ++ test/verify/test_lstm_bidirct_3args.cpp | 23 ++ test/verify/test_lstm_bidirct_3args_und.cpp | 23 ++ .../verify/test_lstm_bidirct_default_actv.cpp | 23 ++ .../test_lstm_bidirct_default_actv1.cpp | 23 ++ .../test_lstm_bidirct_default_actv2.cpp | 23 ++ test/verify/test_lstm_bidirct_hs.cpp | 23 ++ test/verify/test_lstm_bidirct_last.cpp | 23 ++ test/verify/test_lstm_bidirct_seq1.cpp | 23 ++ test/verify/test_lstm_forward_3args.cpp | 23 ++ test/verify/test_lstm_forward_3args_und.cpp | 23 ++ .../verify/test_lstm_forward_default_actv.cpp | 23 ++ .../test_lstm_forward_default_actv1.cpp | 23 ++ test/verify/test_lstm_forward_hs.cpp | 23 ++ test/verify/test_lstm_forward_last.cpp | 23 ++ test/verify/test_lstm_forward_seq1.cpp | 23 ++ test/verify/test_lstm_reverse_3args.cpp | 23 ++ .../test_lstm_reverse_3args_cell_output.cpp | 23 ++ test/verify/test_lstm_reverse_last.cpp | 23 ++ test/verify/test_lstm_three_outputs.cpp | 23 ++ test/verify/test_lstm_two_outputs.cpp | 23 ++ test/verify/test_max_pooling_ceil_3d.cpp | 23 ++ test/verify/test_mul.cpp | 23 ++ test/verify/test_mul_add.cpp | 23 ++ test/verify/test_multinomial.cpp | 23 ++ test/verify/test_neg.cpp | 23 ++ test/verify/test_nms.cpp | 23 ++ test/verify/test_nonstd_gather.cpp | 23 ++ test/verify/test_nonzero.cpp | 23 ++ test/verify/test_nonzero_half.cpp | 23 ++ test/verify/test_not.cpp | 23 ++ test/verify/test_or.cpp | 23 ++ test/verify/test_pad.cpp | 23 ++ test/verify/test_pad_highest.cpp | 23 ++ test/verify/test_pad_int8.cpp | 23 ++ test/verify/test_pad_lowest.cpp | 23 ++ test/verify/test_pad_transposed.cpp | 23 ++ test/verify/test_pooling_autopad.cpp | 23 ++ test/verify/test_pow.cpp | 23 ++ test/verify/test_prefix_scan_sum_2d.cpp | 23 ++ .../verify/test_prefix_scan_sum_exclusive.cpp | 23 ++ ...test_prefix_scan_sum_exclusive_reverse.cpp | 23 ++ test/verify/test_prefix_scan_sum_reverse.cpp | 23 ++ test/verify/test_prelu_brcst.cpp | 23 ++ test/verify/test_quantizelinear.cpp | 23 ++ test/verify/test_quantizelinear_int32.cpp | 23 ++ test/verify/test_recip.cpp | 23 ++ test/verify/test_reduce_op_large.cpp | 23 ++ test/verify/test_reduce_op_small.cpp | 23 ++ test/verify/test_relu_lrn.cpp | 23 ++ test/verify/test_reverse.cpp | 23 ++ test/verify/test_reverse_multiaxis.cpp | 23 ++ test/verify/test_reverse_negaxis.cpp | 23 ++ test/verify/test_rnn_3args.cpp | 23 ++ test/verify/test_rnn_4args.cpp | 23 ++ test/verify/test_rnn_5args.cpp | 23 ++ test/verify/test_rnn_bi_3args.cpp | 23 ++ test/verify/test_rnn_bidirectional.cpp | 23 ++ test/verify/test_rnn_bidirectional10.cpp | 23 ++ test/verify/test_rnn_forward.cpp | 23 ++ test/verify/test_rnn_forward10.cpp | 23 ++ test/verify/test_rnn_reverse.cpp | 23 ++ test/verify/test_rnn_reverse2.cpp | 23 ++ test/verify/test_rnn_sql_1.cpp | 23 ++ test/verify/test_rnn_sql_2.cpp | 23 ++ test/verify/test_roialign.cpp | 23 ++ test/verify/test_roialign_nondefault.cpp | 23 ++ test/verify/test_roialign_nonstandard.cpp | 23 ++ test/verify/test_round.cpp | 23 ++ test/verify/test_rsqrt.cpp | 23 ++ test/verify/test_scale.cpp | 23 ++ test/verify/test_scatter0.cpp | 23 ++ test/verify/test_scatter1.cpp | 23 ++ test/verify/test_scatternd.cpp | 23 ++ test/verify/test_scatternd_add.cpp | 23 ++ test/verify/test_scatternd_mul.cpp | 23 ++ test/verify/test_sigmoid.cpp | 23 ++ test/verify/test_sign.cpp | 23 ++ test/verify/test_sin.cpp | 23 ++ test/verify/test_sinh.cpp | 23 ++ test/verify/test_slice.cpp | 23 ++ test/verify/test_slice_reverse.cpp | 23 ++ test/verify/test_slice_reverse_step.cpp | 23 ++ test/verify/test_slice_sin.cpp | 23 ++ test/verify/test_slice_step_reverse.cpp | 23 ++ test/verify/test_softmax.cpp | 23 ++ test/verify/test_softmax1.cpp | 23 ++ test/verify/test_softmax2.cpp | 23 ++ test/verify/test_softmax3.cpp | 23 ++ test/verify/test_sqrt.cpp | 23 ++ test/verify/test_sqrt_half1.cpp | 23 ++ test/verify/test_sqrt_half2.cpp | 23 ++ test/verify/test_sqrt_half4.cpp | 23 ++ test/verify/test_step.cpp | 23 ++ test/verify/test_step_broadcast_transpose.cpp | 23 ++ test/verify/test_step_transpose.cpp | 23 ++ test/verify/test_sub.cpp | 23 ++ test/verify/test_sub2.cpp | 23 ++ test/verify/test_sub_int.cpp | 23 ++ test/verify/test_tan.cpp | 23 ++ test/verify/test_tanh.cpp | 23 ++ test/verify/test_topk_0.cpp | 23 ++ test/verify/test_topk_1.cpp | 23 ++ test/verify/test_topk_2.cpp | 23 ++ test/verify/test_topk_3.cpp | 23 ++ test/verify/test_trans_abs.cpp | 23 ++ test/verify/test_trans_ret.cpp | 23 ++ test/verify/test_trans_tanh.cpp | 23 ++ test/verify/test_trans_tanh1.cpp | 23 ++ test/verify/test_transpose.cpp | 23 ++ test/verify/test_triadd.cpp | 23 ++ test/verify/test_triadd2.cpp | 23 ++ test/verify/test_triadd_broadcast.cpp | 23 ++ test/verify/test_triadd_relu.cpp | 23 ++ test/verify/test_triadd_sigmoid.cpp | 23 ++ test/verify/test_triadd_tanh.cpp | 23 ++ test/verify/test_var_sl_gru_bidirct.cpp | 23 ++ test/verify/test_var_sl_gru_forward.cpp | 23 ++ test/verify/test_where.cpp | 23 ++ test/verify/test_where2.cpp | 23 ++ test/verify/test_xor.cpp | 23 ++ test/verify/verify_program.cpp | 23 ++ test/verify/verify_program.hpp | 23 ++ tools/CMakeLists.txt | 23 ++ tools/api.py | 23 ++ tools/api/api.cpp | 23 ++ tools/api/migraphx.h | 23 ++ tools/build_and_test_onnxrt.sh | 23 ++ tools/download_models.sh | 24 ++ tools/generate.sh | 23 ++ tools/include/allocation_model.hpp | 23 ++ tools/include/concat_opt.hpp | 23 ++ tools/include/context.hpp | 23 ++ tools/include/marker.hpp | 23 ++ tools/include/operation.hpp | 23 ++ tools/include/pass.hpp | 23 ++ tools/include/schedule_model.hpp | 23 ++ tools/include/stream_model.hpp | 23 ++ tools/include/target.hpp | 23 ++ tools/install_prereqs.sh | 24 ++ tools/license_stamper.py | 251 ++++++++++++++++++ tools/roctx.py | 24 ++ tools/te.py | 23 ++ tools/test_runner.py | 23 ++ 1325 files changed, 30708 insertions(+), 34 deletions(-) delete mode 100755 examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/Untitled-checkpoint.ipynb mode change 100755 => 100644 examples/vision/cpp_mnist/mnist_inference.cpp mode change 100755 => 100644 src/compile_src.cpp mode change 100755 => 100644 src/dom_info.cpp mode change 100755 => 100644 src/driver/marker_roctx.hpp mode change 100755 => 100644 src/dynamic_loader.cpp mode change 100755 => 100644 src/eliminate_allocation.cpp mode change 100755 => 100644 src/file_buffer.cpp mode change 100755 => 100644 src/include/migraphx/adjust_allocation.hpp mode change 100755 => 100644 src/include/migraphx/argument.hpp mode change 100755 => 100644 src/include/migraphx/builtin.hpp mode change 100755 => 100644 src/include/migraphx/check_shapes.hpp mode change 100755 => 100644 src/include/migraphx/cloneable.hpp mode change 100755 => 100644 src/include/migraphx/config.hpp mode change 100755 => 100644 src/include/migraphx/dynamic_loader.hpp mode change 100755 => 100644 src/include/migraphx/eliminate_contiguous.hpp mode change 100755 => 100644 src/include/migraphx/eliminate_data_type.hpp mode change 100755 => 100644 src/include/migraphx/errors.hpp mode change 100755 => 100644 src/include/migraphx/file_buffer.hpp mode change 100755 => 100644 src/include/migraphx/functional.hpp mode change 100755 => 100644 src/include/migraphx/fuse_pointwise.hpp mode change 100755 => 100644 src/include/migraphx/generate.hpp mode change 100755 => 100644 src/include/migraphx/instruction_ref.hpp mode change 100755 => 100644 src/include/migraphx/iterator.hpp mode change 100755 => 100644 src/include/migraphx/iterator_for.hpp mode change 100755 => 100644 src/include/migraphx/lifetime.hpp mode change 100755 => 100644 src/include/migraphx/make_shared_array.hpp mode change 100755 => 100644 src/include/migraphx/marker.hpp mode change 100755 => 100644 src/include/migraphx/match/gelu_erf.hpp mode change 100755 => 100644 src/include/migraphx/op/add.hpp mode change 100755 => 100644 src/include/migraphx/op/as_shape.hpp mode change 100755 => 100644 src/include/migraphx/op/binary.hpp mode change 100755 => 100644 src/include/migraphx/op/broadcast.hpp mode change 100755 => 100644 src/include/migraphx/op/contiguous.hpp mode change 100755 => 100644 src/include/migraphx/op/convolution.hpp mode change 100755 => 100644 src/include/migraphx/op/div.hpp mode change 100755 => 100644 src/include/migraphx/op/elu.hpp mode change 100755 => 100644 src/include/migraphx/op/equal.hpp mode change 100755 => 100644 src/include/migraphx/op/flatten.hpp mode change 100755 => 100644 src/include/migraphx/op/greater.hpp mode change 100755 => 100644 src/include/migraphx/op/identity.hpp mode change 100755 => 100644 src/include/migraphx/op/less.hpp mode change 100755 => 100644 src/include/migraphx/op/load.hpp mode change 100755 => 100644 src/include/migraphx/op/logical_and.hpp mode change 100755 => 100644 src/include/migraphx/op/logical_or.hpp mode change 100755 => 100644 src/include/migraphx/op/logical_xor.hpp mode change 100755 => 100644 src/include/migraphx/op/lstm.hpp mode change 100755 => 100644 src/include/migraphx/op/mul.hpp mode change 100755 => 100644 src/include/migraphx/op/multibroadcast.hpp mode change 100755 => 100644 src/include/migraphx/op/neg.hpp mode change 100755 => 100644 src/include/migraphx/op/quant_dot.hpp mode change 100755 => 100644 src/include/migraphx/op/reduce_mean.hpp mode change 100755 => 100644 src/include/migraphx/op/reduce_op.hpp mode change 100755 => 100644 src/include/migraphx/op/relu.hpp mode change 100755 => 100644 src/include/migraphx/op/reverse.hpp mode change 100755 => 100644 src/include/migraphx/op/scalar.hpp mode change 100755 => 100644 src/include/migraphx/op/sqdiff.hpp mode change 100755 => 100644 src/include/migraphx/op/step.hpp mode change 100755 => 100644 src/include/migraphx/op/sub.hpp mode change 100755 => 100644 src/include/migraphx/op/transpose.hpp mode change 100755 => 100644 src/include/migraphx/op/unary_not.hpp mode change 100755 => 100644 src/include/migraphx/operators.hpp mode change 100755 => 100644 src/include/migraphx/pass_manager.hpp mode change 100755 => 100644 src/include/migraphx/permutation.hpp mode change 100755 => 100644 src/include/migraphx/preallocate_param.hpp mode change 100755 => 100644 src/include/migraphx/process.hpp mode change 100755 => 100644 src/include/migraphx/ranges.hpp mode change 100755 => 100644 src/include/migraphx/reflect.hpp mode change 100755 => 100644 src/include/migraphx/register_op.hpp mode change 100755 => 100644 src/include/migraphx/serialize.hpp mode change 100755 => 100644 src/include/migraphx/verify.hpp mode change 100755 => 100644 src/inline_module.cpp mode change 100755 => 100644 src/onnx/conv.cpp mode change 100755 => 100644 src/onnx/include/migraphx/onnx/checks.hpp mode change 100755 => 100644 src/onnx/include/migraphx/onnx/conv.hpp mode change 100755 => 100644 src/onnx/include/migraphx/onnx/map_activation_functions.hpp mode change 100755 => 100644 src/onnx/include/migraphx/onnx/op_parser.hpp mode change 100755 => 100644 src/opt/memory_coloring_impl.hpp mode change 100755 => 100644 src/pass_manager.cpp mode change 100755 => 100644 src/preallocate_param.cpp mode change 100755 => 100644 src/process.cpp mode change 100755 => 100644 src/targets/cpu/allocate.cpp mode change 100755 => 100644 src/targets/cpu/allocation_model.cpp mode change 100755 => 100644 src/targets/cpu/concat.cpp mode change 100755 => 100644 src/targets/cpu/copy.cpp mode change 100755 => 100644 src/targets/cpu/erf.cpp mode change 100755 => 100644 src/targets/cpu/gather.cpp mode change 100755 => 100644 src/targets/cpu/include/migraphx/cpu/context.hpp mode change 100755 => 100644 src/targets/cpu/include/migraphx/cpu/fuse_ops.hpp mode change 100755 => 100644 src/targets/cpu/include/migraphx/cpu/parallel.hpp mode change 100755 => 100644 src/targets/cpu/include/migraphx/cpu/target.hpp mode change 100755 => 100644 src/targets/cpu/include/migraphx/cpu/write_literals.hpp mode change 100755 => 100644 src/targets/cpu/layernorm.cpp mode change 100755 => 100644 src/targets/cpu/lowering.cpp mode change 100755 => 100644 src/targets/cpu/reorder.cpp mode change 100755 => 100644 src/targets/cpu/sub.cpp mode change 100755 => 100644 src/targets/cpu/target.cpp mode change 100755 => 100644 src/targets/gpu/code_object_op.cpp mode change 100755 => 100644 src/targets/gpu/device/include/migraphx/gpu/device/reduce_ops.hpp mode change 100755 => 100644 src/targets/gpu/device_name.cpp mode change 100755 => 100644 src/targets/gpu/driver/include/migraphx/gpu/driver/perf.hpp mode change 100755 => 100644 src/targets/gpu/driver/perf.cpp mode change 100755 => 100644 src/targets/gpu/include/migraphx/gpu/code_object_op.hpp mode change 100755 => 100644 src/targets/gpu/include/migraphx/gpu/compile_hip.hpp mode change 100755 => 100644 src/targets/gpu/include/migraphx/gpu/unary_not.hpp mode change 100755 => 100644 src/targets/gpu/int8_conv_pack.cpp mode change 100755 => 100644 src/targets/gpu/kernel.cpp mode change 100755 => 100644 src/targets/gpu/kernels/include/migraphx/kernels/args.hpp mode change 100755 => 100644 src/targets/gpu/quant_convolution.cpp mode change 100755 => 100644 src/targets/gpu/reverse.cpp mode change 100755 => 100644 src/tmp_dir.cpp mode change 100755 => 100644 test/api/test_op_construct.cpp mode change 100755 => 100644 test/argument_test.cpp mode change 100755 => 100644 test/eliminate_contiguous_test.cpp mode change 100755 => 100644 test/eliminate_data_type_test.cpp mode change 100755 => 100644 test/fuse_pointwise.cpp mode change 100755 => 100644 test/include/basic_ops.hpp mode change 100755 => 100644 test/include/pointwise.hpp mode change 100755 => 100644 test/jit.cpp mode change 100755 => 100644 test/literal_test.cpp mode change 100755 => 100644 test/main.cpp mode change 100755 => 100644 test/marker.cpp mode change 100755 => 100644 test/memory_coloring_test.cpp mode change 100755 => 100644 test/onnx/onnx_rnn_test.cpp mode change 100755 => 100644 test/operators.cpp mode change 100755 => 100644 test/schedule_test.cpp mode change 100755 => 100644 test/serialize_test.cpp mode change 100755 => 100644 test/shape_test.cpp mode change 100755 => 100644 test/verify/auto_print.hpp mode change 100755 => 100644 test/verify/quant_conv_default_mode.cpp mode change 100755 => 100644 test/verify/quant_conv_valid_mode.cpp mode change 100755 => 100644 test/verify/run_verify.hpp mode change 100755 => 100644 test/verify/test_acos.cpp mode change 100755 => 100644 test/verify/test_add_relu_add.cpp mode change 100755 => 100644 test/verify/test_asin.cpp mode change 100755 => 100644 test/verify/test_asinh.cpp mode change 100755 => 100644 test/verify/test_atan.cpp mode change 100755 => 100644 test/verify/test_avg_pooling_1d.cpp mode change 100755 => 100644 test/verify/test_batchnorm_1d_per_actv.cpp mode change 100755 => 100644 test/verify/test_batchnorm_2d_per_actv.cpp mode change 100755 => 100644 test/verify/test_batchnorm_3d_per_actv.cpp mode change 100755 => 100644 test/verify/test_convert.cpp mode change 100755 => 100644 test/verify/test_cos.cpp mode change 100755 => 100644 test/verify/test_cosh.cpp mode change 100755 => 100644 test/verify/test_global_avg_pooling.cpp mode change 100755 => 100644 test/verify/test_global_max_pooling.cpp mode change 100755 => 100644 test/verify/test_group_conv.cpp mode change 100755 => 100644 test/verify/test_layernorm.cpp mode change 100755 => 100644 test/verify/test_log.cpp mode change 100755 => 100644 test/verify/test_logsoftmax.cpp mode change 100755 => 100644 test/verify/test_pad_highest.cpp mode change 100755 => 100644 test/verify/test_pad_int8.cpp mode change 100755 => 100644 test/verify/test_pad_lowest.cpp mode change 100755 => 100644 test/verify/test_pooling_autopad.cpp mode change 100755 => 100644 test/verify/test_recip.cpp mode change 100755 => 100644 test/verify/test_reduce_op_large.cpp mode change 100755 => 100644 test/verify/test_reduce_op_small.cpp mode change 100755 => 100644 test/verify/test_sinh.cpp mode change 100755 => 100644 test/verify/test_softmax.cpp mode change 100755 => 100644 tools/include/allocation_model.hpp mode change 100755 => 100644 tools/include/concat_opt.hpp mode change 100755 => 100644 tools/include/marker.hpp create mode 100644 tools/license_stamper.py diff --git a/CMakeLists.txt b/CMakeLists.txt index 53bc376cb..ed9390c6a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### cmake_minimum_required(VERSION 3.5) if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") diff --git a/LICENSE b/LICENSE index a11779be3..2d774a9d6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,6 @@ -/* The MIT License (MIT) -Copyright (c) 2015-Present Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -19,6 +18,4 @@ 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. -*/ - +THE SOFTWARE. \ No newline at end of file diff --git a/dev-requirements.txt b/dev-requirements.txt index ee43bebe4..1a7b89519 100755 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### pfultz2/rocm-recipes facebook/zstd@v1.4.5 -X subdir -DCMAKE_DIR=build/cmake ccache@v4.1 diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 4622723a7..2201c1750 100755 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### project(migraphx-doc) find_package(ROCM REQUIRED) diff --git a/doc/requirements.txt b/doc/requirements.txt index 725376a06..0d851400a 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### docutils==0.17.1 sphinx==4.2.0 breathe==4.31.0 diff --git a/doc/src/conf.py b/doc/src/conf.py index ec6a48d3e..2e3c8a517 100755 --- a/doc/src/conf.py +++ b/doc/src/conf.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### # -*- coding: utf-8 -*- # # MIGraphX documentation build configuration file, created by diff --git a/examples/migraphx/cpp_parse_load_save/CMakeLists.txt b/examples/migraphx/cpp_parse_load_save/CMakeLists.txt index 0e7a20a94..b0a9e80fb 100755 --- a/examples/migraphx/cpp_parse_load_save/CMakeLists.txt +++ b/examples/migraphx/cpp_parse_load_save/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### cmake_minimum_required(VERSION 3.5) project (PLS) diff --git a/examples/migraphx/cpp_parse_load_save/parse_load_save.cpp b/examples/migraphx/cpp_parse_load_save/parse_load_save.cpp index aa93682f5..7d915a955 100644 --- a/examples/migraphx/cpp_parse_load_save/parse_load_save.cpp +++ b/examples/migraphx/cpp_parse_load_save/parse_load_save.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/Untitled-checkpoint.ipynb deleted file mode 100755 index 7fec51502..000000000 --- a/examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/Untitled-checkpoint.ipynb +++ /dev/null @@ -1,6 +0,0 @@ -{ - "cells": [], - "metadata": {}, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/example-checkpoint.ipynb b/examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/example-checkpoint.ipynb index 6e5d2bddf..4581a770c 100755 --- a/examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/example-checkpoint.ipynb +++ b/examples/migraphx/export_frozen_graph_tf2/.ipynb_checkpoints/example-checkpoint.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "metadata": {}, diff --git a/examples/migraphx/export_frozen_graph_tf2/example.ipynb b/examples/migraphx/export_frozen_graph_tf2/example.ipynb index f6a8533eb..274065593 100755 --- a/examples/migraphx/export_frozen_graph_tf2/example.ipynb +++ b/examples/migraphx/export_frozen_graph_tf2/example.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "metadata": {}, diff --git a/examples/nlp/python_bert_squad/BERT-Squad.ipynb b/examples/nlp/python_bert_squad/BERT-Squad.ipynb index 9c713a28d..36f298b4d 100755 --- a/examples/nlp/python_bert_squad/BERT-Squad.ipynb +++ b/examples/nlp/python_bert_squad/BERT-Squad.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "metadata": {}, diff --git a/examples/nlp/python_bert_squad/bert-squad-migraphx.py b/examples/nlp/python_bert_squad/bert-squad-migraphx.py index d6c7a8bd4..38e4ea251 100755 --- a/examples/nlp/python_bert_squad/bert-squad-migraphx.py +++ b/examples/nlp/python_bert_squad/bert-squad-migraphx.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import numpy as np import json import os.path diff --git a/examples/nlp/python_bert_squad/requirements_bertsquad.txt b/examples/nlp/python_bert_squad/requirements_bertsquad.txt index 34bce678a..9825844f7 100644 --- a/examples/nlp/python_bert_squad/requirements_bertsquad.txt +++ b/examples/nlp/python_bert_squad/requirements_bertsquad.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### tensorflow==2.7.2 onnxruntime tokenizers \ No newline at end of file diff --git a/examples/vision/cpp_mnist/CMakeLists.txt b/examples/vision/cpp_mnist/CMakeLists.txt index 8b7f2a6c0..e77ff12fa 100755 --- a/examples/vision/cpp_mnist/CMakeLists.txt +++ b/examples/vision/cpp_mnist/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### cmake_minimum_required(VERSION 3.5) project (CAI) diff --git a/examples/vision/cpp_mnist/mnist_inference.cpp b/examples/vision/cpp_mnist/mnist_inference.cpp old mode 100755 new mode 100644 index ecde0aa7c..192f6f450 --- a/examples/vision/cpp_mnist/mnist_inference.cpp +++ b/examples/vision/cpp_mnist/mnist_inference.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/examples/vision/python_3dunet/3dunet_inference.ipynb b/examples/vision/python_3dunet/3dunet_inference.ipynb index a01f679ad..b343cc14c 100755 --- a/examples/vision/python_3dunet/3dunet_inference.ipynb +++ b/examples/vision/python_3dunet/3dunet_inference.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "id": "fee8cfa5", diff --git a/examples/vision/python_3dunet/visualization_utils.py b/examples/vision/python_3dunet/visualization_utils.py index 8372c6b44..066aad42e 100755 --- a/examples/vision/python_3dunet/visualization_utils.py +++ b/examples/vision/python_3dunet/visualization_utils.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import matplotlib.pylab as pylab diff --git a/examples/vision/python_nfnet/nfnet_inference.ipynb b/examples/vision/python_nfnet/nfnet_inference.ipynb index 39ed7f055..20e450608 100755 --- a/examples/vision/python_nfnet/nfnet_inference.ipynb +++ b/examples/vision/python_nfnet/nfnet_inference.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "metadata": {}, diff --git a/examples/vision/python_nfnet/ort_comparison.py b/examples/vision/python_nfnet/ort_comparison.py index 5bdeea2ee..1870663a7 100755 --- a/examples/vision/python_nfnet/ort_comparison.py +++ b/examples/vision/python_nfnet/ort_comparison.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import numpy import onnxruntime as rt @@ -21,6 +44,7 @@ x = numpy.random.random((1, 3, 192, 192)) x = x.astype(numpy.float32) import migraphx + model = migraphx.parse_onnx("dm_nfnet_f0.onnx") model.compile(migraphx.get_target("gpu")) print(model.get_parameter_names()) diff --git a/examples/vision/python_nfnet/requirements_nfnet.txt b/examples/vision/python_nfnet/requirements_nfnet.txt index 8497704fa..13244ebf6 100755 --- a/examples/vision/python_nfnet/requirements_nfnet.txt +++ b/examples/vision/python_nfnet/requirements_nfnet.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### opencv-python onnxruntime image \ No newline at end of file diff --git a/examples/vision/python_resnet50/resnet50_inference.ipynb b/examples/vision/python_resnet50/resnet50_inference.ipynb index 03d36c7f4..a85ac00a5 100755 --- a/examples/vision/python_resnet50/resnet50_inference.ipynb +++ b/examples/vision/python_resnet50/resnet50_inference.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "metadata": {}, diff --git a/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb b/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb index 11a5e4a83..a9f035de6 100755 --- a/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb +++ b/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "metadata": {}, diff --git a/examples/vision/python_super_resolution/requirements.txt b/examples/vision/python_super_resolution/requirements.txt index 0a31e96fb..8b4713500 100755 --- a/examples/vision/python_super_resolution/requirements.txt +++ b/examples/vision/python_super_resolution/requirements.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### matplotlib python-resize-image opencv-python \ No newline at end of file diff --git a/examples/vision/python_unet/requirements.txt b/examples/vision/python_unet/requirements.txt index 806f22116..eff44f804 100755 --- a/examples/vision/python_unet/requirements.txt +++ b/examples/vision/python_unet/requirements.txt @@ -1,2 +1,25 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### numpy matplotlib \ No newline at end of file diff --git a/examples/vision/python_unet/unet_inference.ipynb b/examples/vision/python_unet/unet_inference.ipynb index 88bc850f7..95bd29721 100755 --- a/examples/vision/python_unet/unet_inference.ipynb +++ b/examples/vision/python_unet/unet_inference.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "id": "cd7a3990", diff --git a/examples/vision/python_yolov4/image_processing.py b/examples/vision/python_yolov4/image_processing.py index 0d9d0fc07..db61b6d6f 100644 --- a/examples/vision/python_yolov4/image_processing.py +++ b/examples/vision/python_yolov4/image_processing.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### # All pre- and post-processing methods used below are borrowed from the ONNX MOdel Zoo # https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/yolov4 diff --git a/examples/vision/python_yolov4/yolov4_inference.ipynb b/examples/vision/python_yolov4/yolov4_inference.ipynb index 475c07d8a..5c88f14d1 100644 --- a/examples/vision/python_yolov4/yolov4_inference.ipynb +++ b/examples/vision/python_yolov4/yolov4_inference.ipynb @@ -1,5 +1,33 @@ { "cells": [ + { + "cell_type": "code", + "metadata": {}, + "source": [ + "# The MIT License (MIT)", + "#", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", + "#", + "# 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." + ] + }, + { "cell_type": "markdown", "metadata": {}, diff --git a/requirements.txt b/requirements.txt index 95bec3852..e5732d1ce 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### google/protobuf@v3.11.0 -DCMAKE_POSITION_INDEPENDENT_CODE=On -X subdir -Dprotobuf_BUILD_TESTS=Off nlohmann/json@v3.8.0 blaze,https://bitbucket.org/blaze-lib/blaze/get/f0755dea0e03.tar.gz -X header -DHEADER_DIR=blaze diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 87c0b8807..6d53ded56 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### include(ROCMInstallTargets) include(ROCMPackageConfigHelpers) diff --git a/src/adjust_allocation.cpp b/src/adjust_allocation.cpp index 1bf55eedb..3dad3b7fa 100644 --- a/src/adjust_allocation.cpp +++ b/src/adjust_allocation.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/analyze_streams.cpp b/src/analyze_streams.cpp index 939a72ea0..0f8ac68f8 100644 --- a/src/analyze_streams.cpp +++ b/src/analyze_streams.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/api/CMakeLists.txt b/src/api/CMakeLists.txt index a6eace3d2..28b5d66e3 100644 --- a/src/api/CMakeLists.txt +++ b/src/api/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### add_library(migraphx_c api.cpp diff --git a/src/api/api.cpp b/src/api/api.cpp index 95849e3f9..71d298463 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/api/include/migraphx/migraphx.h b/src/api/include/migraphx/migraphx.h index de397fec2..77a4e3df6 100644 --- a/src/api/include/migraphx/migraphx.h +++ b/src/api/include/migraphx/migraphx.h @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_C_API_MIGRAPHX_H #define MIGRAPHX_GUARD_C_API_MIGRAPHX_H diff --git a/src/api/include/migraphx/migraphx.hpp b/src/api/include/migraphx/migraphx.hpp index 31b768c0e..848f1e192 100644 --- a/src/api/include/migraphx/migraphx.hpp +++ b/src/api/include/migraphx/migraphx.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_API_RTGLIB_MIGRAPHX_HPP #define MIGRAPHX_GUARD_API_RTGLIB_MIGRAPHX_HPP diff --git a/src/api/migraphx.py b/src/api/migraphx.py index 98b123c03..36c7084f2 100755 --- a/src/api/migraphx.py +++ b/src/api/migraphx.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import api diff --git a/src/apply_alpha_beta.cpp b/src/apply_alpha_beta.cpp index 933a915bc..4f9cdf1f0 100644 --- a/src/apply_alpha_beta.cpp +++ b/src/apply_alpha_beta.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/argument.cpp b/src/argument.cpp index 7a01211d7..ba8e821d6 100644 --- a/src/argument.cpp +++ b/src/argument.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/auto_contiguous.cpp b/src/auto_contiguous.cpp index 8816b9a58..1a2d224bd 100644 --- a/src/auto_contiguous.cpp +++ b/src/auto_contiguous.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/common.cpp b/src/common.cpp index ac9599326..a730d5d6d 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/compile_src.cpp b/src/compile_src.cpp old mode 100755 new mode 100644 index 685fe48f2..0618fe9e0 --- a/src/compile_src.cpp +++ b/src/compile_src.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/convert_to_json.cpp b/src/convert_to_json.cpp index 6b1b975a0..f3872fd22 100644 --- a/src/convert_to_json.cpp +++ b/src/convert_to_json.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/cpp_generator.cpp b/src/cpp_generator.cpp index 55b4fa00f..afc8eb6af 100644 --- a/src/cpp_generator.cpp +++ b/src/cpp_generator.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/dead_code_elimination.cpp b/src/dead_code_elimination.cpp index 07d15e506..c611252a9 100644 --- a/src/dead_code_elimination.cpp +++ b/src/dead_code_elimination.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/dom_info.cpp b/src/dom_info.cpp old mode 100755 new mode 100644 index 80ac5e983..400dd80e0 --- a/src/dom_info.cpp +++ b/src/dom_info.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/driver/CMakeLists.txt b/src/driver/CMakeLists.txt index a569d8977..6ed8b2209 100755 --- a/src/driver/CMakeLists.txt +++ b/src/driver/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### add_executable(driver main.cpp diff --git a/src/driver/alexnet.cpp b/src/driver/alexnet.cpp index e1e7a7ed5..4dbfbbaf7 100644 --- a/src/driver/alexnet.cpp +++ b/src/driver/alexnet.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/driver/argument_parser.hpp b/src/driver/argument_parser.hpp index 7d03b6d02..1c4998afe 100644 --- a/src/driver/argument_parser.hpp +++ b/src/driver/argument_parser.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ARGUMENT_PARSER_HPP #define MIGRAPHX_GUARD_RTGLIB_ARGUMENT_PARSER_HPP diff --git a/src/driver/command.hpp b/src/driver/command.hpp index 4a8013718..e084bb036 100644 --- a/src/driver/command.hpp +++ b/src/driver/command.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_COMMAND_HPP #define MIGRAPHX_GUARD_RTGLIB_COMMAND_HPP diff --git a/src/driver/inceptionv3.cpp b/src/driver/inceptionv3.cpp index c80bf53b8..8347b25b9 100644 --- a/src/driver/inceptionv3.cpp +++ b/src/driver/inceptionv3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/driver/main.cpp b/src/driver/main.cpp index 325cffac0..32ccb7e49 100644 --- a/src/driver/main.cpp +++ b/src/driver/main.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify.hpp" #include "argument_parser.hpp" #include "command.hpp" diff --git a/src/driver/marker_roctx.cpp b/src/driver/marker_roctx.cpp index 549e9be7f..1011af4bf 100644 --- a/src/driver/marker_roctx.cpp +++ b/src/driver/marker_roctx.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "marker_roctx.hpp" #include diff --git a/src/driver/marker_roctx.hpp b/src/driver/marker_roctx.hpp old mode 100755 new mode 100644 index 64b4d672a..1a25fe1a9 --- a/src/driver/marker_roctx.hpp +++ b/src/driver/marker_roctx.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MARKER_ROCTX_HPP #define MIGRAPHX_GUARD_RTGLIB_MARKER_ROCTX_HPP diff --git a/src/driver/models.hpp b/src/driver/models.hpp index 43d9d0643..d2256b12f 100644 --- a/src/driver/models.hpp +++ b/src/driver/models.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include diff --git a/src/driver/perf.cpp b/src/driver/perf.cpp index a1ba98622..93118fbd3 100644 --- a/src/driver/perf.cpp +++ b/src/driver/perf.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "perf.hpp" #include diff --git a/src/driver/perf.hpp b/src/driver/perf.hpp index 9e96596a9..a99f7f3aa 100644 --- a/src/driver/perf.hpp +++ b/src/driver/perf.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PERF_HPP #define MIGRAPHX_GUARD_RTGLIB_PERF_HPP diff --git a/src/driver/precision.hpp b/src/driver/precision.hpp index 95f637f07..d7d7cecf0 100644 --- a/src/driver/precision.hpp +++ b/src/driver/precision.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PRECISION_HPP #define MIGRAPHX_GUARD_RTGLIB_PRECISION_HPP diff --git a/src/driver/resnet50.cpp b/src/driver/resnet50.cpp index c25b2c831..33cbba644 100644 --- a/src/driver/resnet50.cpp +++ b/src/driver/resnet50.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/driver/verify.cpp b/src/driver/verify.cpp index 0665661d3..8f9d43265 100644 --- a/src/driver/verify.cpp +++ b/src/driver/verify.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify.hpp" #include "perf.hpp" diff --git a/src/driver/verify.hpp b/src/driver/verify.hpp index 9f010d59e..285b7012c 100644 --- a/src/driver/verify.hpp +++ b/src/driver/verify.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DRIVER_VERIFY_HPP #define MIGRAPHX_GUARD_RTGLIB_DRIVER_VERIFY_HPP diff --git a/src/dynamic_loader.cpp b/src/dynamic_loader.cpp old mode 100755 new mode 100644 index ab0cbbecb..85456a83d --- a/src/dynamic_loader.cpp +++ b/src/dynamic_loader.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/eliminate_allocation.cpp b/src/eliminate_allocation.cpp old mode 100755 new mode 100644 index ffd52116e..e89998cac --- a/src/eliminate_allocation.cpp +++ b/src/eliminate_allocation.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/eliminate_common_subexpression.cpp b/src/eliminate_common_subexpression.cpp index 03308019d..e5ae2668c 100644 --- a/src/eliminate_common_subexpression.cpp +++ b/src/eliminate_common_subexpression.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/eliminate_concat.cpp b/src/eliminate_concat.cpp index 9c37d416f..c81781545 100644 --- a/src/eliminate_concat.cpp +++ b/src/eliminate_concat.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/eliminate_contiguous.cpp b/src/eliminate_contiguous.cpp index 217103e54..fd21f2b32 100644 --- a/src/eliminate_contiguous.cpp +++ b/src/eliminate_contiguous.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/eliminate_data_type.cpp b/src/eliminate_data_type.cpp index e51fc2eb9..5aa7f8b29 100644 --- a/src/eliminate_data_type.cpp +++ b/src/eliminate_data_type.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/eliminate_identity.cpp b/src/eliminate_identity.cpp index de339e36b..ca161304d 100644 --- a/src/eliminate_identity.cpp +++ b/src/eliminate_identity.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/eliminate_pad.cpp b/src/eliminate_pad.cpp index 04a084524..b6fb08bc8 100644 --- a/src/eliminate_pad.cpp +++ b/src/eliminate_pad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/env.cpp b/src/env.cpp index 22c29fe34..454d50810 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/file_buffer.cpp b/src/file_buffer.cpp old mode 100755 new mode 100644 index abefa46f0..c2c10b17f --- a/src/file_buffer.cpp +++ b/src/file_buffer.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/fuse_pointwise.cpp b/src/fuse_pointwise.cpp index 799a5c5b3..0fd3aa649 100644 --- a/src/fuse_pointwise.cpp +++ b/src/fuse_pointwise.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/generate.cpp b/src/generate.cpp index aa875b661..abf60c5db 100644 --- a/src/generate.cpp +++ b/src/generate.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include namespace migraphx { diff --git a/src/include/migraphx/adjust_allocation.hpp b/src/include/migraphx/adjust_allocation.hpp old mode 100755 new mode 100644 index 5c09a9534..d4d4ee2c8 --- a/src/include/migraphx/adjust_allocation.hpp +++ b/src/include/migraphx/adjust_allocation.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ADJUST_ALLOCATION_HPP #define MIGRAPHX_GUARD_RTGLIB_ADJUST_ALLOCATION_HPP diff --git a/src/include/migraphx/algorithm.hpp b/src/include/migraphx/algorithm.hpp index 72daa611d..589a4fffc 100644 --- a/src/include/migraphx/algorithm.hpp +++ b/src/include/migraphx/algorithm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ALGORITHM_HPP #define MIGRAPHX_GUARD_RTGLIB_ALGORITHM_HPP diff --git a/src/include/migraphx/allocation_model.hpp b/src/include/migraphx/allocation_model.hpp index af0b562c2..bf7779d1e 100644 --- a/src/include/migraphx/allocation_model.hpp +++ b/src/include/migraphx/allocation_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_ALLOCATION_MODEL_HPP #define MIGRAPHX_GUARD_ALLOCATION_MODEL_HPP diff --git a/src/include/migraphx/analyze_streams.hpp b/src/include/migraphx/analyze_streams.hpp index cd0b24520..3d5108362 100644 --- a/src/include/migraphx/analyze_streams.hpp +++ b/src/include/migraphx/analyze_streams.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ANALYZE_STREAMS_HPP #define MIGRAPHX_GUARD_RTGLIB_ANALYZE_STREAMS_HPP diff --git a/src/include/migraphx/any_ptr.hpp b/src/include/migraphx/any_ptr.hpp index ce3177b7c..315edf869 100644 --- a/src/include/migraphx/any_ptr.hpp +++ b/src/include/migraphx/any_ptr.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_ANY_PTR_HPP #define MIGRAPHX_GUARD_MIGRAPHX_ANY_PTR_HPP diff --git a/src/include/migraphx/apply_alpha_beta.hpp b/src/include/migraphx/apply_alpha_beta.hpp index 8b48a80a6..2ec263591 100644 --- a/src/include/migraphx/apply_alpha_beta.hpp +++ b/src/include/migraphx/apply_alpha_beta.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_APPLY_ALPHA_BETA_HPP #define MIGRAPHX_GUARD_MIGRAPHX_APPLY_ALPHA_BETA_HPP diff --git a/src/include/migraphx/argument.hpp b/src/include/migraphx/argument.hpp old mode 100755 new mode 100644 index f89a46143..12e25f030 --- a/src/include/migraphx/argument.hpp +++ b/src/include/migraphx/argument.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_ARGUMENT_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_ARGUMENT_HPP diff --git a/src/include/migraphx/array.hpp b/src/include/migraphx/array.hpp index 306c18ac5..e0cf2e3ee 100644 --- a/src/include/migraphx/array.hpp +++ b/src/include/migraphx/array.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ARRAY_HPP #define MIGRAPHX_GUARD_RTGLIB_ARRAY_HPP diff --git a/src/include/migraphx/assert.hpp b/src/include/migraphx/assert.hpp index 51e4cadec..0f4c2ffa8 100644 --- a/src/include/migraphx/assert.hpp +++ b/src/include/migraphx/assert.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_ASSERT_HPP #define MIGRAPHX_GUARD_MIGRAPHX_ASSERT_HPP diff --git a/src/include/migraphx/auto_any_cast.hpp b/src/include/migraphx/auto_any_cast.hpp index 4fc8e7827..26aab72b6 100644 --- a/src/include/migraphx/auto_any_cast.hpp +++ b/src/include/migraphx/auto_any_cast.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_AUTO_ANY_CAST_HPP #define MIGRAPHX_GUARD_RTGLIB_AUTO_ANY_CAST_HPP #include diff --git a/src/include/migraphx/auto_contiguous.hpp b/src/include/migraphx/auto_contiguous.hpp index 8576010b9..33f47083c 100644 --- a/src/include/migraphx/auto_contiguous.hpp +++ b/src/include/migraphx/auto_contiguous.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_AUTO_CONTIGOUS_HPP #define MIGRAPHX_GUARD_RTGLIB_AUTO_CONTIGOUS_HPP diff --git a/src/include/migraphx/auto_register.hpp b/src/include/migraphx/auto_register.hpp index 67a455aa6..9011627c6 100644 --- a/src/include/migraphx/auto_register.hpp +++ b/src/include/migraphx/auto_register.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_AUTO_REGISTER_HPP #define MIGRAPHX_GUARD_RTGLIB_AUTO_REGISTER_HPP diff --git a/src/include/migraphx/builtin.hpp b/src/include/migraphx/builtin.hpp old mode 100755 new mode 100644 index cc1d2b228..8e3c02134 --- a/src/include/migraphx/builtin.hpp +++ b/src/include/migraphx/builtin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_BUILTIN_HPP #define MIGRAPHX_GUARD_BUILTIN_HPP diff --git a/src/include/migraphx/check_context.hpp b/src/include/migraphx/check_context.hpp index 77743fd3d..9df45e771 100644 --- a/src/include/migraphx/check_context.hpp +++ b/src/include/migraphx/check_context.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CHECK_CONTEXT_HPP #define MIGRAPHX_GUARD_RTGLIB_CHECK_CONTEXT_HPP diff --git a/src/include/migraphx/check_shapes.hpp b/src/include/migraphx/check_shapes.hpp old mode 100755 new mode 100644 index 350d52325..6145662c7 --- a/src/include/migraphx/check_shapes.hpp +++ b/src/include/migraphx/check_shapes.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CHECK_SHAPES_HPP #define MIGRAPHX_GUARD_RTGLIB_CHECK_SHAPES_HPP diff --git a/src/include/migraphx/clamp.hpp b/src/include/migraphx/clamp.hpp index 19ba71bd0..18475419e 100644 --- a/src/include/migraphx/clamp.hpp +++ b/src/include/migraphx/clamp.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CLAMP_HPP #define MIGRAPHX_GUARD_RTGLIB_CLAMP_HPP diff --git a/src/include/migraphx/cloneable.hpp b/src/include/migraphx/cloneable.hpp old mode 100755 new mode 100644 index a8d59194d..820bc4221 --- a/src/include/migraphx/cloneable.hpp +++ b/src/include/migraphx/cloneable.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CLONEABLE_HPP #define MIGRAPHX_GUARD_RTGLIB_CLONEABLE_HPP diff --git a/src/include/migraphx/common.hpp b/src/include/migraphx/common.hpp index e4a387b15..884a2bc77 100644 --- a/src/include/migraphx/common.hpp +++ b/src/include/migraphx/common.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_COMMON_HPP #define MIGRAPHX_GUARD_MIGRAPHX_COMMON_HPP diff --git a/src/include/migraphx/compile_options.hpp b/src/include/migraphx/compile_options.hpp index f76438c26..4b4f8edde 100644 --- a/src/include/migraphx/compile_options.hpp +++ b/src/include/migraphx/compile_options.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_COMPILE_OPTIONS_HPP #define MIGRAPHX_GUARD_RTGLIB_COMPILE_OPTIONS_HPP diff --git a/src/include/migraphx/compile_src.hpp b/src/include/migraphx/compile_src.hpp index b0ad8d512..ed822f6bd 100644 --- a/src/include/migraphx/compile_src.hpp +++ b/src/include/migraphx/compile_src.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_COMPILE_SRC_HPP #define MIGRAPHX_GUARD_MIGRAPHX_COMPILE_SRC_HPP diff --git a/src/include/migraphx/concat_opt.hpp b/src/include/migraphx/concat_opt.hpp index fe93cbc10..576c5d115 100644 --- a/src/include/migraphx/concat_opt.hpp +++ b/src/include/migraphx/concat_opt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_CONCAT_OPT_HPP #define MIGRAPHX_GUARD_CONCAT_OPT_HPP diff --git a/src/include/migraphx/config.hpp b/src/include/migraphx/config.hpp old mode 100755 new mode 100644 index 974c30247..3e370bec4 --- a/src/include/migraphx/config.hpp +++ b/src/include/migraphx/config.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_CONFIG_HPP #define MIGRAPHX_GUARD_CONFIG_HPP diff --git a/src/include/migraphx/context.hpp b/src/include/migraphx/context.hpp index b0ab8dbe0..4e55d5838 100644 --- a/src/include/migraphx/context.hpp +++ b/src/include/migraphx/context.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_CONTEXT_HPP #define MIGRAPHX_GUARD_CONTEXT_HPP diff --git a/src/include/migraphx/convert_to_json.hpp b/src/include/migraphx/convert_to_json.hpp index 9cbd9d34f..c356957e1 100644 --- a/src/include/migraphx/convert_to_json.hpp +++ b/src/include/migraphx/convert_to_json.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_CONVERT_TO_JSON_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_CONVERT_TO_JSON_HPP diff --git a/src/include/migraphx/cpp_generator.hpp b/src/include/migraphx/cpp_generator.hpp index 8d8f965bb..992f45747 100644 --- a/src/include/migraphx/cpp_generator.hpp +++ b/src/include/migraphx/cpp_generator.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_CPP_GENERATOR_HPP #define MIGRAPHX_GUARD_MIGRAPHX_CPP_GENERATOR_HPP diff --git a/src/include/migraphx/dead_code_elimination.hpp b/src/include/migraphx/dead_code_elimination.hpp index 95c1a8688..42929c539 100644 --- a/src/include/migraphx/dead_code_elimination.hpp +++ b/src/include/migraphx/dead_code_elimination.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEAD_CODE_ELIMINATION_HPP #define MIGRAPHX_GUARD_RTGLIB_DEAD_CODE_ELIMINATION_HPP diff --git a/src/include/migraphx/dfor.hpp b/src/include/migraphx/dfor.hpp index 243f0900a..e40acf3eb 100644 --- a/src/include/migraphx/dfor.hpp +++ b/src/include/migraphx/dfor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_DFOR_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_DFOR_HPP diff --git a/src/include/migraphx/dom_info.hpp b/src/include/migraphx/dom_info.hpp index 0c920da56..49d822b0b 100644 --- a/src/include/migraphx/dom_info.hpp +++ b/src/include/migraphx/dom_info.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DOM_INFO_HPP #define MIGRAPHX_GUARD_RTGLIB_DOM_INFO_HPP diff --git a/src/include/migraphx/dynamic_loader.hpp b/src/include/migraphx/dynamic_loader.hpp old mode 100755 new mode 100644 index 939a3712b..34276dbb1 --- a/src/include/migraphx/dynamic_loader.hpp +++ b/src/include/migraphx/dynamic_loader.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_DYNAMIC_LOADER_HPP #define MIGRAPHX_GUARD_MIGRAPHX_DYNAMIC_LOADER_HPP diff --git a/src/include/migraphx/eliminate_allocation.hpp b/src/include/migraphx/eliminate_allocation.hpp index c9cb6573a..156903896 100644 --- a/src/include/migraphx/eliminate_allocation.hpp +++ b/src/include/migraphx/eliminate_allocation.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP #define MIGRAPHX_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP diff --git a/src/include/migraphx/eliminate_common_subexpression.hpp b/src/include/migraphx/eliminate_common_subexpression.hpp index 26c96f98e..b2a172041 100644 --- a/src/include/migraphx/eliminate_common_subexpression.hpp +++ b/src/include/migraphx/eliminate_common_subexpression.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_COMMON_SUBEXPRESSION_ELIMINATION_HPP #define MIGRAPHX_GUARD_RTGLIB_COMMON_SUBEXPRESSION_ELIMINATION_HPP diff --git a/src/include/migraphx/eliminate_concat.hpp b/src/include/migraphx/eliminate_concat.hpp index b9cbefa7a..2b3015413 100644 --- a/src/include/migraphx/eliminate_concat.hpp +++ b/src/include/migraphx/eliminate_concat.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP #define MIGRAPHX_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP diff --git a/src/include/migraphx/eliminate_contiguous.hpp b/src/include/migraphx/eliminate_contiguous.hpp old mode 100755 new mode 100644 index 95b44f0f3..685f9e3fc --- a/src/include/migraphx/eliminate_contiguous.hpp +++ b/src/include/migraphx/eliminate_contiguous.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ELIMINATE_CONTIGUOUS_HPP #define MIGRAPHX_GUARD_RTGLIB_ELIMINATE_CONTIGUOUS_HPP diff --git a/src/include/migraphx/eliminate_data_type.hpp b/src/include/migraphx/eliminate_data_type.hpp old mode 100755 new mode 100644 index 8ebf88393..1f37bf7b1 --- a/src/include/migraphx/eliminate_data_type.hpp +++ b/src/include/migraphx/eliminate_data_type.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_ELIMINATE_DATA_TYPE_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ELIMINATE_DATA_TYPE_HPP diff --git a/src/include/migraphx/eliminate_identity.hpp b/src/include/migraphx/eliminate_identity.hpp index a2e23c6bb..a685d7b1f 100644 --- a/src/include/migraphx/eliminate_identity.hpp +++ b/src/include/migraphx/eliminate_identity.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ELIMINATE_IDENTITY_HPP #define MIGRAPHX_GUARD_RTGLIB_ELIMINATE_IDENTITY_HPP diff --git a/src/include/migraphx/eliminate_pad.hpp b/src/include/migraphx/eliminate_pad.hpp index 316adf0c6..1db1a9a97 100644 --- a/src/include/migraphx/eliminate_pad.hpp +++ b/src/include/migraphx/eliminate_pad.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ELIMINATE_PAD_HPP #define MIGRAPHX_GUARD_RTGLIB_ELIMINATE_PAD_HPP diff --git a/src/include/migraphx/env.hpp b/src/include/migraphx/env.hpp index 94a3da304..8dd6446dd 100644 --- a/src/include/migraphx/env.hpp +++ b/src/include/migraphx/env.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ENV_HPP #define MIGRAPHX_GUARD_RTGLIB_ENV_HPP diff --git a/src/include/migraphx/erase.hpp b/src/include/migraphx/erase.hpp index cbef1e4ce..4adeccc2d 100644 --- a/src/include/migraphx/erase.hpp +++ b/src/include/migraphx/erase.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_ERASE_HPP #define MIGRAPHX_GUARD_ERASE_HPP diff --git a/src/include/migraphx/errors.hpp b/src/include/migraphx/errors.hpp old mode 100755 new mode 100644 index c85717db7..aff4cbf23 --- a/src/include/migraphx/errors.hpp +++ b/src/include/migraphx/errors.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_ERRORS_HPP #define MIGRAPHX_GUARD_ERRORS_HPP diff --git a/src/include/migraphx/fallthrough.hpp b/src/include/migraphx/fallthrough.hpp index b4799763f..1479dc2a4 100644 --- a/src/include/migraphx/fallthrough.hpp +++ b/src/include/migraphx/fallthrough.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_FALLTHROUGH_HPP #define MIGRAPHX_GUARD_FALLTHROUGH_HPP diff --git a/src/include/migraphx/file_buffer.hpp b/src/include/migraphx/file_buffer.hpp old mode 100755 new mode 100644 index 74002214b..6bc892c21 --- a/src/include/migraphx/file_buffer.hpp +++ b/src/include/migraphx/file_buffer.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_FILE_BUFFER_HPP #define MIGRAPHX_GUARD_RTGLIB_FILE_BUFFER_HPP diff --git a/src/include/migraphx/filesystem.hpp b/src/include/migraphx/filesystem.hpp index 1cbeca1c4..5b5950d05 100644 --- a/src/include/migraphx/filesystem.hpp +++ b/src/include/migraphx/filesystem.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_FILESYSTEM_HPP #define MIGRAPHX_GUARD_RTGLIB_FILESYSTEM_HPP diff --git a/src/include/migraphx/float_equal.hpp b/src/include/migraphx/float_equal.hpp index 7753f0aaa..da1fc0c2c 100644 --- a/src/include/migraphx/float_equal.hpp +++ b/src/include/migraphx/float_equal.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_FLOAT_EQUAL_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_FLOAT_EQUAL_HPP diff --git a/src/include/migraphx/functional.hpp b/src/include/migraphx/functional.hpp old mode 100755 new mode 100644 index 2815372d8..7fa4ce949 --- a/src/include/migraphx/functional.hpp +++ b/src/include/migraphx/functional.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_FUNCTIONAL_HPP #define MIGRAPHX_GUARD_RTGLIB_FUNCTIONAL_HPP diff --git a/src/include/migraphx/fuse_pointwise.hpp b/src/include/migraphx/fuse_pointwise.hpp old mode 100755 new mode 100644 index 9071cdeac..fcdda3181 --- a/src/include/migraphx/fuse_pointwise.hpp +++ b/src/include/migraphx/fuse_pointwise.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_FUSE_POINTWISE_HPP #define MIGRAPHX_GUARD_MIGRAPHX_FUSE_POINTWISE_HPP diff --git a/src/include/migraphx/gemm.hpp b/src/include/migraphx/gemm.hpp index ab881ad3b..a34e58f39 100644 --- a/src/include/migraphx/gemm.hpp +++ b/src/include/migraphx/gemm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GEMM_HPP #define MIGRAPHX_GUARD_RTGLIB_GEMM_HPP diff --git a/src/include/migraphx/generate.hpp b/src/include/migraphx/generate.hpp old mode 100755 new mode 100644 index 9ef429e64..a88101c36 --- a/src/include/migraphx/generate.hpp +++ b/src/include/migraphx/generate.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_GENERATE_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_GENERATE_HPP diff --git a/src/include/migraphx/half.hpp b/src/include/migraphx/half.hpp index d8c20c3a5..ca0d2e29e 100644 --- a/src/include/migraphx/half.hpp +++ b/src/include/migraphx/half.hpp @@ -1,9 +1,26 @@ -/*============================================================================= - Copyright (c) 2017 Paul Fultz II - half.hpp - Distributed under the Boost Software License, Version 1.0. (See accompanying - file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -==============================================================================*/ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_HALF_HPP #define MIGRAPHX_GUARD_RTGLIB_HALF_HPP diff --git a/src/include/migraphx/inline_module.hpp b/src/include/migraphx/inline_module.hpp index 5ead29c9e..c8e1aa40a 100644 --- a/src/include/migraphx/inline_module.hpp +++ b/src/include/migraphx/inline_module.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_INLINE_MODULE_HPP #define MIGRAPHX_GUARD_RTGLIB_INLINE_MODULE_HPP diff --git a/src/include/migraphx/insert_pad.hpp b/src/include/migraphx/insert_pad.hpp index a0877463e..065891ed9 100644 --- a/src/include/migraphx/insert_pad.hpp +++ b/src/include/migraphx/insert_pad.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_INSERT_PAD_HPP #define MIGRAPHX_GUARD_RTGLIB_INSERT_PAD_HPP diff --git a/src/include/migraphx/instruction.hpp b/src/include/migraphx/instruction.hpp index dfcaed7c8..9f58294c2 100644 --- a/src/include/migraphx/instruction.hpp +++ b/src/include/migraphx/instruction.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_INSTRUCTION_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_INSTRUCTION_HPP diff --git a/src/include/migraphx/instruction_ref.hpp b/src/include/migraphx/instruction_ref.hpp old mode 100755 new mode 100644 index b07286cbb..85cd43834 --- a/src/include/migraphx/instruction_ref.hpp +++ b/src/include/migraphx/instruction_ref.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_INSTRUCTION_REF_HPP #define MIGRAPHX_GUARD_INSTRUCTION_REF_HPP diff --git a/src/include/migraphx/int_divide.hpp b/src/include/migraphx/int_divide.hpp index 7b43f2411..7e80b5a41 100644 --- a/src/include/migraphx/int_divide.hpp +++ b/src/include/migraphx/int_divide.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_INT_DIVIDE_HPP #define MIGRAPHX_GUARD_RTGLIB_INT_DIVIDE_HPP diff --git a/src/include/migraphx/iota_iterator.hpp b/src/include/migraphx/iota_iterator.hpp index 15a4ae470..879b49828 100644 --- a/src/include/migraphx/iota_iterator.hpp +++ b/src/include/migraphx/iota_iterator.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_IOTA_ITERATOR_HPP #define MIGRAPHX_GUARD_RTGLIB_IOTA_ITERATOR_HPP diff --git a/src/include/migraphx/iterator.hpp b/src/include/migraphx/iterator.hpp old mode 100755 new mode 100644 index ed032b29b..ac4206f6b --- a/src/include/migraphx/iterator.hpp +++ b/src/include/migraphx/iterator.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_ITERATOR_HPP #define MIGRAPHX_GUARD_MIGRAPHX_ITERATOR_HPP diff --git a/src/include/migraphx/iterator_for.hpp b/src/include/migraphx/iterator_for.hpp old mode 100755 new mode 100644 index 5f557eb56..3a53cc02d --- a/src/include/migraphx/iterator_for.hpp +++ b/src/include/migraphx/iterator_for.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ITERATOR_FOR_HPP #define MIGRAPHX_GUARD_RTGLIB_ITERATOR_FOR_HPP diff --git a/src/include/migraphx/json.hpp b/src/include/migraphx/json.hpp index 173e38c81..301eb582d 100644 --- a/src/include/migraphx/json.hpp +++ b/src/include/migraphx/json.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_JSON_HPP #define MIGRAPHX_GUARD_RTGLIB_JSON_HPP diff --git a/src/include/migraphx/lifetime.hpp b/src/include/migraphx/lifetime.hpp old mode 100755 new mode 100644 index 7a21e5302..02a4694cb --- a/src/include/migraphx/lifetime.hpp +++ b/src/include/migraphx/lifetime.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_LIFETIME_HPP #define MIGRAPHX_GUARD_MIGRAPHX_LIFETIME_HPP diff --git a/src/include/migraphx/literal.hpp b/src/include/migraphx/literal.hpp index 038615bb3..5cb7caea5 100644 --- a/src/include/migraphx/literal.hpp +++ b/src/include/migraphx/literal.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_LITERAL_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_LITERAL_HPP diff --git a/src/include/migraphx/load_save.hpp b/src/include/migraphx/load_save.hpp index f6db67d6e..f63557dea 100644 --- a/src/include/migraphx/load_save.hpp +++ b/src/include/migraphx/load_save.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LOAD_SAVE_HPP #define MIGRAPHX_GUARD_RTGLIB_LOAD_SAVE_HPP diff --git a/src/include/migraphx/make_op.hpp b/src/include/migraphx/make_op.hpp index d736c9fc1..73d6de48a 100644 --- a/src/include/migraphx/make_op.hpp +++ b/src/include/migraphx/make_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MAKE_OP_HPP #define MIGRAPHX_GUARD_RTGLIB_MAKE_OP_HPP diff --git a/src/include/migraphx/make_shared_array.hpp b/src/include/migraphx/make_shared_array.hpp old mode 100755 new mode 100644 index 09bfa2c58..b3e29e0ef --- a/src/include/migraphx/make_shared_array.hpp +++ b/src/include/migraphx/make_shared_array.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_MAKE_SHARED_ARRAY_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_MAKE_SHARED_ARRAY_HPP diff --git a/src/include/migraphx/make_signed.hpp b/src/include/migraphx/make_signed.hpp index b58389c97..8aa080ef5 100644 --- a/src/include/migraphx/make_signed.hpp +++ b/src/include/migraphx/make_signed.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MAKE_SIGNED_HPP #define MIGRAPHX_GUARD_RTGLIB_MAKE_SIGNED_HPP diff --git a/src/include/migraphx/manage_ptr.hpp b/src/include/migraphx/manage_ptr.hpp index 8231e8a19..a098d9fd1 100644 --- a/src/include/migraphx/manage_ptr.hpp +++ b/src/include/migraphx/manage_ptr.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_MANAGE_PTR_HPP #define MIGRAPHX_GUARD_MIGRAPHX_MANAGE_PTR_HPP diff --git a/src/include/migraphx/marker.hpp b/src/include/migraphx/marker.hpp old mode 100755 new mode 100644 index 5e3075fc6..54aa2f63c --- a/src/include/migraphx/marker.hpp +++ b/src/include/migraphx/marker.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MARKER_HPP #define MIGRAPHX_GUARD_MARKER_HPP diff --git a/src/include/migraphx/match/gelu_erf.hpp b/src/include/migraphx/match/gelu_erf.hpp old mode 100755 new mode 100644 index 681fe3648..a7f866a42 --- a/src/include/migraphx/match/gelu_erf.hpp +++ b/src/include/migraphx/match/gelu_erf.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MATCH_GELU_ERF_HPP #define MIGRAPHX_GUARD_MATCH_GELU_ERF_HPP diff --git a/src/include/migraphx/match/gelu_tanh.hpp b/src/include/migraphx/match/gelu_tanh.hpp index 8da91019d..5a84a0c4c 100644 --- a/src/include/migraphx/match/gelu_tanh.hpp +++ b/src/include/migraphx/match/gelu_tanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MATCH_GELU_TANH_HPP #define MIGRAPHX_GUARD_MATCH_GELU_TANH_HPP diff --git a/src/include/migraphx/match/layernorm.hpp b/src/include/migraphx/match/layernorm.hpp index 03828a251..0e70714c4 100644 --- a/src/include/migraphx/match/layernorm.hpp +++ b/src/include/migraphx/match/layernorm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_MATCH_LAYERNORM_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_MATCH_LAYERNORM_HPP diff --git a/src/include/migraphx/matcher.hpp b/src/include/migraphx/matcher.hpp index 1417b48b0..3ed2ef55d 100644 --- a/src/include/migraphx/matcher.hpp +++ b/src/include/migraphx/matcher.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MATCHER_HPP #define MIGRAPHX_GUARD_RTGLIB_MATCHER_HPP diff --git a/src/include/migraphx/memory_coloring.hpp b/src/include/migraphx/memory_coloring.hpp index 41c8d3abb..fd7422880 100644 --- a/src/include/migraphx/memory_coloring.hpp +++ b/src/include/migraphx/memory_coloring.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MEMORY_COLORING_HPP #define MIGRAPHX_GUARD_RTGLIB_MEMORY_COLORING_HPP diff --git a/src/include/migraphx/module.hpp b/src/include/migraphx/module.hpp index cdbb60c08..07fa52e1c 100644 --- a/src/include/migraphx/module.hpp +++ b/src/include/migraphx/module.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_MODULE_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_MODULE_HPP diff --git a/src/include/migraphx/module_ref.hpp b/src/include/migraphx/module_ref.hpp index 134f72b10..3beb421e3 100644 --- a/src/include/migraphx/module_ref.hpp +++ b/src/include/migraphx/module_ref.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MODULE_REF_HPP #define MIGRAPHX_GUARD_MODULE_REF_HPP diff --git a/src/include/migraphx/msgpack.hpp b/src/include/migraphx/msgpack.hpp index 962230fda..852fd2cca 100644 --- a/src/include/migraphx/msgpack.hpp +++ b/src/include/migraphx/msgpack.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MSGPACK_HPP #define MIGRAPHX_GUARD_RTGLIB_MSGPACK_HPP diff --git a/src/include/migraphx/normalize_attributes.hpp b/src/include/migraphx/normalize_attributes.hpp index ba1366e38..551aca1af 100644 --- a/src/include/migraphx/normalize_attributes.hpp +++ b/src/include/migraphx/normalize_attributes.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_NORMALIZE_ATTRIBUTES_HPP #define MIGRAPHX_GUARD_RTGLIB_NORMALIZE_ATTRIBUTES_HPP diff --git a/src/include/migraphx/normalize_ops.hpp b/src/include/migraphx/normalize_ops.hpp index a953eb47a..aa8a75088 100644 --- a/src/include/migraphx/normalize_ops.hpp +++ b/src/include/migraphx/normalize_ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_NORMALIZE_OPS_HPP #define MIGRAPHX_GUARD_RTGLIB_NORMALIZE_OPS_HPP diff --git a/src/include/migraphx/onnx.hpp b/src/include/migraphx/onnx.hpp index 44e0c4858..9032a2b5a 100644 --- a/src/include/migraphx/onnx.hpp +++ b/src/include/migraphx/onnx.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_ONNX_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_ONNX_HPP diff --git a/src/include/migraphx/op/abs.hpp b/src/include/migraphx/op/abs.hpp index 034aa2ab4..51cf7acb5 100644 --- a/src/include/migraphx/op/abs.hpp +++ b/src/include/migraphx/op/abs.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ABS_HPP #define MIGRAPHX_GUARD_OPERATORS_ABS_HPP diff --git a/src/include/migraphx/op/acos.hpp b/src/include/migraphx/op/acos.hpp index 3ce959f63..559b5a88a 100644 --- a/src/include/migraphx/op/acos.hpp +++ b/src/include/migraphx/op/acos.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ACOS_HPP #define MIGRAPHX_GUARD_OPERATORS_ACOS_HPP diff --git a/src/include/migraphx/op/acosh.hpp b/src/include/migraphx/op/acosh.hpp index 9ff8ea59e..b467a12df 100644 --- a/src/include/migraphx/op/acosh.hpp +++ b/src/include/migraphx/op/acosh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ACOSH_HPP #define MIGRAPHX_GUARD_OPERATORS_ACOSH_HPP diff --git a/src/include/migraphx/op/add.hpp b/src/include/migraphx/op/add.hpp old mode 100755 new mode 100644 index a4dae809b..8b87450f2 --- a/src/include/migraphx/op/add.hpp +++ b/src/include/migraphx/op/add.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ADD_HPP #define MIGRAPHX_GUARD_OPERATORS_ADD_HPP diff --git a/src/include/migraphx/op/allocate.hpp b/src/include/migraphx/op/allocate.hpp index fe7741a42..23315249f 100644 --- a/src/include/migraphx/op/allocate.hpp +++ b/src/include/migraphx/op/allocate.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ALLOCATE_HPP #define MIGRAPHX_GUARD_OPERATORS_ALLOCATE_HPP diff --git a/src/include/migraphx/op/argmax.hpp b/src/include/migraphx/op/argmax.hpp index d6e334902..cd4a946ac 100644 --- a/src/include/migraphx/op/argmax.hpp +++ b/src/include/migraphx/op/argmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ARGMAX_HPP #define MIGRAPHX_GUARD_OPERATORS_ARGMAX_HPP diff --git a/src/include/migraphx/op/argmin.hpp b/src/include/migraphx/op/argmin.hpp index c17322bf5..854243507 100644 --- a/src/include/migraphx/op/argmin.hpp +++ b/src/include/migraphx/op/argmin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ARGMIN_HPP #define MIGRAPHX_GUARD_OPERATORS_ARGMIN_HPP diff --git a/src/include/migraphx/op/as_shape.hpp b/src/include/migraphx/op/as_shape.hpp old mode 100755 new mode 100644 index 57c1f0ce2..0f072f827 --- a/src/include/migraphx/op/as_shape.hpp +++ b/src/include/migraphx/op/as_shape.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_AS_SHAPE_HPP #define MIGRAPHX_GUARD_OPERATORS_AS_SHAPE_HPP diff --git a/src/include/migraphx/op/asin.hpp b/src/include/migraphx/op/asin.hpp index 29395891e..c9166fbaa 100644 --- a/src/include/migraphx/op/asin.hpp +++ b/src/include/migraphx/op/asin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ASIN_HPP #define MIGRAPHX_GUARD_OPERATORS_ASIN_HPP diff --git a/src/include/migraphx/op/asinh.hpp b/src/include/migraphx/op/asinh.hpp index 4679c4094..56b586630 100644 --- a/src/include/migraphx/op/asinh.hpp +++ b/src/include/migraphx/op/asinh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ASINH_HPP #define MIGRAPHX_GUARD_OPERATORS_ASINH_HPP diff --git a/src/include/migraphx/op/atan.hpp b/src/include/migraphx/op/atan.hpp index 1864159ad..ce7f9ddce 100644 --- a/src/include/migraphx/op/atan.hpp +++ b/src/include/migraphx/op/atan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ATAN_HPP #define MIGRAPHX_GUARD_OPERATORS_ATAN_HPP diff --git a/src/include/migraphx/op/atanh.hpp b/src/include/migraphx/op/atanh.hpp index 210c5dfbe..58c171fb3 100644 --- a/src/include/migraphx/op/atanh.hpp +++ b/src/include/migraphx/op/atanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ATANH_HPP #define MIGRAPHX_GUARD_OPERATORS_ATANH_HPP diff --git a/src/include/migraphx/op/batch_norm_inference.hpp b/src/include/migraphx/op/batch_norm_inference.hpp index 427c59164..c1da40c00 100644 --- a/src/include/migraphx/op/batch_norm_inference.hpp +++ b/src/include/migraphx/op/batch_norm_inference.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_BATCH_NORM_HPP #define MIGRAPHX_GUARD_OPERATORS_BATCH_NORM_HPP diff --git a/src/include/migraphx/op/binary.hpp b/src/include/migraphx/op/binary.hpp old mode 100755 new mode 100644 index 422a58880..5c682c31f --- a/src/include/migraphx/op/binary.hpp +++ b/src/include/migraphx/op/binary.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_BINARY_HPP #define MIGRAPHX_GUARD_OPERATORS_BINARY_HPP diff --git a/src/include/migraphx/op/broadcast.hpp b/src/include/migraphx/op/broadcast.hpp old mode 100755 new mode 100644 index fe0d8e2df..22258e6a7 --- a/src/include/migraphx/op/broadcast.hpp +++ b/src/include/migraphx/op/broadcast.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_BROADCAST_HPP #define MIGRAPHX_GUARD_OPERATORS_BROADCAST_HPP diff --git a/src/include/migraphx/op/capture.hpp b/src/include/migraphx/op/capture.hpp index a450ec1d5..d973d4235 100644 --- a/src/include/migraphx/op/capture.hpp +++ b/src/include/migraphx/op/capture.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_CAPTURE_HPP #define MIGRAPHX_GUARD_OPERATORS_CAPTURE_HPP diff --git a/src/include/migraphx/op/ceil.hpp b/src/include/migraphx/op/ceil.hpp index f5e2389a7..fcf41c02d 100644 --- a/src/include/migraphx/op/ceil.hpp +++ b/src/include/migraphx/op/ceil.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_CEIL_HPP #define MIGRAPHX_GUARD_OPERATORS_CEIL_HPP diff --git a/src/include/migraphx/op/clip.hpp b/src/include/migraphx/op/clip.hpp index 3c05f1df9..c9f133b76 100644 --- a/src/include/migraphx/op/clip.hpp +++ b/src/include/migraphx/op/clip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_CLIP_HPP #define MIGRAPHX_GUARD_OPERATORS_CLIP_HPP diff --git a/src/include/migraphx/op/common.hpp b/src/include/migraphx/op/common.hpp index 8d9cfc9d8..b1384539a 100644 --- a/src/include/migraphx/op/common.hpp +++ b/src/include/migraphx/op/common.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_COMMON_HPP #define MIGRAPHX_GUARD_OPERATORS_COMMON_HPP diff --git a/src/include/migraphx/op/concat.hpp b/src/include/migraphx/op/concat.hpp index 0556b0a6d..f71714175 100644 --- a/src/include/migraphx/op/concat.hpp +++ b/src/include/migraphx/op/concat.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_CONCAT_HPP #define MIGRAPHX_GUARD_OPERATORS_CONCAT_HPP diff --git a/src/include/migraphx/op/contiguous.hpp b/src/include/migraphx/op/contiguous.hpp old mode 100755 new mode 100644 index f2f2e01c6..a84fb3768 --- a/src/include/migraphx/op/contiguous.hpp +++ b/src/include/migraphx/op/contiguous.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_CONTIGUOUS_HPP #define MIGRAPHX_GUARD_OPERATORS_CONTIGUOUS_HPP diff --git a/src/include/migraphx/op/convert.hpp b/src/include/migraphx/op/convert.hpp index 4fbc025d3..a26b4dc8e 100644 --- a/src/include/migraphx/op/convert.hpp +++ b/src/include/migraphx/op/convert.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_CONVERT_HPP #define MIGRAPHX_GUARD_OPERATORS_CONVERT_HPP diff --git a/src/include/migraphx/op/convolution.hpp b/src/include/migraphx/op/convolution.hpp old mode 100755 new mode 100644 index 7ac93d361..f5c884df3 --- a/src/include/migraphx/op/convolution.hpp +++ b/src/include/migraphx/op/convolution.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_CONVOLUTION_HPP #define MIGRAPHX_GUARD_OPERATORS_CONVOLUTION_HPP diff --git a/src/include/migraphx/op/cos.hpp b/src/include/migraphx/op/cos.hpp index 3b2d16dcb..cd515cc1b 100644 --- a/src/include/migraphx/op/cos.hpp +++ b/src/include/migraphx/op/cos.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_COS_HPP #define MIGRAPHX_GUARD_OPERATORS_COS_HPP diff --git a/src/include/migraphx/op/cosh.hpp b/src/include/migraphx/op/cosh.hpp index 4681fca3a..719df7a82 100644 --- a/src/include/migraphx/op/cosh.hpp +++ b/src/include/migraphx/op/cosh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_COSH_HPP #define MIGRAPHX_GUARD_OPERATORS_COSH_HPP diff --git a/src/include/migraphx/op/deconvolution.hpp b/src/include/migraphx/op/deconvolution.hpp index b263e903a..e287133ae 100644 --- a/src/include/migraphx/op/deconvolution.hpp +++ b/src/include/migraphx/op/deconvolution.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_DECONVOLUTION_HPP #define MIGRAPHX_GUARD_OPERATORS_DECONVOLUTION_HPP diff --git a/src/include/migraphx/op/dequantizelinear.hpp b/src/include/migraphx/op/dequantizelinear.hpp index 44d56b3f0..1084b7434 100644 --- a/src/include/migraphx/op/dequantizelinear.hpp +++ b/src/include/migraphx/op/dequantizelinear.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_DEQUANTIZE_LINEAR_HPP #define MIGRAPHX_GUARD_OPERATORS_DEQUANTIZE_LINEAR_HPP diff --git a/src/include/migraphx/op/div.hpp b/src/include/migraphx/op/div.hpp old mode 100755 new mode 100644 index 46f470705..78041e1d4 --- a/src/include/migraphx/op/div.hpp +++ b/src/include/migraphx/op/div.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_DIV_HPP #define MIGRAPHX_GUARD_OPERATORS_DIV_HPP diff --git a/src/include/migraphx/op/dot.hpp b/src/include/migraphx/op/dot.hpp index af338bd5f..2f859f7fc 100644 --- a/src/include/migraphx/op/dot.hpp +++ b/src/include/migraphx/op/dot.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_DOT_HPP #define MIGRAPHX_GUARD_OPERATORS_DOT_HPP diff --git a/src/include/migraphx/op/elu.hpp b/src/include/migraphx/op/elu.hpp old mode 100755 new mode 100644 index 0f33682da..19ebca305 --- a/src/include/migraphx/op/elu.hpp +++ b/src/include/migraphx/op/elu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ELU_HPP #define MIGRAPHX_GUARD_OPERATORS_ELU_HPP diff --git a/src/include/migraphx/op/equal.hpp b/src/include/migraphx/op/equal.hpp old mode 100755 new mode 100644 index 25a49954a..0de334087 --- a/src/include/migraphx/op/equal.hpp +++ b/src/include/migraphx/op/equal.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_EQUAL_HPP #define MIGRAPHX_GUARD_OPERATORS_EQUAL_HPP diff --git a/src/include/migraphx/op/erf.hpp b/src/include/migraphx/op/erf.hpp index 2edb2cbbe..69b0a8db5 100644 --- a/src/include/migraphx/op/erf.hpp +++ b/src/include/migraphx/op/erf.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ERF_HPP #define MIGRAPHX_GUARD_OPERATORS_ERF_HPP diff --git a/src/include/migraphx/op/exp.hpp b/src/include/migraphx/op/exp.hpp index e2ebb9403..328ccddc4 100644 --- a/src/include/migraphx/op/exp.hpp +++ b/src/include/migraphx/op/exp.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_EXP_HPP #define MIGRAPHX_GUARD_OPERATORS_EXP_HPP diff --git a/src/include/migraphx/op/flatten.hpp b/src/include/migraphx/op/flatten.hpp old mode 100755 new mode 100644 index 53daad5ef..0f34f96bd --- a/src/include/migraphx/op/flatten.hpp +++ b/src/include/migraphx/op/flatten.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_FLATTEN_HPP #define MIGRAPHX_GUARD_OPERATORS_FLATTEN_HPP diff --git a/src/include/migraphx/op/floor.hpp b/src/include/migraphx/op/floor.hpp index 8d91f5981..38100bd8d 100644 --- a/src/include/migraphx/op/floor.hpp +++ b/src/include/migraphx/op/floor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_FLOOR_HPP #define MIGRAPHX_GUARD_OPERATORS_FLOOR_HPP diff --git a/src/include/migraphx/op/gather.hpp b/src/include/migraphx/op/gather.hpp index 3e979d445..b846cce9c 100644 --- a/src/include/migraphx/op/gather.hpp +++ b/src/include/migraphx/op/gather.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_GATHER_HPP #define MIGRAPHX_GUARD_OPERATORS_GATHER_HPP diff --git a/src/include/migraphx/op/gathernd.hpp b/src/include/migraphx/op/gathernd.hpp index 2b9547878..931f815f7 100644 --- a/src/include/migraphx/op/gathernd.hpp +++ b/src/include/migraphx/op/gathernd.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_GATHERND_HPP #define MIGRAPHX_GUARD_OPERATORS_GATHERND_HPP diff --git a/src/include/migraphx/op/get_tuple_elem.hpp b/src/include/migraphx/op/get_tuple_elem.hpp index 31565c003..a744ad845 100644 --- a/src/include/migraphx/op/get_tuple_elem.hpp +++ b/src/include/migraphx/op/get_tuple_elem.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_GET_TUPLE_ELEM_HPP #define MIGRAPHX_GUARD_OPERATORS_GET_TUPLE_ELEM_HPP diff --git a/src/include/migraphx/op/greater.hpp b/src/include/migraphx/op/greater.hpp old mode 100755 new mode 100644 index c0a55bdf3..217a3d050 --- a/src/include/migraphx/op/greater.hpp +++ b/src/include/migraphx/op/greater.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_GREATER_HPP #define MIGRAPHX_GUARD_OPERATORS_GREATER_HPP diff --git a/src/include/migraphx/op/gru.hpp b/src/include/migraphx/op/gru.hpp index c0fc5ea5f..186c2a053 100644 --- a/src/include/migraphx/op/gru.hpp +++ b/src/include/migraphx/op/gru.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_GRU_HPP #define MIGRAPHX_GUARD_OPERATORS_GRU_HPP diff --git a/src/include/migraphx/op/identity.hpp b/src/include/migraphx/op/identity.hpp old mode 100755 new mode 100644 index 816bdd2f8..4968a1a24 --- a/src/include/migraphx/op/identity.hpp +++ b/src/include/migraphx/op/identity.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_IDENTITY_HPP #define MIGRAPHX_GUARD_OPERATORS_IDENTITY_HPP diff --git a/src/include/migraphx/op/if_op.hpp b/src/include/migraphx/op/if_op.hpp index fa9dff5b2..45e39a327 100644 --- a/src/include/migraphx/op/if_op.hpp +++ b/src/include/migraphx/op/if_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_IF_OP_HPP #define MIGRAPHX_GUARD_OPERATORS_IF_OP_HPP diff --git a/src/include/migraphx/op/im2col.hpp b/src/include/migraphx/op/im2col.hpp index 610b28b83..4912fb09e 100644 --- a/src/include/migraphx/op/im2col.hpp +++ b/src/include/migraphx/op/im2col.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_IM2COL_HPP #define MIGRAPHX_GUARD_OPERATORS_IM2COL_HPP diff --git a/src/include/migraphx/op/isnan.hpp b/src/include/migraphx/op/isnan.hpp index 28e1a5908..d953cb1b1 100644 --- a/src/include/migraphx/op/isnan.hpp +++ b/src/include/migraphx/op/isnan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ISNAN_HPP #define MIGRAPHX_GUARD_OPERATORS_ISNAN_HPP diff --git a/src/include/migraphx/op/leaky_relu.hpp b/src/include/migraphx/op/leaky_relu.hpp index e58ace62f..23f367a1c 100644 --- a/src/include/migraphx/op/leaky_relu.hpp +++ b/src/include/migraphx/op/leaky_relu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LEAKY_RELU_HPP #define MIGRAPHX_GUARD_OPERATORS_LEAKY_RELU_HPP diff --git a/src/include/migraphx/op/less.hpp b/src/include/migraphx/op/less.hpp old mode 100755 new mode 100644 index 59bf41d74..87437a79d --- a/src/include/migraphx/op/less.hpp +++ b/src/include/migraphx/op/less.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LESS_HPP #define MIGRAPHX_GUARD_OPERATORS_LESS_HPP diff --git a/src/include/migraphx/op/load.hpp b/src/include/migraphx/op/load.hpp old mode 100755 new mode 100644 index 5c2d61692..bb8935b56 --- a/src/include/migraphx/op/load.hpp +++ b/src/include/migraphx/op/load.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LOAD_HPP #define MIGRAPHX_GUARD_OPERATORS_LOAD_HPP diff --git a/src/include/migraphx/op/log.hpp b/src/include/migraphx/op/log.hpp index fdd3b767f..97a134628 100644 --- a/src/include/migraphx/op/log.hpp +++ b/src/include/migraphx/op/log.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LOG_HPP #define MIGRAPHX_GUARD_OPERATORS_LOG_HPP diff --git a/src/include/migraphx/op/logical_and.hpp b/src/include/migraphx/op/logical_and.hpp old mode 100755 new mode 100644 index a8fe6fe0c..a265244ad --- a/src/include/migraphx/op/logical_and.hpp +++ b/src/include/migraphx/op/logical_and.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LOGICAL_AND_HPP #define MIGRAPHX_GUARD_OPERATORS_LOGICAL_AND_HPP diff --git a/src/include/migraphx/op/logical_or.hpp b/src/include/migraphx/op/logical_or.hpp old mode 100755 new mode 100644 index 86c66aa9f..684f856c2 --- a/src/include/migraphx/op/logical_or.hpp +++ b/src/include/migraphx/op/logical_or.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LOGICAL_OR_HPP #define MIGRAPHX_GUARD_OPERATORS_LOGICAL_OR_HPP diff --git a/src/include/migraphx/op/logical_xor.hpp b/src/include/migraphx/op/logical_xor.hpp old mode 100755 new mode 100644 index 3b02c375d..dde2ca89c --- a/src/include/migraphx/op/logical_xor.hpp +++ b/src/include/migraphx/op/logical_xor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LOGICAL_XOR_HPP #define MIGRAPHX_GUARD_OPERATORS_LOGICAL_XOR_HPP diff --git a/src/include/migraphx/op/logsoftmax.hpp b/src/include/migraphx/op/logsoftmax.hpp index 75bcdd4c0..9df14eb49 100644 --- a/src/include/migraphx/op/logsoftmax.hpp +++ b/src/include/migraphx/op/logsoftmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LOGSOFTMAX_HPP #define MIGRAPHX_GUARD_OPERATORS_LOGSOFTMAX_HPP diff --git a/src/include/migraphx/op/loop.hpp b/src/include/migraphx/op/loop.hpp index 93b02befe..0f3f447b2 100644 --- a/src/include/migraphx/op/loop.hpp +++ b/src/include/migraphx/op/loop.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LOOP_HPP #define MIGRAPHX_GUARD_OPERATORS_LOOP_HPP diff --git a/src/include/migraphx/op/lrn.hpp b/src/include/migraphx/op/lrn.hpp index f3482e27d..c4465d41d 100644 --- a/src/include/migraphx/op/lrn.hpp +++ b/src/include/migraphx/op/lrn.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LRN_HPP #define MIGRAPHX_GUARD_OPERATORS_LRN_HPP diff --git a/src/include/migraphx/op/lstm.hpp b/src/include/migraphx/op/lstm.hpp old mode 100755 new mode 100644 index b87ee4cfe..04371e1c9 --- a/src/include/migraphx/op/lstm.hpp +++ b/src/include/migraphx/op/lstm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_LSTM_HPP #define MIGRAPHX_GUARD_OPERATORS_LSTM_HPP diff --git a/src/include/migraphx/op/max.hpp b/src/include/migraphx/op/max.hpp index 9d1d6f32d..90391543e 100644 --- a/src/include/migraphx/op/max.hpp +++ b/src/include/migraphx/op/max.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_MAX_HPP #define MIGRAPHX_GUARD_OPERATORS_MAX_HPP diff --git a/src/include/migraphx/op/min.hpp b/src/include/migraphx/op/min.hpp index ba344580b..199c23ac2 100644 --- a/src/include/migraphx/op/min.hpp +++ b/src/include/migraphx/op/min.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_MIN_HPP #define MIGRAPHX_GUARD_OPERATORS_MIN_HPP diff --git a/src/include/migraphx/op/mul.hpp b/src/include/migraphx/op/mul.hpp old mode 100755 new mode 100644 index 5f5b5152f..93b87adb1 --- a/src/include/migraphx/op/mul.hpp +++ b/src/include/migraphx/op/mul.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_MUL_HPP #define MIGRAPHX_GUARD_OPERATORS_MUL_HPP diff --git a/src/include/migraphx/op/multibroadcast.hpp b/src/include/migraphx/op/multibroadcast.hpp old mode 100755 new mode 100644 index 0037d3921..2f21ea046 --- a/src/include/migraphx/op/multibroadcast.hpp +++ b/src/include/migraphx/op/multibroadcast.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_MULTIBROADCAST_HPP #define MIGRAPHX_GUARD_OPERATORS_MULTIBROADCAST_HPP diff --git a/src/include/migraphx/op/multinomial.hpp b/src/include/migraphx/op/multinomial.hpp index d481a198a..d80da8b24 100644 --- a/src/include/migraphx/op/multinomial.hpp +++ b/src/include/migraphx/op/multinomial.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_MULTINOMIAL_HPP #define MIGRAPHX_GUARD_OPERATORS_MULTINOMIAL_HPP diff --git a/src/include/migraphx/op/name.hpp b/src/include/migraphx/op/name.hpp index 0630dfcf9..00d7bc360 100644 --- a/src/include/migraphx/op/name.hpp +++ b/src/include/migraphx/op/name.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_NAME_HPP #define MIGRAPHX_GUARD_RTGLIB_NAME_HPP diff --git a/src/include/migraphx/op/neg.hpp b/src/include/migraphx/op/neg.hpp old mode 100755 new mode 100644 index 3407225a8..68f04756b --- a/src/include/migraphx/op/neg.hpp +++ b/src/include/migraphx/op/neg.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_NEG_HPP #define MIGRAPHX_GUARD_OPERATORS_NEG_HPP diff --git a/src/include/migraphx/op/nonmaxsuppression.hpp b/src/include/migraphx/op/nonmaxsuppression.hpp index 225a8d08c..11bced41a 100644 --- a/src/include/migraphx/op/nonmaxsuppression.hpp +++ b/src/include/migraphx/op/nonmaxsuppression.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_NONMAXSUPPRESSION_HPP #define MIGRAPHX_GUARD_OPERATORS_NONMAXSUPPRESSION_HPP diff --git a/src/include/migraphx/op/nonzero.hpp b/src/include/migraphx/op/nonzero.hpp index a0d0d1212..4990fc7dc 100644 --- a/src/include/migraphx/op/nonzero.hpp +++ b/src/include/migraphx/op/nonzero.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_NONZERO_HPP #define MIGRAPHX_GUARD_OPERATORS_NONZERO_HPP diff --git a/src/include/migraphx/op/normalize_attribute.hpp b/src/include/migraphx/op/normalize_attribute.hpp index ee2f678a5..5a1d16ca5 100644 --- a/src/include/migraphx/op/normalize_attribute.hpp +++ b/src/include/migraphx/op/normalize_attribute.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_OP_NORMALIZE_ATTRIBUTE_HPP #define MIGRAPHX_GUARD_OPERATORS_OP_NORMALIZE_ATTRIBUTE_HPP diff --git a/src/include/migraphx/op/outline.hpp b/src/include/migraphx/op/outline.hpp index cc775248a..0c5d5878e 100644 --- a/src/include/migraphx/op/outline.hpp +++ b/src/include/migraphx/op/outline.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_OUTLINE_HPP #define MIGRAPHX_GUARD_OPERATORS_OUTLINE_HPP diff --git a/src/include/migraphx/op/pad.hpp b/src/include/migraphx/op/pad.hpp index c8bad3c05..9eba744b8 100644 --- a/src/include/migraphx/op/pad.hpp +++ b/src/include/migraphx/op/pad.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_PAD_HPP #define MIGRAPHX_GUARD_OPERATORS_PAD_HPP diff --git a/src/include/migraphx/op/pointwise.hpp b/src/include/migraphx/op/pointwise.hpp index 8c5e64d5d..12553c34b 100644 --- a/src/include/migraphx/op/pointwise.hpp +++ b/src/include/migraphx/op/pointwise.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OP_POINTWISE_HPP #define MIGRAPHX_GUARD_OP_POINTWISE_HPP diff --git a/src/include/migraphx/op/pooling.hpp b/src/include/migraphx/op/pooling.hpp index 9d06f4a43..82f8b05fd 100644 --- a/src/include/migraphx/op/pooling.hpp +++ b/src/include/migraphx/op/pooling.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_POOLING_HPP #define MIGRAPHX_GUARD_OPERATORS_POOLING_HPP diff --git a/src/include/migraphx/op/pow.hpp b/src/include/migraphx/op/pow.hpp index 314c3793a..c5da8fb3e 100644 --- a/src/include/migraphx/op/pow.hpp +++ b/src/include/migraphx/op/pow.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_POW_HPP #define MIGRAPHX_GUARD_OPERATORS_POW_HPP diff --git a/src/include/migraphx/op/prefix_scan_op.hpp b/src/include/migraphx/op/prefix_scan_op.hpp index 24a282934..2b79b1792 100644 --- a/src/include/migraphx/op/prefix_scan_op.hpp +++ b/src/include/migraphx/op/prefix_scan_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCAN_OP_HPP #define MIGRAPHX_GUARD_OPERATORS_SCAN_OP_HPP diff --git a/src/include/migraphx/op/prefix_scan_sum.hpp b/src/include/migraphx/op/prefix_scan_sum.hpp index 3f922a8d0..00086b00b 100644 --- a/src/include/migraphx/op/prefix_scan_sum.hpp +++ b/src/include/migraphx/op/prefix_scan_sum.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCAN_INCLUSIVE_SUM_HPP #define MIGRAPHX_GUARD_OPERATORS_SCAN_INCLUSIVE_SUM_HPP diff --git a/src/include/migraphx/op/prelu.hpp b/src/include/migraphx/op/prelu.hpp index 173ee97f1..0f83bd7bf 100644 --- a/src/include/migraphx/op/prelu.hpp +++ b/src/include/migraphx/op/prelu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_PRELU_HPP #define MIGRAPHX_GUARD_OPERATORS_PRELU_HPP diff --git a/src/include/migraphx/op/quant_convolution.hpp b/src/include/migraphx/op/quant_convolution.hpp index 744ce27e8..0038ede2a 100644 --- a/src/include/migraphx/op/quant_convolution.hpp +++ b/src/include/migraphx/op/quant_convolution.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_QUANT_CONVOLUTION_HPP #define MIGRAPHX_GUARD_OPERATORS_QUANT_CONVOLUTION_HPP diff --git a/src/include/migraphx/op/quant_dot.hpp b/src/include/migraphx/op/quant_dot.hpp old mode 100755 new mode 100644 index d7a956ab3..a4a76ab92 --- a/src/include/migraphx/op/quant_dot.hpp +++ b/src/include/migraphx/op/quant_dot.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_QUANT_DOT_HPP #define MIGRAPHX_GUARD_OPERATORS_QUANT_DOT_HPP diff --git a/src/include/migraphx/op/quantizelinear.hpp b/src/include/migraphx/op/quantizelinear.hpp index df1dc7aab..bf2ca5ed6 100644 --- a/src/include/migraphx/op/quantizelinear.hpp +++ b/src/include/migraphx/op/quantizelinear.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_QUANTIZE_LINEAR_HPP #define MIGRAPHX_GUARD_OPERATORS_QUANTIZE_LINEAR_HPP diff --git a/src/include/migraphx/op/recip.hpp b/src/include/migraphx/op/recip.hpp index f8c2c15b1..0947a2ee5 100644 --- a/src/include/migraphx/op/recip.hpp +++ b/src/include/migraphx/op/recip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RECIP_HPP #define MIGRAPHX_GUARD_OPERATORS_RECIP_HPP diff --git a/src/include/migraphx/op/reduce_max.hpp b/src/include/migraphx/op/reduce_max.hpp index 20e86d3b0..71f3a9f4e 100644 --- a/src/include/migraphx/op/reduce_max.hpp +++ b/src/include/migraphx/op/reduce_max.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_REDUCE_MAX_HPP #define MIGRAPHX_GUARD_OPERATORS_REDUCE_MAX_HPP diff --git a/src/include/migraphx/op/reduce_mean.hpp b/src/include/migraphx/op/reduce_mean.hpp old mode 100755 new mode 100644 index 2b6de7b77..c367f6a97 --- a/src/include/migraphx/op/reduce_mean.hpp +++ b/src/include/migraphx/op/reduce_mean.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_REDUCE_MEAN_HPP #define MIGRAPHX_GUARD_OPERATORS_REDUCE_MEAN_HPP diff --git a/src/include/migraphx/op/reduce_min.hpp b/src/include/migraphx/op/reduce_min.hpp index cdefc58de..0f0510edb 100644 --- a/src/include/migraphx/op/reduce_min.hpp +++ b/src/include/migraphx/op/reduce_min.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_REDUCE_MIN_HPP #define MIGRAPHX_GUARD_OPERATORS_REDUCE_MIN_HPP diff --git a/src/include/migraphx/op/reduce_op.hpp b/src/include/migraphx/op/reduce_op.hpp old mode 100755 new mode 100644 index dad6b0f8b..58c206ec2 --- a/src/include/migraphx/op/reduce_op.hpp +++ b/src/include/migraphx/op/reduce_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_OP_HPP #define MIGRAPHX_GUARD_OPERATORS_OP_HPP diff --git a/src/include/migraphx/op/reduce_prod.hpp b/src/include/migraphx/op/reduce_prod.hpp index f9db82d6b..97a6b97a1 100644 --- a/src/include/migraphx/op/reduce_prod.hpp +++ b/src/include/migraphx/op/reduce_prod.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_REDUCE_PROD_HPP #define MIGRAPHX_GUARD_OPERATORS_REDUCE_PROD_HPP diff --git a/src/include/migraphx/op/reduce_sum.hpp b/src/include/migraphx/op/reduce_sum.hpp index c6c7d65c6..8797ff8bd 100644 --- a/src/include/migraphx/op/reduce_sum.hpp +++ b/src/include/migraphx/op/reduce_sum.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_REDUCE_SUM_HPP #define MIGRAPHX_GUARD_OPERATORS_REDUCE_SUM_HPP diff --git a/src/include/migraphx/op/relu.hpp b/src/include/migraphx/op/relu.hpp old mode 100755 new mode 100644 index d32bf2f36..6cc260037 --- a/src/include/migraphx/op/relu.hpp +++ b/src/include/migraphx/op/relu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RELU_HPP #define MIGRAPHX_GUARD_OPERATORS_RELU_HPP diff --git a/src/include/migraphx/op/reshape.hpp b/src/include/migraphx/op/reshape.hpp index 0ccc83321..8d78f9b0f 100644 --- a/src/include/migraphx/op/reshape.hpp +++ b/src/include/migraphx/op/reshape.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RESHAPE_HPP #define MIGRAPHX_GUARD_OPERATORS_RESHAPE_HPP diff --git a/src/include/migraphx/op/reverse.hpp b/src/include/migraphx/op/reverse.hpp old mode 100755 new mode 100644 index ac79d0550..10081aaf2 --- a/src/include/migraphx/op/reverse.hpp +++ b/src/include/migraphx/op/reverse.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_REVERSE_HPP #define MIGRAPHX_GUARD_OPERATORS_REVERSE_HPP diff --git a/src/include/migraphx/op/rnn.hpp b/src/include/migraphx/op/rnn.hpp index f3d96b2c2..a94612d78 100644 --- a/src/include/migraphx/op/rnn.hpp +++ b/src/include/migraphx/op/rnn.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RNN_HPP #define MIGRAPHX_GUARD_OPERATORS_RNN_HPP diff --git a/src/include/migraphx/op/rnn_last_cell_output.hpp b/src/include/migraphx/op/rnn_last_cell_output.hpp index 6f608b7b6..67159fa37 100644 --- a/src/include/migraphx/op/rnn_last_cell_output.hpp +++ b/src/include/migraphx/op/rnn_last_cell_output.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RNN_LAST_CELL_OUTPUT_HPP #define MIGRAPHX_GUARD_OPERATORS_RNN_LAST_CELL_OUTPUT_HPP diff --git a/src/include/migraphx/op/rnn_last_hs_output.hpp b/src/include/migraphx/op/rnn_last_hs_output.hpp index c52eabd73..bb075a3ff 100644 --- a/src/include/migraphx/op/rnn_last_hs_output.hpp +++ b/src/include/migraphx/op/rnn_last_hs_output.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RNN_LAST_HS_OUTPUT_HPP #define MIGRAPHX_GUARD_OPERATORS_RNN_LAST_HS_OUTPUT_HPP diff --git a/src/include/migraphx/op/rnn_var_sl_last_output.hpp b/src/include/migraphx/op/rnn_var_sl_last_output.hpp index 2b0964176..5125c7caa 100644 --- a/src/include/migraphx/op/rnn_var_sl_last_output.hpp +++ b/src/include/migraphx/op/rnn_var_sl_last_output.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RNN_VAR_SL_LAST_OUTPUT_HPP #define MIGRAPHX_GUARD_OPERATORS_RNN_VAR_SL_LAST_OUTPUT_HPP diff --git a/src/include/migraphx/op/rnn_variable_seq_lens.hpp b/src/include/migraphx/op/rnn_variable_seq_lens.hpp index 87a4bb802..97904b090 100644 --- a/src/include/migraphx/op/rnn_variable_seq_lens.hpp +++ b/src/include/migraphx/op/rnn_variable_seq_lens.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RNN_VARIABLE_SEQ_LENS_HPP #define MIGRAPHX_GUARD_OPERATORS_RNN_VARIABLE_SEQ_LENS_HPP diff --git a/src/include/migraphx/op/roialign.hpp b/src/include/migraphx/op/roialign.hpp index f8fc2cabf..dda05b682 100644 --- a/src/include/migraphx/op/roialign.hpp +++ b/src/include/migraphx/op/roialign.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ROIALIGN_HPP #define MIGRAPHX_GUARD_OPERATORS_ROIALIGN_HPP diff --git a/src/include/migraphx/op/round.hpp b/src/include/migraphx/op/round.hpp index 79b5e7cb4..437021594 100644 --- a/src/include/migraphx/op/round.hpp +++ b/src/include/migraphx/op/round.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_ROUND_HPP #define MIGRAPHX_GUARD_OPERATORS_ROUND_HPP diff --git a/src/include/migraphx/op/rsqrt.hpp b/src/include/migraphx/op/rsqrt.hpp index 6131d56d6..7ac1ff7b6 100644 --- a/src/include/migraphx/op/rsqrt.hpp +++ b/src/include/migraphx/op/rsqrt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_RSQRT_HPP #define MIGRAPHX_GUARD_OPERATORS_RSQRT_HPP diff --git a/src/include/migraphx/op/scalar.hpp b/src/include/migraphx/op/scalar.hpp old mode 100755 new mode 100644 index d01b82899..b84eebbbf --- a/src/include/migraphx/op/scalar.hpp +++ b/src/include/migraphx/op/scalar.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCALAR_HPP #define MIGRAPHX_GUARD_OPERATORS_SCALAR_HPP diff --git a/src/include/migraphx/op/scatter.hpp b/src/include/migraphx/op/scatter.hpp index 03a725371..17c6ab34c 100644 --- a/src/include/migraphx/op/scatter.hpp +++ b/src/include/migraphx/op/scatter.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTER_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTER_HPP diff --git a/src/include/migraphx/op/scatter_add.hpp b/src/include/migraphx/op/scatter_add.hpp index 91d287045..75e4a2b42 100644 --- a/src/include/migraphx/op/scatter_add.hpp +++ b/src/include/migraphx/op/scatter_add.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTER_ADD_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTER_ADD_HPP diff --git a/src/include/migraphx/op/scatter_mul.hpp b/src/include/migraphx/op/scatter_mul.hpp index a24b0685d..c7590e0d5 100644 --- a/src/include/migraphx/op/scatter_mul.hpp +++ b/src/include/migraphx/op/scatter_mul.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTER_MUL_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTER_MUL_HPP diff --git a/src/include/migraphx/op/scatter_none.hpp b/src/include/migraphx/op/scatter_none.hpp index 8c948a245..817d8221a 100644 --- a/src/include/migraphx/op/scatter_none.hpp +++ b/src/include/migraphx/op/scatter_none.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTER_NONE_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTER_NONE_HPP diff --git a/src/include/migraphx/op/scatternd_add.hpp b/src/include/migraphx/op/scatternd_add.hpp index ca6ccb584..a4cc2e4e6 100644 --- a/src/include/migraphx/op/scatternd_add.hpp +++ b/src/include/migraphx/op/scatternd_add.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTERND_ADD_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTERND_ADD_HPP diff --git a/src/include/migraphx/op/scatternd_mul.hpp b/src/include/migraphx/op/scatternd_mul.hpp index 5fbf6477e..d4ee82abe 100644 --- a/src/include/migraphx/op/scatternd_mul.hpp +++ b/src/include/migraphx/op/scatternd_mul.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTERND_MUL_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTERND_MUL_HPP diff --git a/src/include/migraphx/op/scatternd_none.hpp b/src/include/migraphx/op/scatternd_none.hpp index cd89dc3db..aacdc77d8 100644 --- a/src/include/migraphx/op/scatternd_none.hpp +++ b/src/include/migraphx/op/scatternd_none.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTERND_NONE_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTERND_NONE_HPP diff --git a/src/include/migraphx/op/scatternd_op.hpp b/src/include/migraphx/op/scatternd_op.hpp index 0207f21e7..ce7f3ea40 100644 --- a/src/include/migraphx/op/scatternd_op.hpp +++ b/src/include/migraphx/op/scatternd_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SCATTERND_OP_HPP #define MIGRAPHX_GUARD_OPERATORS_SCATTERND_OP_HPP diff --git a/src/include/migraphx/op/sigmoid.hpp b/src/include/migraphx/op/sigmoid.hpp index e9bad491d..37e23b0b5 100644 --- a/src/include/migraphx/op/sigmoid.hpp +++ b/src/include/migraphx/op/sigmoid.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SIGMOID_HPP #define MIGRAPHX_GUARD_OPERATORS_SIGMOID_HPP diff --git a/src/include/migraphx/op/sign.hpp b/src/include/migraphx/op/sign.hpp index 9b959a086..e89e71077 100644 --- a/src/include/migraphx/op/sign.hpp +++ b/src/include/migraphx/op/sign.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SIGN_HPP #define MIGRAPHX_GUARD_OPERATORS_SIGN_HPP diff --git a/src/include/migraphx/op/sin.hpp b/src/include/migraphx/op/sin.hpp index d93093558..ef0b40291 100644 --- a/src/include/migraphx/op/sin.hpp +++ b/src/include/migraphx/op/sin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SIN_HPP #define MIGRAPHX_GUARD_OPERATORS_SIN_HPP diff --git a/src/include/migraphx/op/sinh.hpp b/src/include/migraphx/op/sinh.hpp index 67ed31e22..f0b3be55a 100644 --- a/src/include/migraphx/op/sinh.hpp +++ b/src/include/migraphx/op/sinh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SINH_HPP #define MIGRAPHX_GUARD_OPERATORS_SINH_HPP diff --git a/src/include/migraphx/op/slice.hpp b/src/include/migraphx/op/slice.hpp index 0cf44b246..c2686f2db 100644 --- a/src/include/migraphx/op/slice.hpp +++ b/src/include/migraphx/op/slice.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SLICE_HPP #define MIGRAPHX_GUARD_OPERATORS_SLICE_HPP diff --git a/src/include/migraphx/op/softmax.hpp b/src/include/migraphx/op/softmax.hpp index 91e904a23..e8beabea6 100644 --- a/src/include/migraphx/op/softmax.hpp +++ b/src/include/migraphx/op/softmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SOFTMAX_HPP #define MIGRAPHX_GUARD_OPERATORS_SOFTMAX_HPP diff --git a/src/include/migraphx/op/sqdiff.hpp b/src/include/migraphx/op/sqdiff.hpp old mode 100755 new mode 100644 index 0821d6bbc..82f0b1557 --- a/src/include/migraphx/op/sqdiff.hpp +++ b/src/include/migraphx/op/sqdiff.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SQDIFF_HPP #define MIGRAPHX_GUARD_OPERATORS_SQDIFF_HPP diff --git a/src/include/migraphx/op/sqrt.hpp b/src/include/migraphx/op/sqrt.hpp index 4ee3fcb5d..c0a8c9812 100644 --- a/src/include/migraphx/op/sqrt.hpp +++ b/src/include/migraphx/op/sqrt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SQRT_HPP #define MIGRAPHX_GUARD_OPERATORS_SQRT_HPP diff --git a/src/include/migraphx/op/squeeze.hpp b/src/include/migraphx/op/squeeze.hpp index 57ebf8e55..8f8d3183f 100644 --- a/src/include/migraphx/op/squeeze.hpp +++ b/src/include/migraphx/op/squeeze.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SQUEEZE_HPP #define MIGRAPHX_GUARD_OPERATORS_SQUEEZE_HPP diff --git a/src/include/migraphx/op/step.hpp b/src/include/migraphx/op/step.hpp old mode 100755 new mode 100644 index 9c20ce6ca..81c0fb27d --- a/src/include/migraphx/op/step.hpp +++ b/src/include/migraphx/op/step.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_STEP_HPP #define MIGRAPHX_GUARD_OPERATORS_STEP_HPP diff --git a/src/include/migraphx/op/sub.hpp b/src/include/migraphx/op/sub.hpp old mode 100755 new mode 100644 index 9c1742678..50a8c3361 --- a/src/include/migraphx/op/sub.hpp +++ b/src/include/migraphx/op/sub.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_SUB_HPP #define MIGRAPHX_GUARD_OPERATORS_SUB_HPP diff --git a/src/include/migraphx/op/tan.hpp b/src/include/migraphx/op/tan.hpp index 94db2f41e..7285a434c 100644 --- a/src/include/migraphx/op/tan.hpp +++ b/src/include/migraphx/op/tan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_TAN_HPP #define MIGRAPHX_GUARD_OPERATORS_TAN_HPP diff --git a/src/include/migraphx/op/tanh.hpp b/src/include/migraphx/op/tanh.hpp index fa3f69020..193b69605 100644 --- a/src/include/migraphx/op/tanh.hpp +++ b/src/include/migraphx/op/tanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_TANH_HPP #define MIGRAPHX_GUARD_OPERATORS_TANH_HPP diff --git a/src/include/migraphx/op/topk.hpp b/src/include/migraphx/op/topk.hpp index af9b4569e..486741f83 100644 --- a/src/include/migraphx/op/topk.hpp +++ b/src/include/migraphx/op/topk.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_GATHER_HPP #define MIGRAPHX_GUARD_OPERATORS_GATHER_HPP diff --git a/src/include/migraphx/op/transpose.hpp b/src/include/migraphx/op/transpose.hpp old mode 100755 new mode 100644 index aed48c4d7..5b7bf2b5d --- a/src/include/migraphx/op/transpose.hpp +++ b/src/include/migraphx/op/transpose.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_TRANSPOSE_HPP #define MIGRAPHX_GUARD_OPERATORS_TRANSPOSE_HPP diff --git a/src/include/migraphx/op/unary.hpp b/src/include/migraphx/op/unary.hpp index 27f727946..da40c80f6 100644 --- a/src/include/migraphx/op/unary.hpp +++ b/src/include/migraphx/op/unary.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_UNARY_HPP #define MIGRAPHX_GUARD_OPERATORS_UNARY_HPP diff --git a/src/include/migraphx/op/unary_not.hpp b/src/include/migraphx/op/unary_not.hpp old mode 100755 new mode 100644 index 5ea3b6e53..2e9a5fb95 --- a/src/include/migraphx/op/unary_not.hpp +++ b/src/include/migraphx/op/unary_not.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_UNARY_NOT_HPP #define MIGRAPHX_GUARD_OPERATORS_UNARY_NOT_HPP diff --git a/src/include/migraphx/op/undefined.hpp b/src/include/migraphx/op/undefined.hpp index 0d3fc084e..d685d3bf8 100644 --- a/src/include/migraphx/op/undefined.hpp +++ b/src/include/migraphx/op/undefined.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_UNDEFINED_HPP #define MIGRAPHX_GUARD_RTGLIB_UNDEFINED_HPP diff --git a/src/include/migraphx/op/unknown.hpp b/src/include/migraphx/op/unknown.hpp index 6791e8dce..9c929de11 100644 --- a/src/include/migraphx/op/unknown.hpp +++ b/src/include/migraphx/op/unknown.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_UNKNOWN_HPP #define MIGRAPHX_GUARD_RTGLIB_UNKNOWN_HPP diff --git a/src/include/migraphx/op/unsqueeze.hpp b/src/include/migraphx/op/unsqueeze.hpp index c881f19df..b54e4cb78 100644 --- a/src/include/migraphx/op/unsqueeze.hpp +++ b/src/include/migraphx/op/unsqueeze.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_UNSQUEEZE_HPP #define MIGRAPHX_GUARD_OPERATORS_UNSQUEEZE_HPP diff --git a/src/include/migraphx/op/where.hpp b/src/include/migraphx/op/where.hpp index ff072fd5a..14d76c405 100644 --- a/src/include/migraphx/op/where.hpp +++ b/src/include/migraphx/op/where.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_WHERE_HPP #define MIGRAPHX_GUARD_OPERATORS_WHERE_HPP diff --git a/src/include/migraphx/operation.hpp b/src/include/migraphx/operation.hpp index 24d8bbe7e..8400c6fe6 100644 --- a/src/include/migraphx/operation.hpp +++ b/src/include/migraphx/operation.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_OPERAND_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_OPERAND_HPP diff --git a/src/include/migraphx/operators.hpp b/src/include/migraphx/operators.hpp old mode 100755 new mode 100644 index 04f7a63fc..5b913aec2 --- a/src/include/migraphx/operators.hpp +++ b/src/include/migraphx/operators.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_HPP #define MIGRAPHX_GUARD_OPERATORS_HPP diff --git a/src/include/migraphx/optional.hpp b/src/include/migraphx/optional.hpp index e9ed8b152..bac25e267 100644 --- a/src/include/migraphx/optional.hpp +++ b/src/include/migraphx/optional.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_OPTIONAL_HPP #define MIGRAPHX_GUARD_MIGRAPHX_OPTIONAL_HPP diff --git a/src/include/migraphx/output_iterator.hpp b/src/include/migraphx/output_iterator.hpp index e5e0b6969..bdb23512a 100644 --- a/src/include/migraphx/output_iterator.hpp +++ b/src/include/migraphx/output_iterator.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_OUTPUT_ITERATOR_HPP #define MIGRAPHX_GUARD_MIGRAPHX_OUTPUT_ITERATOR_HPP diff --git a/src/include/migraphx/pad_calc.hpp b/src/include/migraphx/pad_calc.hpp index 2751740df..3c1dafb32 100644 --- a/src/include/migraphx/pad_calc.hpp +++ b/src/include/migraphx/pad_calc.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_PAD_CALC_HPP #define MIGRAPHX_GUARD_OPERATORS_PAD_CALC_HPP diff --git a/src/include/migraphx/par_dfor.hpp b/src/include/migraphx/par_dfor.hpp index 6c2dbb520..2850de0f6 100644 --- a/src/include/migraphx/par_dfor.hpp +++ b/src/include/migraphx/par_dfor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PAR_DFOR_HPP #define MIGRAPHX_GUARD_RTGLIB_PAR_DFOR_HPP diff --git a/src/include/migraphx/par_for.hpp b/src/include/migraphx/par_for.hpp index 3f25e4548..fdd57049f 100644 --- a/src/include/migraphx/par_for.hpp +++ b/src/include/migraphx/par_for.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PAR_FOR_HPP #define MIGRAPHX_GUARD_RTGLIB_PAR_FOR_HPP diff --git a/src/include/migraphx/pass.hpp b/src/include/migraphx/pass.hpp index ce076d255..bf81c7d8d 100644 --- a/src/include/migraphx/pass.hpp +++ b/src/include/migraphx/pass.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_PASS_HPP #define MIGRAPHX_GUARD_PASS_HPP diff --git a/src/include/migraphx/pass_config.hpp b/src/include/migraphx/pass_config.hpp index 56bf33757..912455140 100644 --- a/src/include/migraphx/pass_config.hpp +++ b/src/include/migraphx/pass_config.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_PASS_CONFIG_HPP #define MIGRAPHX_GUARD_PASS_CONFIG_HPP diff --git a/src/include/migraphx/pass_manager.hpp b/src/include/migraphx/pass_manager.hpp old mode 100755 new mode 100644 index 1faca7a2b..10546e21e --- a/src/include/migraphx/pass_manager.hpp +++ b/src/include/migraphx/pass_manager.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_PASS_MANAGER_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_PASS_MANAGER_HPP diff --git a/src/include/migraphx/permutation.hpp b/src/include/migraphx/permutation.hpp old mode 100755 new mode 100644 index 8a4e8d4eb..baf8045ef --- a/src/include/migraphx/permutation.hpp +++ b/src/include/migraphx/permutation.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PERMUTATION_HPP #define MIGRAPHX_GUARD_RTGLIB_PERMUTATION_HPP diff --git a/src/include/migraphx/preallocate_param.hpp b/src/include/migraphx/preallocate_param.hpp old mode 100755 new mode 100644 index 4d5082744..3fd2b3af7 --- a/src/include/migraphx/preallocate_param.hpp +++ b/src/include/migraphx/preallocate_param.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_PREALLOCATE_PARAM_HPP #define MIGRAPHX_GUARD_MIGRAPHX_PREALLOCATE_PARAM_HPP diff --git a/src/include/migraphx/process.hpp b/src/include/migraphx/process.hpp old mode 100755 new mode 100644 index ace6d7781..873f1c13e --- a/src/include/migraphx/process.hpp +++ b/src/include/migraphx/process.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHX_PROCESS_HPP #define MIGRAPHX_GUARD_MIGRAPHX_PROCESS_HPP diff --git a/src/include/migraphx/program.hpp b/src/include/migraphx/program.hpp index 573467a0f..65b5b9cbc 100644 --- a/src/include/migraphx/program.hpp +++ b/src/include/migraphx/program.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_PROGRAM_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_PROGRAM_HPP diff --git a/src/include/migraphx/propagate_constant.hpp b/src/include/migraphx/propagate_constant.hpp index d88f28fe9..661289263 100644 --- a/src/include/migraphx/propagate_constant.hpp +++ b/src/include/migraphx/propagate_constant.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PROPAGATE_CONSTANT_HPP #define MIGRAPHX_GUARD_RTGLIB_PROPAGATE_CONSTANT_HPP diff --git a/src/include/migraphx/quantization.hpp b/src/include/migraphx/quantization.hpp index cbc1054e0..3c73d0719 100644 --- a/src/include/migraphx/quantization.hpp +++ b/src/include/migraphx/quantization.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_QUANTIZATION_HPP #define MIGRAPHX_GUARD_RTGLIB_QUANTIZATION_HPP diff --git a/src/include/migraphx/quantize_fp16.hpp b/src/include/migraphx/quantize_fp16.hpp index 050de9849..ce12061c8 100644 --- a/src/include/migraphx/quantize_fp16.hpp +++ b/src/include/migraphx/quantize_fp16.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_QUANTIZE_FP16_HPP #define MIGRAPHX_GUARD_RTGLIB_QUANTIZE_FP16_HPP diff --git a/src/include/migraphx/quantize_int8.hpp b/src/include/migraphx/quantize_int8.hpp index cd25ba46f..aab5de2be 100644 --- a/src/include/migraphx/quantize_int8.hpp +++ b/src/include/migraphx/quantize_int8.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_QUANTIZE_INT8_HPP #define MIGRAPHX_GUARD_RTGLIB_QUANTIZE_INT8_HPP diff --git a/src/include/migraphx/ranges.hpp b/src/include/migraphx/ranges.hpp old mode 100755 new mode 100644 index 4ab5ee6fa..e543978db --- a/src/include/migraphx/ranges.hpp +++ b/src/include/migraphx/ranges.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_RANGES_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_RANGES_HPP diff --git a/src/include/migraphx/rank.hpp b/src/include/migraphx/rank.hpp index 713434628..826f93e41 100644 --- a/src/include/migraphx/rank.hpp +++ b/src/include/migraphx/rank.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_RANK_HPP #define MIGRAPHX_GUARD_RTGLIB_RANK_HPP diff --git a/src/include/migraphx/raw_data.hpp b/src/include/migraphx/raw_data.hpp index 4374b638a..263096d30 100644 --- a/src/include/migraphx/raw_data.hpp +++ b/src/include/migraphx/raw_data.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RAW_DATA_HPP #define MIGRAPHX_GUARD_RAW_DATA_HPP diff --git a/src/include/migraphx/reduce_dims.hpp b/src/include/migraphx/reduce_dims.hpp index 5d2a5e3bc..989754dc4 100644 --- a/src/include/migraphx/reduce_dims.hpp +++ b/src/include/migraphx/reduce_dims.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REDUCE_DIMS_HPP #define MIGRAPHX_GUARD_RTGLIB_REDUCE_DIMS_HPP diff --git a/src/include/migraphx/reflect.hpp b/src/include/migraphx/reflect.hpp old mode 100755 new mode 100644 index c87706c1c..48bd89bfb --- a/src/include/migraphx/reflect.hpp +++ b/src/include/migraphx/reflect.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REFLECT_HPP #define MIGRAPHX_GUARD_RTGLIB_REFLECT_HPP diff --git a/src/include/migraphx/register_op.hpp b/src/include/migraphx/register_op.hpp old mode 100755 new mode 100644 index 0e211e8f1..6a10b5053 --- a/src/include/migraphx/register_op.hpp +++ b/src/include/migraphx/register_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REGISTER_OP_HPP #define MIGRAPHX_GUARD_RTGLIB_REGISTER_OP_HPP diff --git a/src/include/migraphx/register_target.hpp b/src/include/migraphx/register_target.hpp index 011d1113d..8a841a0cc 100644 --- a/src/include/migraphx/register_target.hpp +++ b/src/include/migraphx/register_target.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REGISTER_TARGET_HPP #define MIGRAPHX_GUARD_RTGLIB_REGISTER_TARGET_HPP diff --git a/src/include/migraphx/replace_allocate.hpp b/src/include/migraphx/replace_allocate.hpp index 02096dc48..ba0791328 100644 --- a/src/include/migraphx/replace_allocate.hpp +++ b/src/include/migraphx/replace_allocate.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REPLACE_ALLOCATE_HPP #define MIGRAPHX_GUARD_RTGLIB_REPLACE_ALLOCATE_HPP diff --git a/src/include/migraphx/requires.hpp b/src/include/migraphx/requires.hpp index 1a7c07a2a..87d85e7bc 100644 --- a/src/include/migraphx/requires.hpp +++ b/src/include/migraphx/requires.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_REQUIRES_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_REQUIRES_HPP diff --git a/src/include/migraphx/rewrite_batchnorm.hpp b/src/include/migraphx/rewrite_batchnorm.hpp index eb3f22cb4..cefbeec99 100644 --- a/src/include/migraphx/rewrite_batchnorm.hpp +++ b/src/include/migraphx/rewrite_batchnorm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_FWD_CONV_BATCHNORM_REWRITE_HPP #define MIGRAPHX_GUARD_RTGLIB_FWD_CONV_BATCHNORM_REWRITE_HPP diff --git a/src/include/migraphx/rewrite_pooling.hpp b/src/include/migraphx/rewrite_pooling.hpp index 58e4332a1..368e30cba 100644 --- a/src/include/migraphx/rewrite_pooling.hpp +++ b/src/include/migraphx/rewrite_pooling.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REWRITE_POOLING_HPP #define MIGRAPHX_GUARD_RTGLIB_REWRITE_POOLING_HPP diff --git a/src/include/migraphx/rewrite_quantization.hpp b/src/include/migraphx/rewrite_quantization.hpp index f4f402da1..ae0fd6ba3 100644 --- a/src/include/migraphx/rewrite_quantization.hpp +++ b/src/include/migraphx/rewrite_quantization.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REWRITE_QUANTIZATION_HPP #define MIGRAPHX_GUARD_RTGLIB_REWRITE_QUANTIZATION_HPP diff --git a/src/include/migraphx/rewrite_rnn.hpp b/src/include/migraphx/rewrite_rnn.hpp index 23ffe8138..3523a4e48 100644 --- a/src/include/migraphx/rewrite_rnn.hpp +++ b/src/include/migraphx/rewrite_rnn.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REWRITE_RNN_HPP #define MIGRAPHX_GUARD_RTGLIB_REWRITE_RNN_HPP diff --git a/src/include/migraphx/run_loop.hpp b/src/include/migraphx/run_loop.hpp index 33429a11b..ac4e3ffd5 100644 --- a/src/include/migraphx/run_loop.hpp +++ b/src/include/migraphx/run_loop.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_RUN_LOOP_HPP #define MIGRAPHX_GUARD_RTGLIB_RUN_LOOP_HPP diff --git a/src/include/migraphx/schedule.hpp b/src/include/migraphx/schedule.hpp index 352ba0e51..a860fdaf3 100644 --- a/src/include/migraphx/schedule.hpp +++ b/src/include/migraphx/schedule.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SCHEDULE_HPP #define MIGRAPHX_GUARD_RTGLIB_SCHEDULE_HPP diff --git a/src/include/migraphx/schedule_model.hpp b/src/include/migraphx/schedule_model.hpp index 14742707a..6c794d9a4 100644 --- a/src/include/migraphx/schedule_model.hpp +++ b/src/include/migraphx/schedule_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_SCHEDULE_MODEL_HPP #define MIGRAPHX_GUARD_SCHEDULE_MODEL_HPP diff --git a/src/include/migraphx/serialize.hpp b/src/include/migraphx/serialize.hpp old mode 100755 new mode 100644 index 66d1da2a1..56b6b99e7 --- a/src/include/migraphx/serialize.hpp +++ b/src/include/migraphx/serialize.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SERIALIZE_HPP #define MIGRAPHX_GUARD_RTGLIB_SERIALIZE_HPP diff --git a/src/include/migraphx/shape.hpp b/src/include/migraphx/shape.hpp index 372a2efd8..eb27a8a6c 100644 --- a/src/include/migraphx/shape.hpp +++ b/src/include/migraphx/shape.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_SHAPE_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_SHAPE_HPP diff --git a/src/include/migraphx/shape_for_each.hpp b/src/include/migraphx/shape_for_each.hpp index 23e254b48..9b790aeb4 100644 --- a/src/include/migraphx/shape_for_each.hpp +++ b/src/include/migraphx/shape_for_each.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_SHAPE_FOR_EACH_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_SHAPE_FOR_EACH_HPP diff --git a/src/include/migraphx/simplify_algebra.hpp b/src/include/migraphx/simplify_algebra.hpp index 569e84398..5e29b505b 100644 --- a/src/include/migraphx/simplify_algebra.hpp +++ b/src/include/migraphx/simplify_algebra.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SIMPLIFY_ALGEBRA_HPP #define MIGRAPHX_GUARD_RTGLIB_SIMPLIFY_ALGEBRA_HPP diff --git a/src/include/migraphx/simplify_qdq.hpp b/src/include/migraphx/simplify_qdq.hpp index 9fdb4fa5a..f10bde3f0 100644 --- a/src/include/migraphx/simplify_qdq.hpp +++ b/src/include/migraphx/simplify_qdq.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SIMPLIFY_QDQ_HPP #define MIGRAPHX_GUARD_RTGLIB_SIMPLIFY_QDQ_HPP diff --git a/src/include/migraphx/simplify_reshapes.hpp b/src/include/migraphx/simplify_reshapes.hpp index 369cdbccb..f7e2b0c4a 100644 --- a/src/include/migraphx/simplify_reshapes.hpp +++ b/src/include/migraphx/simplify_reshapes.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SIMPLIFY_RESHAPES_HPP #define MIGRAPHX_GUARD_RTGLIB_SIMPLIFY_RESHAPES_HPP diff --git a/src/include/migraphx/stream_model.hpp b/src/include/migraphx/stream_model.hpp index f0358a954..ba0db1a8f 100644 --- a/src/include/migraphx/stream_model.hpp +++ b/src/include/migraphx/stream_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_STREAM_MODEL_HPP #define MIGRAPHX_GUARD_STREAM_MODEL_HPP diff --git a/src/include/migraphx/streamutils.hpp b/src/include/migraphx/streamutils.hpp index 5ece9f99b..17961f935 100644 --- a/src/include/migraphx/streamutils.hpp +++ b/src/include/migraphx/streamutils.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_STREAMUTILS_HPP #define MIGRAPHX_GUARD_STREAMUTILS_HPP diff --git a/src/include/migraphx/stringutils.hpp b/src/include/migraphx/stringutils.hpp index 2f0ab08f0..cefb45437 100644 --- a/src/include/migraphx/stringutils.hpp +++ b/src/include/migraphx/stringutils.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_STRINGUTILS_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_STRINGUTILS_HPP diff --git a/src/include/migraphx/target.hpp b/src/include/migraphx/target.hpp index 7bd854192..c4c6a3741 100644 --- a/src/include/migraphx/target.hpp +++ b/src/include/migraphx/target.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_TARGET_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_TARGET_HPP diff --git a/src/include/migraphx/tensor_view.hpp b/src/include/migraphx/tensor_view.hpp index c7d63f7d4..a96f4580d 100644 --- a/src/include/migraphx/tensor_view.hpp +++ b/src/include/migraphx/tensor_view.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_TENSOR_VIEW_HPP #define MIGRAPHX_GUARD_TENSOR_VIEW_HPP diff --git a/src/include/migraphx/tf.hpp b/src/include/migraphx/tf.hpp index 0fb07176a..116ffa4b2 100644 --- a/src/include/migraphx/tf.hpp +++ b/src/include/migraphx/tf.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_TF_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_TF_HPP diff --git a/src/include/migraphx/time.hpp b/src/include/migraphx/time.hpp index 4769e3dac..c111006ce 100644 --- a/src/include/migraphx/time.hpp +++ b/src/include/migraphx/time.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_TIME_HPP #define MIGRAPHX_GUARD_RTGLIB_TIME_HPP diff --git a/src/include/migraphx/tmp_dir.hpp b/src/include/migraphx/tmp_dir.hpp index 4e43b5f6b..f3cb5da29 100644 --- a/src/include/migraphx/tmp_dir.hpp +++ b/src/include/migraphx/tmp_dir.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_TMP_DIR_HPP #define MIGRAPHX_GUARD_RTGLIB_TMP_DIR_HPP diff --git a/src/include/migraphx/tracer.hpp b/src/include/migraphx/tracer.hpp index b2d410eb4..9a938a0f2 100644 --- a/src/include/migraphx/tracer.hpp +++ b/src/include/migraphx/tracer.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_TRACER_HPP #define MIGRAPHX_GUARD_RTGLIB_TRACER_HPP diff --git a/src/include/migraphx/tune_axis.hpp b/src/include/migraphx/tune_axis.hpp index 21e59cf71..f28ab56f6 100644 --- a/src/include/migraphx/tune_axis.hpp +++ b/src/include/migraphx/tune_axis.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_OPERATORS_TUNE_AXIS_HPP #define MIGRAPHX_GUARD_OPERATORS_TUNE_AXIS_HPP diff --git a/src/include/migraphx/type_name.hpp b/src/include/migraphx/type_name.hpp index 5e31437c1..3e039db36 100644 --- a/src/include/migraphx/type_name.hpp +++ b/src/include/migraphx/type_name.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_TYPE_NAME_HPP #define MIGRAPHX_GUARD_RTGLIB_TYPE_NAME_HPP diff --git a/src/include/migraphx/type_traits.hpp b/src/include/migraphx/type_traits.hpp index 618ccd446..1512c38f2 100644 --- a/src/include/migraphx/type_traits.hpp +++ b/src/include/migraphx/type_traits.hpp @@ -1,9 +1,26 @@ -/*============================================================================= - Copyright (c) 2017 Paul Fultz II - type_traits.hpp - Distributed under the Boost Software License, Version 1.0. (See accompanying - file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -==============================================================================*/ +/* +* The MIT License (MIT) +* +* Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +* +* 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 MIGRAPHX_GUARD_RTGLIB_TYPE_TRAITS_HPP #define MIGRAPHX_GUARD_RTGLIB_TYPE_TRAITS_HPP diff --git a/src/include/migraphx/value.hpp b/src/include/migraphx/value.hpp index 27051d1b4..f0e0180f6 100644 --- a/src/include/migraphx/value.hpp +++ b/src/include/migraphx/value.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_VALUE_HPP #define MIGRAPHX_GUARD_RTGLIB_VALUE_HPP diff --git a/src/include/migraphx/verify.hpp b/src/include/migraphx/verify.hpp old mode 100755 new mode 100644 index 5d508f822..13a8de38e --- a/src/include/migraphx/verify.hpp +++ b/src/include/migraphx/verify.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_VERIFY_HPP #define MIGRAPHX_GUARD_VERIFY_HPP diff --git a/src/include/migraphx/verify_args.hpp b/src/include/migraphx/verify_args.hpp index 4c3a96fb5..664f92320 100644 --- a/src/include/migraphx/verify_args.hpp +++ b/src/include/migraphx/verify_args.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_VERIFY_ARGS_HPP #define MIGRAPHX_GUARD_RTGLIB_VERIFY_ARGS_HPP diff --git a/src/inline_module.cpp b/src/inline_module.cpp old mode 100755 new mode 100644 index 01c88f644..88027daae --- a/src/inline_module.cpp +++ b/src/inline_module.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/insert_pad.cpp b/src/insert_pad.cpp index e37a5e4b4..8821742bb 100644 --- a/src/insert_pad.cpp +++ b/src/insert_pad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/instruction.cpp b/src/instruction.cpp index eda5a4794..3911f3e16 100644 --- a/src/instruction.cpp +++ b/src/instruction.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/json.cpp b/src/json.cpp index c2f2bf3fd..aeda7a0af 100644 --- a/src/json.cpp +++ b/src/json.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/load_save.cpp b/src/load_save.cpp index e8dc61173..5ec6a524f 100644 --- a/src/load_save.cpp +++ b/src/load_save.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/make_op.cpp b/src/make_op.cpp index a5f0bc75a..cb2012027 100644 --- a/src/make_op.cpp +++ b/src/make_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/module.cpp b/src/module.cpp index d12d4ef6d..dcc841948 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/msgpack.cpp b/src/msgpack.cpp index 79fb819bf..8a58baedb 100644 --- a/src/msgpack.cpp +++ b/src/msgpack.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/normalize_attributes.cpp b/src/normalize_attributes.cpp index 98658424b..e52e8bdaa 100644 --- a/src/normalize_attributes.cpp +++ b/src/normalize_attributes.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/normalize_ops.cpp b/src/normalize_ops.cpp index 047992db9..5136b2e3f 100644 --- a/src/normalize_ops.cpp +++ b/src/normalize_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/CMakeLists.txt b/src/onnx/CMakeLists.txt index e73f0eeac..7c667e4ee 100755 --- a/src/onnx/CMakeLists.txt +++ b/src/onnx/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### find_package(Protobuf REQUIRED) protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS onnx.proto) diff --git a/src/onnx/checks.cpp b/src/onnx/checks.cpp index b56d4eb4b..70c382f05 100644 --- a/src/onnx/checks.cpp +++ b/src/onnx/checks.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/onnx/conv.cpp b/src/onnx/conv.cpp old mode 100755 new mode 100644 index d4afaaca5..60da80f62 --- a/src/onnx/conv.cpp +++ b/src/onnx/conv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/onnx/include/migraphx/onnx/checks.hpp b/src/onnx/include/migraphx/onnx/checks.hpp old mode 100755 new mode 100644 index 598a449c8..b018507be --- a/src/onnx/include/migraphx/onnx/checks.hpp +++ b/src/onnx/include/migraphx/onnx/checks.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_CHECKS_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_CHECKS_HPP diff --git a/src/onnx/include/migraphx/onnx/conv.hpp b/src/onnx/include/migraphx/onnx/conv.hpp old mode 100755 new mode 100644 index ea16fd367..127d0638a --- a/src/onnx/include/migraphx/onnx/conv.hpp +++ b/src/onnx/include/migraphx/onnx/conv.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_CONV_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_CONV_HPP diff --git a/src/onnx/include/migraphx/onnx/map_activation_functions.hpp b/src/onnx/include/migraphx/onnx/map_activation_functions.hpp old mode 100755 new mode 100644 index 5e913b0c2..5461598c2 --- a/src/onnx/include/migraphx/onnx/map_activation_functions.hpp +++ b/src/onnx/include/migraphx/onnx/map_activation_functions.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_MAP_ACTIVATION_FUNCTIONS_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_MAP_ACTIVATION_FUNCTIONS_HPP diff --git a/src/onnx/include/migraphx/onnx/onnx_parser.hpp b/src/onnx/include/migraphx/onnx/onnx_parser.hpp index 648ccc7b4..d8340db16 100644 --- a/src/onnx/include/migraphx/onnx/onnx_parser.hpp +++ b/src/onnx/include/migraphx/onnx/onnx_parser.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_PARSER_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_PARSER_HPP diff --git a/src/onnx/include/migraphx/onnx/op_parser.hpp b/src/onnx/include/migraphx/onnx/op_parser.hpp old mode 100755 new mode 100644 index c0c7cd469..2d37a5f42 --- a/src/onnx/include/migraphx/onnx/op_parser.hpp +++ b/src/onnx/include/migraphx/onnx/op_parser.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_REGISTER_OP_PARSER_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_REGISTER_OP_PARSER_HPP diff --git a/src/onnx/include/migraphx/onnx/padding.hpp b/src/onnx/include/migraphx/onnx/padding.hpp index f22ea0585..e6bd8d972 100644 --- a/src/onnx/include/migraphx/onnx/padding.hpp +++ b/src/onnx/include/migraphx/onnx/padding.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_PADDING_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_ONNX_PADDING_HPP diff --git a/src/onnx/map_activation_functions.cpp b/src/onnx/map_activation_functions.cpp index 0a296c55a..59a987157 100644 --- a/src/onnx/map_activation_functions.cpp +++ b/src/onnx/map_activation_functions.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/onnx/onnx.cpp b/src/onnx/onnx.cpp index b029d3373..8daf17971 100644 --- a/src/onnx/onnx.cpp +++ b/src/onnx/onnx.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/onnx_parser.cpp b/src/onnx/onnx_parser.cpp index cf6cded0d..4ed936755 100644 --- a/src/onnx/onnx_parser.cpp +++ b/src/onnx/onnx_parser.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/op_parser.cpp b/src/onnx/op_parser.cpp index d5757dbce..a52db68f2 100644 --- a/src/onnx/op_parser.cpp +++ b/src/onnx/op_parser.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/onnx/padding.cpp b/src/onnx/padding.cpp index 09dc15ae3..4f0329b43 100644 --- a/src/onnx/padding.cpp +++ b/src/onnx/padding.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_arg_op.cpp b/src/onnx/parse_arg_op.cpp index 41110f498..d4b3e1e7f 100644 --- a/src/onnx/parse_arg_op.cpp +++ b/src/onnx/parse_arg_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_aten.cpp b/src/onnx/parse_aten.cpp index d900baf75..79126d20a 100644 --- a/src/onnx/parse_aten.cpp +++ b/src/onnx/parse_aten.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_batchnorm.cpp b/src/onnx/parse_batchnorm.cpp index cc3718ca6..d0a2a5dcd 100644 --- a/src/onnx/parse_batchnorm.cpp +++ b/src/onnx/parse_batchnorm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_binary_op.cpp b/src/onnx/parse_binary_op.cpp index ed8f4ca6f..c62de0c0c 100644 --- a/src/onnx/parse_binary_op.cpp +++ b/src/onnx/parse_binary_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_cast.cpp b/src/onnx/parse_cast.cpp index f797d3241..a31719e28 100644 --- a/src/onnx/parse_cast.cpp +++ b/src/onnx/parse_cast.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_celu.cpp b/src/onnx/parse_celu.cpp index 1140d839a..3bd8fd62e 100644 --- a/src/onnx/parse_celu.cpp +++ b/src/onnx/parse_celu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_clip.cpp b/src/onnx/parse_clip.cpp index 72fd113a7..b537b5253 100644 --- a/src/onnx/parse_clip.cpp +++ b/src/onnx/parse_clip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_compare_op.cpp b/src/onnx/parse_compare_op.cpp index 2f4944c64..1b97e8b29 100644 --- a/src/onnx/parse_compare_op.cpp +++ b/src/onnx/parse_compare_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_constant.cpp b/src/onnx/parse_constant.cpp index 77eb3582d..a8f340097 100644 --- a/src/onnx/parse_constant.cpp +++ b/src/onnx/parse_constant.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_constant_fill.cpp b/src/onnx/parse_constant_fill.cpp index 0881c5c05..43e264806 100644 --- a/src/onnx/parse_constant_fill.cpp +++ b/src/onnx/parse_constant_fill.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_constant_of_shape.cpp b/src/onnx/parse_constant_of_shape.cpp index 9ebe832bb..9c56b9027 100644 --- a/src/onnx/parse_constant_of_shape.cpp +++ b/src/onnx/parse_constant_of_shape.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_convolution.cpp b/src/onnx/parse_convolution.cpp index 8462d9a6b..1c8059cef 100644 --- a/src/onnx/parse_convolution.cpp +++ b/src/onnx/parse_convolution.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_deconvolution.cpp b/src/onnx/parse_deconvolution.cpp index ed6e9d36d..7f062688e 100644 --- a/src/onnx/parse_deconvolution.cpp +++ b/src/onnx/parse_deconvolution.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_depthtospace.cpp b/src/onnx/parse_depthtospace.cpp index 86cd9462e..610902ef4 100644 --- a/src/onnx/parse_depthtospace.cpp +++ b/src/onnx/parse_depthtospace.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_dequantizelinear.cpp b/src/onnx/parse_dequantizelinear.cpp index 4bef48e63..e36498ef7 100644 --- a/src/onnx/parse_dequantizelinear.cpp +++ b/src/onnx/parse_dequantizelinear.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_dropout.cpp b/src/onnx/parse_dropout.cpp index 0c93dd059..7eba79ba7 100644 --- a/src/onnx/parse_dropout.cpp +++ b/src/onnx/parse_dropout.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_expand.cpp b/src/onnx/parse_expand.cpp index bfe575d6d..ee11a7f40 100644 --- a/src/onnx/parse_expand.cpp +++ b/src/onnx/parse_expand.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_eyelike.cpp b/src/onnx/parse_eyelike.cpp index 649cbcb5d..c29e4dcb9 100644 --- a/src/onnx/parse_eyelike.cpp +++ b/src/onnx/parse_eyelike.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_gather_elements.cpp b/src/onnx/parse_gather_elements.cpp index e866214ef..a95b21ead 100644 --- a/src/onnx/parse_gather_elements.cpp +++ b/src/onnx/parse_gather_elements.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_gemm.cpp b/src/onnx/parse_gemm.cpp index 9934a8318..758e799f7 100644 --- a/src/onnx/parse_gemm.cpp +++ b/src/onnx/parse_gemm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_generic_op.cpp b/src/onnx/parse_generic_op.cpp index 0bfb4296f..134d32e82 100644 --- a/src/onnx/parse_generic_op.cpp +++ b/src/onnx/parse_generic_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_greaterorequal.cpp b/src/onnx/parse_greaterorequal.cpp index 67319364b..469af9b04 100644 --- a/src/onnx/parse_greaterorequal.cpp +++ b/src/onnx/parse_greaterorequal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_gru.cpp b/src/onnx/parse_gru.cpp index abddc1779..62877db4b 100644 --- a/src/onnx/parse_gru.cpp +++ b/src/onnx/parse_gru.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_hardsigmoid.cpp b/src/onnx/parse_hardsigmoid.cpp index 4c1df9a70..b8043243f 100644 --- a/src/onnx/parse_hardsigmoid.cpp +++ b/src/onnx/parse_hardsigmoid.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_if.cpp b/src/onnx/parse_if.cpp index fb10f09b1..c3b75021a 100644 --- a/src/onnx/parse_if.cpp +++ b/src/onnx/parse_if.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_imagescalar.cpp b/src/onnx/parse_imagescalar.cpp index e236b1177..7e0b9de63 100644 --- a/src/onnx/parse_imagescalar.cpp +++ b/src/onnx/parse_imagescalar.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_instancenorm.cpp b/src/onnx/parse_instancenorm.cpp index 01507bf5f..1763d1e53 100644 --- a/src/onnx/parse_instancenorm.cpp +++ b/src/onnx/parse_instancenorm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_lessorequal.cpp b/src/onnx/parse_lessorequal.cpp index d4279f071..4d36710c6 100644 --- a/src/onnx/parse_lessorequal.cpp +++ b/src/onnx/parse_lessorequal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_loop.cpp b/src/onnx/parse_loop.cpp index 446c90655..5985c467f 100644 --- a/src/onnx/parse_loop.cpp +++ b/src/onnx/parse_loop.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_lpnormalization.cpp b/src/onnx/parse_lpnormalization.cpp index efb12e7d2..d1f86bf63 100644 --- a/src/onnx/parse_lpnormalization.cpp +++ b/src/onnx/parse_lpnormalization.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_lstm.cpp b/src/onnx/parse_lstm.cpp index 15086d9b9..352d0977c 100644 --- a/src/onnx/parse_lstm.cpp +++ b/src/onnx/parse_lstm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_matmul.cpp b/src/onnx/parse_matmul.cpp index 90796c4b9..6c4f1ce4a 100644 --- a/src/onnx/parse_matmul.cpp +++ b/src/onnx/parse_matmul.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_mean.cpp b/src/onnx/parse_mean.cpp index 02d7ecede..40343b119 100644 --- a/src/onnx/parse_mean.cpp +++ b/src/onnx/parse_mean.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_multinomial.cpp b/src/onnx/parse_multinomial.cpp index 29067d821..3cf584f41 100644 --- a/src/onnx/parse_multinomial.cpp +++ b/src/onnx/parse_multinomial.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_nonzero.cpp b/src/onnx/parse_nonzero.cpp index 488adfae7..fba055f0a 100644 --- a/src/onnx/parse_nonzero.cpp +++ b/src/onnx/parse_nonzero.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_onehot.cpp b/src/onnx/parse_onehot.cpp index 174809185..5c6242072 100644 --- a/src/onnx/parse_onehot.cpp +++ b/src/onnx/parse_onehot.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_pad.cpp b/src/onnx/parse_pad.cpp index c4a07ce53..ed81ae8ca 100644 --- a/src/onnx/parse_pad.cpp +++ b/src/onnx/parse_pad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_pooling.cpp b/src/onnx/parse_pooling.cpp index b53f4c490..883a81c96 100644 --- a/src/onnx/parse_pooling.cpp +++ b/src/onnx/parse_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_pow.cpp b/src/onnx/parse_pow.cpp index 3b919de46..5c6e9859e 100644 --- a/src/onnx/parse_pow.cpp +++ b/src/onnx/parse_pow.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_prefix_scan.cpp b/src/onnx/parse_prefix_scan.cpp index c4a8cd9f1..2b0bf173b 100644 --- a/src/onnx/parse_prefix_scan.cpp +++ b/src/onnx/parse_prefix_scan.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_quantizelinear.cpp b/src/onnx/parse_quantizelinear.cpp index 3ee1bcdb4..b4978d492 100644 --- a/src/onnx/parse_quantizelinear.cpp +++ b/src/onnx/parse_quantizelinear.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_randomnormal_ops.cpp b/src/onnx/parse_randomnormal_ops.cpp index 2c0b0b649..e5b6b4eec 100644 --- a/src/onnx/parse_randomnormal_ops.cpp +++ b/src/onnx/parse_randomnormal_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_randomuniform_ops.cpp b/src/onnx/parse_randomuniform_ops.cpp index f37c8e4de..f15165eaf 100644 --- a/src/onnx/parse_randomuniform_ops.cpp +++ b/src/onnx/parse_randomuniform_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_range.cpp b/src/onnx/parse_range.cpp index fd6fb1787..7dd567251 100644 --- a/src/onnx/parse_range.cpp +++ b/src/onnx/parse_range.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_reduce_op.cpp b/src/onnx/parse_reduce_op.cpp index 2d1986c96..d9906186f 100644 --- a/src/onnx/parse_reduce_op.cpp +++ b/src/onnx/parse_reduce_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_reshape.cpp b/src/onnx/parse_reshape.cpp index e366c0795..02311e306 100644 --- a/src/onnx/parse_reshape.cpp +++ b/src/onnx/parse_reshape.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_resize.cpp b/src/onnx/parse_resize.cpp index 94f96e602..faf0a92da 100644 --- a/src/onnx/parse_resize.cpp +++ b/src/onnx/parse_resize.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_reversesequence.cpp b/src/onnx/parse_reversesequence.cpp index f1e9fced7..488c11746 100644 --- a/src/onnx/parse_reversesequence.cpp +++ b/src/onnx/parse_reversesequence.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_rnn.cpp b/src/onnx/parse_rnn.cpp index efdfa46fd..6dcbea281 100644 --- a/src/onnx/parse_rnn.cpp +++ b/src/onnx/parse_rnn.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_roialign.cpp b/src/onnx/parse_roialign.cpp index c4ec0b9c7..88ccbde61 100644 --- a/src/onnx/parse_roialign.cpp +++ b/src/onnx/parse_roialign.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_scatter.cpp b/src/onnx/parse_scatter.cpp index 5b1c33eea..6f02ec866 100644 --- a/src/onnx/parse_scatter.cpp +++ b/src/onnx/parse_scatter.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_scatternd.cpp b/src/onnx/parse_scatternd.cpp index a00370cf9..e33352c9c 100644 --- a/src/onnx/parse_scatternd.cpp +++ b/src/onnx/parse_scatternd.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_selu.cpp b/src/onnx/parse_selu.cpp index 422d9ade4..c263469f0 100644 --- a/src/onnx/parse_selu.cpp +++ b/src/onnx/parse_selu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_shape.cpp b/src/onnx/parse_shape.cpp index 3db641412..fb8194f58 100644 --- a/src/onnx/parse_shape.cpp +++ b/src/onnx/parse_shape.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_size.cpp b/src/onnx/parse_size.cpp index ed352dc7b..0f59f4d27 100644 --- a/src/onnx/parse_size.cpp +++ b/src/onnx/parse_size.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_slice.cpp b/src/onnx/parse_slice.cpp index d6b34c954..5b727de98 100644 --- a/src/onnx/parse_slice.cpp +++ b/src/onnx/parse_slice.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_softmax.cpp b/src/onnx/parse_softmax.cpp index 635871339..2f079c38d 100644 --- a/src/onnx/parse_softmax.cpp +++ b/src/onnx/parse_softmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_softplus.cpp b/src/onnx/parse_softplus.cpp index 9267c02fc..3b6c5dad6 100644 --- a/src/onnx/parse_softplus.cpp +++ b/src/onnx/parse_softplus.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_softsign.cpp b/src/onnx/parse_softsign.cpp index 1f59699fa..b24f65746 100644 --- a/src/onnx/parse_softsign.cpp +++ b/src/onnx/parse_softsign.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_spacetodepth.cpp b/src/onnx/parse_spacetodepth.cpp index 4572a3dc7..51ca1c005 100644 --- a/src/onnx/parse_spacetodepth.cpp +++ b/src/onnx/parse_spacetodepth.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_split.cpp b/src/onnx/parse_split.cpp index 334401b6c..ccb8449eb 100644 --- a/src/onnx/parse_split.cpp +++ b/src/onnx/parse_split.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_squeeze.cpp b/src/onnx/parse_squeeze.cpp index 2268547b9..daf352f03 100644 --- a/src/onnx/parse_squeeze.cpp +++ b/src/onnx/parse_squeeze.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_thresholdedrelu.cpp b/src/onnx/parse_thresholdedrelu.cpp index 1d9709dff..dbd7fb374 100644 --- a/src/onnx/parse_thresholdedrelu.cpp +++ b/src/onnx/parse_thresholdedrelu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_tile.cpp b/src/onnx/parse_tile.cpp index 5d6d466ba..ae1614b79 100644 --- a/src/onnx/parse_tile.cpp +++ b/src/onnx/parse_tile.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_topk.cpp b/src/onnx/parse_topk.cpp index da183a303..66ab9f7ad 100644 --- a/src/onnx/parse_topk.cpp +++ b/src/onnx/parse_topk.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_transpose.cpp b/src/onnx/parse_transpose.cpp index a21f6763d..6073348d6 100644 --- a/src/onnx/parse_transpose.cpp +++ b/src/onnx/parse_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_variadic_op.cpp b/src/onnx/parse_variadic_op.cpp index 954a74537..10b6cb60b 100644 --- a/src/onnx/parse_variadic_op.cpp +++ b/src/onnx/parse_variadic_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/onnx/parse_where.cpp b/src/onnx/parse_where.cpp index 94bbed372..31a3cf047 100644 --- a/src/onnx/parse_where.cpp +++ b/src/onnx/parse_where.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/op_enums.cpp b/src/op_enums.cpp index 1bbf57932..f8a967d1b 100644 --- a/src/op_enums.cpp +++ b/src/op_enums.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ // // Supporting functions for enum values used in operator parameters. // These values are declared as "enum class" and should include << streaming operators diff --git a/src/operation.cpp b/src/operation.cpp index 0fc721800..e8b112fab 100644 --- a/src/operation.cpp +++ b/src/operation.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/opt/memory_coloring.cpp b/src/opt/memory_coloring.cpp index f13e38467..1deab6a01 100644 --- a/src/opt/memory_coloring.cpp +++ b/src/opt/memory_coloring.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "memory_coloring_impl.hpp" diff --git a/src/opt/memory_coloring_impl.cpp b/src/opt/memory_coloring_impl.cpp index 4dee9e017..584f936f1 100644 --- a/src/opt/memory_coloring_impl.cpp +++ b/src/opt/memory_coloring_impl.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/opt/memory_coloring_impl.hpp b/src/opt/memory_coloring_impl.hpp old mode 100755 new mode 100644 index 4f264796e..cfb710820 --- a/src/opt/memory_coloring_impl.hpp +++ b/src/opt/memory_coloring_impl.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MEMORY_COLORING_IMPL_HPP #define MIGRAPHX_GUARD_RTGLIB_MEMORY_COLORING_IMPL_HPP #include diff --git a/src/pass_manager.cpp b/src/pass_manager.cpp old mode 100755 new mode 100644 index 1a51f0a66..0dbb93aab --- a/src/pass_manager.cpp +++ b/src/pass_manager.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/permutation.cpp b/src/permutation.cpp index 5a77407e0..0d484b53c 100644 --- a/src/permutation.cpp +++ b/src/permutation.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/preallocate_param.cpp b/src/preallocate_param.cpp old mode 100755 new mode 100644 index 086c1f435..f6cd71837 --- a/src/preallocate_param.cpp +++ b/src/preallocate_param.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/process.cpp b/src/process.cpp old mode 100755 new mode 100644 index 69fec5e9b..5f81c9c71 --- a/src/process.cpp +++ b/src/process.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/program.cpp b/src/program.cpp index 965f5057b..3d2508caa 100644 --- a/src/program.cpp +++ b/src/program.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/propagate_constant.cpp b/src/propagate_constant.cpp index c65283b1e..45212ad25 100644 --- a/src/propagate_constant.cpp +++ b/src/propagate_constant.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/py/CMakeLists.txt b/src/py/CMakeLists.txt index dac747838..3103f1593 100644 --- a/src/py/CMakeLists.txt +++ b/src/py/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### option(MIGRAPHX_ENABLE_PYTHON "Enable python bindings" ON) if(MIGRAPHX_ENABLE_PYTHON) diff --git a/src/py/backend/__init__.py b/src/py/backend/__init__.py index 8b1378917..a5f56324a 100644 --- a/src/py/backend/__init__.py +++ b/src/py/backend/__init__.py @@ -1 +1,23 @@ - +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### diff --git a/src/py/backend/backend.py b/src/py/backend/backend.py index a2271f1ed..4ad6cc230 100755 --- a/src/py/backend/backend.py +++ b/src/py/backend/backend.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### # ------------------------------------------------------------------------- # Copyright (c) Advanced Micro Devices. All rights reserved. # Licensed under the MIT License. diff --git a/src/py/backend/backend_rep.py b/src/py/backend/backend_rep.py index 64a5701dd..0844165ec 100755 --- a/src/py/backend/backend_rep.py +++ b/src/py/backend/backend_rep.py @@ -1,7 +1,26 @@ -# ------------------------------------------------------------------------- -# Copyright (c) Advanced Micro Device Inc. All rights reserved. -# Licensed under the MIT License. -# -------------------------------------------------------------------------- +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### """ Implements ONNX's backend API. """ diff --git a/src/py/migraphx_py.cpp b/src/py/migraphx_py.cpp index eba9c085c..e8537e0a9 100644 --- a/src/py/migraphx_py.cpp +++ b/src/py/migraphx_py.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/quantization.cpp b/src/quantization.cpp index acb0ad71e..14908f979 100644 --- a/src/quantization.cpp +++ b/src/quantization.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/quantize_fp16.cpp b/src/quantize_fp16.cpp index 772b60191..c8577b6af 100644 --- a/src/quantize_fp16.cpp +++ b/src/quantize_fp16.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/quantize_int8.cpp b/src/quantize_int8.cpp index 37f2348d8..68deb0a54 100644 --- a/src/quantize_int8.cpp +++ b/src/quantize_int8.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/reduce_dims.cpp b/src/reduce_dims.cpp index eac19a661..4574857bb 100644 --- a/src/reduce_dims.cpp +++ b/src/reduce_dims.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include namespace migraphx { diff --git a/src/register_op.cpp b/src/register_op.cpp index ebaa20001..abf9e6751 100644 --- a/src/register_op.cpp +++ b/src/register_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/register_target.cpp b/src/register_target.cpp index b059674eb..63bfac92c 100644 --- a/src/register_target.cpp +++ b/src/register_target.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/replace_allocate.cpp b/src/replace_allocate.cpp index d79a8d927..4e519e41f 100644 --- a/src/replace_allocate.cpp +++ b/src/replace_allocate.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/rewrite_batchnorm.cpp b/src/rewrite_batchnorm.cpp index a613e955a..48165c96f 100644 --- a/src/rewrite_batchnorm.cpp +++ b/src/rewrite_batchnorm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/rewrite_pooling.cpp b/src/rewrite_pooling.cpp index 7084f6881..aa3470e7b 100644 --- a/src/rewrite_pooling.cpp +++ b/src/rewrite_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/rewrite_quantization.cpp b/src/rewrite_quantization.cpp index d409b88d4..a2c6e618c 100644 --- a/src/rewrite_quantization.cpp +++ b/src/rewrite_quantization.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/rewrite_rnn.cpp b/src/rewrite_rnn.cpp index 437399c1b..20b0d2941 100644 --- a/src/rewrite_rnn.cpp +++ b/src/rewrite_rnn.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/schedule.cpp b/src/schedule.cpp index 0572b3952..586e4274b 100644 --- a/src/schedule.cpp +++ b/src/schedule.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/serialize.cpp b/src/serialize.cpp index b53cc2ba2..8959e8edc 100644 --- a/src/serialize.cpp +++ b/src/serialize.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/shape.cpp b/src/shape.cpp index 9daf45167..437ec914b 100644 --- a/src/shape.cpp +++ b/src/shape.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/simplify_algebra.cpp b/src/simplify_algebra.cpp index 8db6afe91..6d7b9ca7a 100644 --- a/src/simplify_algebra.cpp +++ b/src/simplify_algebra.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/simplify_qdq.cpp b/src/simplify_qdq.cpp index a34adb47e..21d691f7d 100644 --- a/src/simplify_qdq.cpp +++ b/src/simplify_qdq.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/simplify_reshapes.cpp b/src/simplify_reshapes.cpp index c4ad42603..cbbc1baa3 100644 --- a/src/simplify_reshapes.cpp +++ b/src/simplify_reshapes.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/CMakeLists.txt b/src/targets/cpu/CMakeLists.txt index 87570257e..e1cf6a7c0 100755 --- a/src/targets/cpu/CMakeLists.txt +++ b/src/targets/cpu/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### include(CheckCXXCompilerFlag) diff --git a/src/targets/cpu/allocate.cpp b/src/targets/cpu/allocate.cpp old mode 100755 new mode 100644 index 90d74b806..938139c9b --- a/src/targets/cpu/allocate.cpp +++ b/src/targets/cpu/allocate.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/allocation_model.cpp b/src/targets/cpu/allocation_model.cpp old mode 100755 new mode 100644 index 8ae344169..bd6833fb9 --- a/src/targets/cpu/allocation_model.cpp +++ b/src/targets/cpu/allocation_model.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/binary.cpp b/src/targets/cpu/binary.cpp index abefd3156..8c232e86f 100644 --- a/src/targets/cpu/binary.cpp +++ b/src/targets/cpu/binary.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/concat.cpp b/src/targets/cpu/concat.cpp old mode 100755 new mode 100644 index aa7096370..0c7cdc954 --- a/src/targets/cpu/concat.cpp +++ b/src/targets/cpu/concat.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/convolution.cpp b/src/targets/cpu/convolution.cpp index 0a0bc1d8b..615b16e70 100644 --- a/src/targets/cpu/convolution.cpp +++ b/src/targets/cpu/convolution.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/copy.cpp b/src/targets/cpu/copy.cpp old mode 100755 new mode 100644 index bcb1aaeb6..4c4af2b71 --- a/src/targets/cpu/copy.cpp +++ b/src/targets/cpu/copy.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/deconvolution.cpp b/src/targets/cpu/deconvolution.cpp index 8fda44094..41be6c830 100644 --- a/src/targets/cpu/deconvolution.cpp +++ b/src/targets/cpu/deconvolution.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/dnnl.cpp b/src/targets/cpu/dnnl.cpp index 995c920db..3e5c1c1d0 100644 --- a/src/targets/cpu/dnnl.cpp +++ b/src/targets/cpu/dnnl.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #if defined(__GNUC__) && __GNUC__ <= 5 diff --git a/src/targets/cpu/eltwise.cpp b/src/targets/cpu/eltwise.cpp index 48af8335c..5b328cb7e 100644 --- a/src/targets/cpu/eltwise.cpp +++ b/src/targets/cpu/eltwise.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/erf.cpp b/src/targets/cpu/erf.cpp old mode 100755 new mode 100644 index 5216bba4c..9fa34b4fa --- a/src/targets/cpu/erf.cpp +++ b/src/targets/cpu/erf.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/fuse_ops.cpp b/src/targets/cpu/fuse_ops.cpp index a54c5153f..b8b71df2e 100644 --- a/src/targets/cpu/fuse_ops.cpp +++ b/src/targets/cpu/fuse_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/gather.cpp b/src/targets/cpu/gather.cpp old mode 100755 new mode 100644 index 94f8f85f9..40bc556b9 --- a/src/targets/cpu/gather.cpp +++ b/src/targets/cpu/gather.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/gemm.cpp b/src/targets/cpu/gemm.cpp index 97475ffb8..979c494bc 100644 --- a/src/targets/cpu/gemm.cpp +++ b/src/targets/cpu/gemm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp b/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp index 4a302d002..4ee101331 100644 --- a/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp +++ b/src/targets/cpu/include/migraphx/cpu/allocation_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_ALLOCATION_MODEL_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_ALLOCATION_MODEL_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/context.hpp b/src/targets/cpu/include/migraphx/cpu/context.hpp old mode 100755 new mode 100644 index 2df1b62e9..b4eaaebc1 --- a/src/targets/cpu/include/migraphx/cpu/context.hpp +++ b/src/targets/cpu/include/migraphx/cpu/context.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONTEXT_HPP #define MIGRAPHX_GUARD_RTGLIB_CONTEXT_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/dnnl.hpp b/src/targets/cpu/include/migraphx/cpu/dnnl.hpp index b14770741..247f95fb2 100644 --- a/src/targets/cpu/include/migraphx/cpu/dnnl.hpp +++ b/src/targets/cpu/include/migraphx/cpu/dnnl.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_DNNL_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_DNNL_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/fuse_ops.hpp b/src/targets/cpu/include/migraphx/cpu/fuse_ops.hpp old mode 100755 new mode 100644 index 80c5e0bec..f2e16b01a --- a/src/targets/cpu/include/migraphx/cpu/fuse_ops.hpp +++ b/src/targets/cpu/include/migraphx/cpu/fuse_ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_CPU_FUSE_OPS_HPP #define MIGRAPHX_GUARD_CPU_FUSE_OPS_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/lowering.hpp b/src/targets/cpu/include/migraphx/cpu/lowering.hpp index fbccd4c15..bc8ef20ec 100644 --- a/src/targets/cpu/include/migraphx/cpu/lowering.hpp +++ b/src/targets/cpu/include/migraphx/cpu/lowering.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CPU_LOWERING_HPP #define MIGRAPHX_GUARD_RTGLIB_CPU_LOWERING_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/parallel.hpp b/src/targets/cpu/include/migraphx/cpu/parallel.hpp old mode 100755 new mode 100644 index 2cf3a89ca..c9d9639ee --- a/src/targets/cpu/include/migraphx/cpu/parallel.hpp +++ b/src/targets/cpu/include/migraphx/cpu/parallel.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_PARALLEL_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_PARALLEL_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/pointwise.hpp b/src/targets/cpu/include/migraphx/cpu/pointwise.hpp index 050605f88..c3e764bcb 100644 --- a/src/targets/cpu/include/migraphx/cpu/pointwise.hpp +++ b/src/targets/cpu/include/migraphx/cpu/pointwise.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_POINTWISE_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_POINTWISE_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/target.hpp b/src/targets/cpu/include/migraphx/cpu/target.hpp old mode 100755 new mode 100644 index 9d2655d29..65b2eb543 --- a/src/targets/cpu/include/migraphx/cpu/target.hpp +++ b/src/targets/cpu/include/migraphx/cpu/target.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_CPU_TARGET_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_CPU_TARGET_HPP diff --git a/src/targets/cpu/include/migraphx/cpu/write_literals.hpp b/src/targets/cpu/include/migraphx/cpu/write_literals.hpp old mode 100755 new mode 100644 index 0e4e9ce30..3c23fb14f --- a/src/targets/cpu/include/migraphx/cpu/write_literals.hpp +++ b/src/targets/cpu/include/migraphx/cpu/write_literals.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_WRITE_LITERALS_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_CPU_WRITE_LITERALS_HPP diff --git a/src/targets/cpu/layernorm.cpp b/src/targets/cpu/layernorm.cpp old mode 100755 new mode 100644 index 572a97e8b..0d19eb827 --- a/src/targets/cpu/layernorm.cpp +++ b/src/targets/cpu/layernorm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/logsoftmax.cpp b/src/targets/cpu/logsoftmax.cpp index 5c5af02b4..e4bb88dc8 100644 --- a/src/targets/cpu/logsoftmax.cpp +++ b/src/targets/cpu/logsoftmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/lowering.cpp b/src/targets/cpu/lowering.cpp old mode 100755 new mode 100644 index 6fd2d28b7..19412b1a8 --- a/src/targets/cpu/lowering.cpp +++ b/src/targets/cpu/lowering.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/lrn.cpp b/src/targets/cpu/lrn.cpp index 93dc4f606..bd4c27129 100644 --- a/src/targets/cpu/lrn.cpp +++ b/src/targets/cpu/lrn.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/pooling.cpp b/src/targets/cpu/pooling.cpp index 540c6e50b..28ab11f0e 100644 --- a/src/targets/cpu/pooling.cpp +++ b/src/targets/cpu/pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/preallocate.cpp b/src/targets/cpu/preallocate.cpp index 7566a51d7..d831a1942 100644 --- a/src/targets/cpu/preallocate.cpp +++ b/src/targets/cpu/preallocate.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/reduction.cpp b/src/targets/cpu/reduction.cpp index ab4b039d0..e0a7517ee 100644 --- a/src/targets/cpu/reduction.cpp +++ b/src/targets/cpu/reduction.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/reorder.cpp b/src/targets/cpu/reorder.cpp old mode 100755 new mode 100644 index f92308004..a6c18a999 --- a/src/targets/cpu/reorder.cpp +++ b/src/targets/cpu/reorder.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/softmax.cpp b/src/targets/cpu/softmax.cpp index 568a6ca39..8c3610f23 100644 --- a/src/targets/cpu/softmax.cpp +++ b/src/targets/cpu/softmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/sub.cpp b/src/targets/cpu/sub.cpp old mode 100755 new mode 100644 index c42dc5bdf..8f3436071 --- a/src/targets/cpu/sub.cpp +++ b/src/targets/cpu/sub.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/cpu/target.cpp b/src/targets/cpu/target.cpp old mode 100755 new mode 100644 index 36d19df76..0401f0e27 --- a/src/targets/cpu/target.cpp +++ b/src/targets/cpu/target.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/cpu/write_literals.cpp b/src/targets/cpu/write_literals.cpp index 5c2838ab9..d0e5f6bcd 100644 --- a/src/targets/cpu/write_literals.cpp +++ b/src/targets/cpu/write_literals.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/CMakeLists.txt b/src/targets/gpu/CMakeLists.txt index 822782a66..524a78a9a 100755 --- a/src/targets/gpu/CMakeLists.txt +++ b/src/targets/gpu/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### list(APPEND CMAKE_PREFIX_PATH /opt/rocm /opt/rocm/hip /opt/rocm/hcc) find_package(miopen) diff --git a/src/targets/gpu/abs.cpp b/src/targets/gpu/abs.cpp index 9759925d7..00692daa9 100644 --- a/src/targets/gpu/abs.cpp +++ b/src/targets/gpu/abs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/allocation_model.cpp b/src/targets/gpu/allocation_model.cpp index e01f09881..e5fd2cc27 100644 --- a/src/targets/gpu/allocation_model.cpp +++ b/src/targets/gpu/allocation_model.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/analyze_streams.cpp b/src/targets/gpu/analyze_streams.cpp index b52771f6c..e08c89d82 100644 --- a/src/targets/gpu/analyze_streams.cpp +++ b/src/targets/gpu/analyze_streams.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/argmax.cpp b/src/targets/gpu/argmax.cpp index 0c38a9d5b..65b799ddb 100644 --- a/src/targets/gpu/argmax.cpp +++ b/src/targets/gpu/argmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/argmin.cpp b/src/targets/gpu/argmin.cpp index 1a2bf5b65..2159b4017 100644 --- a/src/targets/gpu/argmin.cpp +++ b/src/targets/gpu/argmin.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/batch_norm_inference.cpp b/src/targets/gpu/batch_norm_inference.cpp index 918be9910..4f58d61b7 100644 --- a/src/targets/gpu/batch_norm_inference.cpp +++ b/src/targets/gpu/batch_norm_inference.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/clip.cpp b/src/targets/gpu/clip.cpp index 5212be55e..18bc8239c 100644 --- a/src/targets/gpu/clip.cpp +++ b/src/targets/gpu/clip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/code_object_op.cpp b/src/targets/gpu/code_object_op.cpp old mode 100755 new mode 100644 index 568d428c6..b5fd34ee7 --- a/src/targets/gpu/code_object_op.cpp +++ b/src/targets/gpu/code_object_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/compile_gen.cpp b/src/targets/gpu/compile_gen.cpp index c990a9786..a8327e83c 100644 --- a/src/targets/gpu/compile_gen.cpp +++ b/src/targets/gpu/compile_gen.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/compile_hip.cpp b/src/targets/gpu/compile_hip.cpp index b243f3445..11fdbdc20 100644 --- a/src/targets/gpu/compile_hip.cpp +++ b/src/targets/gpu/compile_hip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/compile_hip_code_object.cpp b/src/targets/gpu/compile_hip_code_object.cpp index 6e0a0775c..6f8f9de3f 100644 --- a/src/targets/gpu/compile_hip_code_object.cpp +++ b/src/targets/gpu/compile_hip_code_object.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/compile_ops.cpp b/src/targets/gpu/compile_ops.cpp index c1ec40148..af2ec6fa7 100644 --- a/src/targets/gpu/compile_ops.cpp +++ b/src/targets/gpu/compile_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/compiler.cpp b/src/targets/gpu/compiler.cpp index 4d0a03d67..d715a23bb 100644 --- a/src/targets/gpu/compiler.cpp +++ b/src/targets/gpu/compiler.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/concat.cpp b/src/targets/gpu/concat.cpp index 11da025b2..71ad4f8f4 100644 --- a/src/targets/gpu/concat.cpp +++ b/src/targets/gpu/concat.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/convert.cpp b/src/targets/gpu/convert.cpp index 28f8081a2..ffdfc0dce 100644 --- a/src/targets/gpu/convert.cpp +++ b/src/targets/gpu/convert.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/convolution.cpp b/src/targets/gpu/convolution.cpp index d9fe88605..ac6088103 100644 --- a/src/targets/gpu/convolution.cpp +++ b/src/targets/gpu/convolution.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/deconvolution.cpp b/src/targets/gpu/deconvolution.cpp index 3671fe5d1..b2c2f16a1 100644 --- a/src/targets/gpu/deconvolution.cpp +++ b/src/targets/gpu/deconvolution.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/acos.cpp b/src/targets/gpu/device/acos.cpp index 1b49e054a..fbcf06449 100644 --- a/src/targets/gpu/device/acos.cpp +++ b/src/targets/gpu/device/acos.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/acosh.cpp b/src/targets/gpu/device/acosh.cpp index 2c6be266b..11a041035 100644 --- a/src/targets/gpu/device/acosh.cpp +++ b/src/targets/gpu/device/acosh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/add.cpp b/src/targets/gpu/device/add.cpp index 3848e0cc3..e2b467de4 100644 --- a/src/targets/gpu/device/add.cpp +++ b/src/targets/gpu/device/add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/add_clip.cpp b/src/targets/gpu/device/add_clip.cpp index 970ee34dd..3ccdf0f6d 100644 --- a/src/targets/gpu/device/add_clip.cpp +++ b/src/targets/gpu/device/add_clip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/add_relu.cpp b/src/targets/gpu/device/add_relu.cpp index e9d60ae74..a70f866c5 100644 --- a/src/targets/gpu/device/add_relu.cpp +++ b/src/targets/gpu/device/add_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/add_sigmoid.cpp b/src/targets/gpu/device/add_sigmoid.cpp index 180740ce1..bd44acaaf 100644 --- a/src/targets/gpu/device/add_sigmoid.cpp +++ b/src/targets/gpu/device/add_sigmoid.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/add_tanh.cpp b/src/targets/gpu/device/add_tanh.cpp index 574badffa..8e143c7ae 100644 --- a/src/targets/gpu/device/add_tanh.cpp +++ b/src/targets/gpu/device/add_tanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/argmax.cpp b/src/targets/gpu/device/argmax.cpp index 53e1403aa..082152096 100644 --- a/src/targets/gpu/device/argmax.cpp +++ b/src/targets/gpu/device/argmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/argmin.cpp b/src/targets/gpu/device/argmin.cpp index d02761655..887fc1f99 100644 --- a/src/targets/gpu/device/argmin.cpp +++ b/src/targets/gpu/device/argmin.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/asin.cpp b/src/targets/gpu/device/asin.cpp index cfc863e58..ad683e58e 100644 --- a/src/targets/gpu/device/asin.cpp +++ b/src/targets/gpu/device/asin.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/asinh.cpp b/src/targets/gpu/device/asinh.cpp index 0ddb9446f..c1cccfd27 100644 --- a/src/targets/gpu/device/asinh.cpp +++ b/src/targets/gpu/device/asinh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/atan.cpp b/src/targets/gpu/device/atan.cpp index f1be1bf24..c4fde2816 100644 --- a/src/targets/gpu/device/atan.cpp +++ b/src/targets/gpu/device/atan.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/atanh.cpp b/src/targets/gpu/device/atanh.cpp index 6df334cf8..e37aa16f0 100644 --- a/src/targets/gpu/device/atanh.cpp +++ b/src/targets/gpu/device/atanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/ceil.cpp b/src/targets/gpu/device/ceil.cpp index 1714715d2..28e231bdd 100644 --- a/src/targets/gpu/device/ceil.cpp +++ b/src/targets/gpu/device/ceil.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/clip.cpp b/src/targets/gpu/device/clip.cpp index d20638c94..15956c47b 100644 --- a/src/targets/gpu/device/clip.cpp +++ b/src/targets/gpu/device/clip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/concat.cpp b/src/targets/gpu/device/concat.cpp index 8e7db2c75..b580a39cd 100644 --- a/src/targets/gpu/device/concat.cpp +++ b/src/targets/gpu/device/concat.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/contiguous.cpp b/src/targets/gpu/device/contiguous.cpp index 9852c70fa..7d30aec54 100644 --- a/src/targets/gpu/device/contiguous.cpp +++ b/src/targets/gpu/device/contiguous.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/convert.cpp b/src/targets/gpu/device/convert.cpp index 74db16774..b38273467 100644 --- a/src/targets/gpu/device/convert.cpp +++ b/src/targets/gpu/device/convert.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/cos.cpp b/src/targets/gpu/device/cos.cpp index 68372c9cb..a5192be1e 100644 --- a/src/targets/gpu/device/cos.cpp +++ b/src/targets/gpu/device/cos.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/cosh.cpp b/src/targets/gpu/device/cosh.cpp index d701f6a70..e19f6cb1b 100644 --- a/src/targets/gpu/device/cosh.cpp +++ b/src/targets/gpu/device/cosh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/div.cpp b/src/targets/gpu/device/div.cpp index 4be5c5919..42cad28bc 100644 --- a/src/targets/gpu/device/div.cpp +++ b/src/targets/gpu/device/div.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/equal.cpp b/src/targets/gpu/device/equal.cpp index 81e27af86..d8940ea23 100644 --- a/src/targets/gpu/device/equal.cpp +++ b/src/targets/gpu/device/equal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/erf.cpp b/src/targets/gpu/device/erf.cpp index c42494839..4897555a7 100644 --- a/src/targets/gpu/device/erf.cpp +++ b/src/targets/gpu/device/erf.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/exp.cpp b/src/targets/gpu/device/exp.cpp index 2a67ba8fb..183a92be4 100644 --- a/src/targets/gpu/device/exp.cpp +++ b/src/targets/gpu/device/exp.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/fill.cpp b/src/targets/gpu/device/fill.cpp index febae466f..ea6640b7e 100644 --- a/src/targets/gpu/device/fill.cpp +++ b/src/targets/gpu/device/fill.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/floor.cpp b/src/targets/gpu/device/floor.cpp index 6854ecb25..cd4d4b789 100644 --- a/src/targets/gpu/device/floor.cpp +++ b/src/targets/gpu/device/floor.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/gather.cpp b/src/targets/gpu/device/gather.cpp index 3687f504d..36f09245e 100644 --- a/src/targets/gpu/device/gather.cpp +++ b/src/targets/gpu/device/gather.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/gelu.cpp b/src/targets/gpu/device/gelu.cpp index c8ca2cfd4..0814caab4 100644 --- a/src/targets/gpu/device/gelu.cpp +++ b/src/targets/gpu/device/gelu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/greater.cpp b/src/targets/gpu/device/greater.cpp index 8fcaf86aa..d5dea4826 100644 --- a/src/targets/gpu/device/greater.cpp +++ b/src/targets/gpu/device/greater.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/array.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/array.hpp index 34a51c737..70a695f11 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/array.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/array.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ARRAY_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ARRAY_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/fast_div.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/fast_div.hpp index 5ce5aedee..70c355135 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/fast_div.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/fast_div.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_FAST_DIV_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_FAST_DIV_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/float_equal.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/float_equal.hpp index 86e804b87..9fb6f858d 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/float_equal.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/float_equal.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GPU_DEVICE_FLOAT_EQUAL_HPP #define MIGRAPHX_GUARD_RTGLIB_GPU_DEVICE_FLOAT_EQUAL_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/launch.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/launch.hpp index 188b19f3c..38892003d 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/launch.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/launch.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LAUNCH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LAUNCH_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/multi_index.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/multi_index.hpp index 1b06d7da6..9a03df457 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/multi_index.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/multi_index.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MULTI_INDEX_HPP #define MIGRAPHX_GUARD_RTGLIB_MULTI_INDEX_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/nary.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/nary.hpp index 6d55f1572..7e6acc170 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/nary.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/nary.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_NARY_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_NARY_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/reduce.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/reduce.hpp index bbef1578d..ca0a1ab84 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/reduce.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/reduce.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/reduce_ops.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/reduce_ops.hpp old mode 100755 new mode 100644 index 8e5a0cde1..6bafb0d08 --- a/src/targets/gpu/device/include/migraphx/gpu/device/reduce_ops.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/reduce_ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_DEVICE_REDUCE_OPS_HPP #define MIGRAPHX_GUARD_DEVICE_REDUCE_OPS_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/scan.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/scan.hpp index 3b3b404d9..0a15037e5 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/scan.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/scan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_DEVICE_SCAN_HPP #define MIGRAPHX_GUARD_DEVICE_SCAN_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/shape.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/shape.hpp index 46f45017d..66f065c78 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/shape.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/shape.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SHAPE_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SHAPE_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/tensor.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/tensor.hpp index a362b09ad..2b85cb89d 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/tensor.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/tensor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEAVICE_TENSOR_HPP #define MIGRAPHX_GUARD_RTGLIB_DEAVICE_TENSOR_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/tensor_view.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/tensor_view.hpp index 7771bc361..8be3908a4 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/tensor_view.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/tensor_view.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_TENSOR_VIEW_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_TENSOR_VIEW_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/types.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/types.hpp index 6e7316833..355cc4477 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/types.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/types.hpp @@ -1,9 +1,26 @@ -/*============================================================================= - Copyright (c) 2017 Paul Fultz II - types.hpp - Distributed under the Boost Software License, Version 1.0. (See accompanying - file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -==============================================================================*/ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GPU_DEVICE_TYPES_HPP #define MIGRAPHX_GUARD_RTGLIB_GPU_DEVICE_TYPES_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/vector.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/vector.hpp index b9b47a7ab..93fe06b0c 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/vector.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/vector.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_VECTOR_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_VECTOR_HPP diff --git a/src/targets/gpu/device/include/migraphx/gpu/device/visit.hpp b/src/targets/gpu/device/include/migraphx/gpu/device/visit.hpp index 4c82bd6c1..75f6cf9b6 100644 --- a/src/targets/gpu/device/include/migraphx/gpu/device/visit.hpp +++ b/src/targets/gpu/device/include/migraphx/gpu/device/visit.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_VISIT_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_VISIT_HPP diff --git a/src/targets/gpu/device/int8_gemm_pack.cpp b/src/targets/gpu/device/int8_gemm_pack.cpp index b9a182986..7b682b77a 100644 --- a/src/targets/gpu/device/int8_gemm_pack.cpp +++ b/src/targets/gpu/device/int8_gemm_pack.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/layernorm.cpp b/src/targets/gpu/device/layernorm.cpp index 3c7f9d0a1..752e27e35 100644 --- a/src/targets/gpu/device/layernorm.cpp +++ b/src/targets/gpu/device/layernorm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/less.cpp b/src/targets/gpu/device/less.cpp index 2b16a89be..18d15a058 100644 --- a/src/targets/gpu/device/less.cpp +++ b/src/targets/gpu/device/less.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/log.cpp b/src/targets/gpu/device/log.cpp index cc65d66a1..5d0f6a25b 100644 --- a/src/targets/gpu/device/log.cpp +++ b/src/targets/gpu/device/log.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/logical_and.cpp b/src/targets/gpu/device/logical_and.cpp index 243d6b237..71a23252c 100644 --- a/src/targets/gpu/device/logical_and.cpp +++ b/src/targets/gpu/device/logical_and.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/logical_or.cpp b/src/targets/gpu/device/logical_or.cpp index af58c7170..21cf4b9ed 100644 --- a/src/targets/gpu/device/logical_or.cpp +++ b/src/targets/gpu/device/logical_or.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/logical_xor.cpp b/src/targets/gpu/device/logical_xor.cpp index a251135d6..e93d84615 100644 --- a/src/targets/gpu/device/logical_xor.cpp +++ b/src/targets/gpu/device/logical_xor.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/logsoftmax.cpp b/src/targets/gpu/device/logsoftmax.cpp index 1e6e85a8f..f2dd6148b 100644 --- a/src/targets/gpu/device/logsoftmax.cpp +++ b/src/targets/gpu/device/logsoftmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/max.cpp b/src/targets/gpu/device/max.cpp index cd47e16ca..94efa2011 100644 --- a/src/targets/gpu/device/max.cpp +++ b/src/targets/gpu/device/max.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/min.cpp b/src/targets/gpu/device/min.cpp index dee081ed8..38f315d37 100644 --- a/src/targets/gpu/device/min.cpp +++ b/src/targets/gpu/device/min.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/mul.cpp b/src/targets/gpu/device/mul.cpp index 38ea36d87..8cb25e25e 100644 --- a/src/targets/gpu/device/mul.cpp +++ b/src/targets/gpu/device/mul.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/mul_add.cpp b/src/targets/gpu/device/mul_add.cpp index 0f7acb688..5d56de1de 100644 --- a/src/targets/gpu/device/mul_add.cpp +++ b/src/targets/gpu/device/mul_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/mul_add_relu.cpp b/src/targets/gpu/device/mul_add_relu.cpp index 8edcf5575..d267382ad 100644 --- a/src/targets/gpu/device/mul_add_relu.cpp +++ b/src/targets/gpu/device/mul_add_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/multinomial.cpp b/src/targets/gpu/device/multinomial.cpp index cc4a2cd80..b9f942e29 100644 --- a/src/targets/gpu/device/multinomial.cpp +++ b/src/targets/gpu/device/multinomial.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/nonzero.cpp b/src/targets/gpu/device/nonzero.cpp index 60f72fc2f..223713390 100644 --- a/src/targets/gpu/device/nonzero.cpp +++ b/src/targets/gpu/device/nonzero.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/pad.cpp b/src/targets/gpu/device/pad.cpp index 0f66d86bd..ef2812f86 100644 --- a/src/targets/gpu/device/pad.cpp +++ b/src/targets/gpu/device/pad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/pow.cpp b/src/targets/gpu/device/pow.cpp index e6a79d5ae..f0092d09e 100644 --- a/src/targets/gpu/device/pow.cpp +++ b/src/targets/gpu/device/pow.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/prefix_scan_sum.cpp b/src/targets/gpu/device/prefix_scan_sum.cpp index 2f8d2c569..9518f5b45 100644 --- a/src/targets/gpu/device/prefix_scan_sum.cpp +++ b/src/targets/gpu/device/prefix_scan_sum.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/prelu.cpp b/src/targets/gpu/device/prelu.cpp index e4be841f6..3b7cc86ca 100644 --- a/src/targets/gpu/device/prelu.cpp +++ b/src/targets/gpu/device/prelu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/recip.cpp b/src/targets/gpu/device/recip.cpp index 548a32da6..554450461 100644 --- a/src/targets/gpu/device/recip.cpp +++ b/src/targets/gpu/device/recip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/reduce_max.cpp b/src/targets/gpu/device/reduce_max.cpp index 6564bea69..8a0ec294f 100644 --- a/src/targets/gpu/device/reduce_max.cpp +++ b/src/targets/gpu/device/reduce_max.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/reduce_mean.cpp b/src/targets/gpu/device/reduce_mean.cpp index 925b765c8..042e8c407 100644 --- a/src/targets/gpu/device/reduce_mean.cpp +++ b/src/targets/gpu/device/reduce_mean.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/reduce_min.cpp b/src/targets/gpu/device/reduce_min.cpp index f62604761..e4c4b9b7a 100644 --- a/src/targets/gpu/device/reduce_min.cpp +++ b/src/targets/gpu/device/reduce_min.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/reduce_prod.cpp b/src/targets/gpu/device/reduce_prod.cpp index c4fcf0859..26d41ecff 100644 --- a/src/targets/gpu/device/reduce_prod.cpp +++ b/src/targets/gpu/device/reduce_prod.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/reduce_sum.cpp b/src/targets/gpu/device/reduce_sum.cpp index 8b98d3043..d18a6a6b3 100644 --- a/src/targets/gpu/device/reduce_sum.cpp +++ b/src/targets/gpu/device/reduce_sum.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/relu.cpp b/src/targets/gpu/device/relu.cpp index c2db092f6..c4c220d35 100644 --- a/src/targets/gpu/device/relu.cpp +++ b/src/targets/gpu/device/relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/reverse.cpp b/src/targets/gpu/device/reverse.cpp index d97f5a19c..5d5831127 100644 --- a/src/targets/gpu/device/reverse.cpp +++ b/src/targets/gpu/device/reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "migraphx/gpu/device/visit.hpp" #include #include diff --git a/src/targets/gpu/device/rnn_variable_seq_lens.cpp b/src/targets/gpu/device/rnn_variable_seq_lens.cpp index 8540fd382..6d21c702f 100644 --- a/src/targets/gpu/device/rnn_variable_seq_lens.cpp +++ b/src/targets/gpu/device/rnn_variable_seq_lens.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/round.cpp b/src/targets/gpu/device/round.cpp index e742d0e82..a692626bb 100644 --- a/src/targets/gpu/device/round.cpp +++ b/src/targets/gpu/device/round.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/rsqrt.cpp b/src/targets/gpu/device/rsqrt.cpp index 1e3b92f62..bd7bf15e7 100644 --- a/src/targets/gpu/device/rsqrt.cpp +++ b/src/targets/gpu/device/rsqrt.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/scatter.cpp b/src/targets/gpu/device/scatter.cpp index eecadce7d..a323efc6e 100644 --- a/src/targets/gpu/device/scatter.cpp +++ b/src/targets/gpu/device/scatter.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/sigmoid.cpp b/src/targets/gpu/device/sigmoid.cpp index 12744442b..9a31b3510 100644 --- a/src/targets/gpu/device/sigmoid.cpp +++ b/src/targets/gpu/device/sigmoid.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/sign.cpp b/src/targets/gpu/device/sign.cpp index cc2725720..cb265e136 100644 --- a/src/targets/gpu/device/sign.cpp +++ b/src/targets/gpu/device/sign.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/sin.cpp b/src/targets/gpu/device/sin.cpp index a9c4b5fa9..77e9455a2 100644 --- a/src/targets/gpu/device/sin.cpp +++ b/src/targets/gpu/device/sin.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/sinh.cpp b/src/targets/gpu/device/sinh.cpp index b05bce5e1..e0ebbaeb5 100644 --- a/src/targets/gpu/device/sinh.cpp +++ b/src/targets/gpu/device/sinh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/softmax.cpp b/src/targets/gpu/device/softmax.cpp index eab6f7b2a..5a54d882a 100644 --- a/src/targets/gpu/device/softmax.cpp +++ b/src/targets/gpu/device/softmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/sqdiff.cpp b/src/targets/gpu/device/sqdiff.cpp index 7a6a595a3..7c36eca98 100644 --- a/src/targets/gpu/device/sqdiff.cpp +++ b/src/targets/gpu/device/sqdiff.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/sqrt.cpp b/src/targets/gpu/device/sqrt.cpp index b888f8ca2..432f83189 100644 --- a/src/targets/gpu/device/sqrt.cpp +++ b/src/targets/gpu/device/sqrt.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/sub.cpp b/src/targets/gpu/device/sub.cpp index 3f2f2d267..3a937bea7 100644 --- a/src/targets/gpu/device/sub.cpp +++ b/src/targets/gpu/device/sub.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/device/tan.cpp b/src/targets/gpu/device/tan.cpp index bed954556..24c086da5 100644 --- a/src/targets/gpu/device/tan.cpp +++ b/src/targets/gpu/device/tan.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/tanh.cpp b/src/targets/gpu/device/tanh.cpp index 9550ae14a..41c0f949c 100644 --- a/src/targets/gpu/device/tanh.cpp +++ b/src/targets/gpu/device/tanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/topk.cpp b/src/targets/gpu/device/topk.cpp index b30c7886e..78e89bd97 100644 --- a/src/targets/gpu/device/topk.cpp +++ b/src/targets/gpu/device/topk.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/unary_not.cpp b/src/targets/gpu/device/unary_not.cpp index 97b3e34b7..4efc26b63 100644 --- a/src/targets/gpu/device/unary_not.cpp +++ b/src/targets/gpu/device/unary_not.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device/where.cpp b/src/targets/gpu/device/where.cpp index befd2fbcd..ad811e572 100644 --- a/src/targets/gpu/device/where.cpp +++ b/src/targets/gpu/device/where.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/device_name.cpp b/src/targets/gpu/device_name.cpp old mode 100755 new mode 100644 index bdb651ed0..5f0fca3a8 --- a/src/targets/gpu/device_name.cpp +++ b/src/targets/gpu/device_name.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/driver/CMakeLists.txt b/src/targets/gpu/driver/CMakeLists.txt index 4bf5cce54..78fa72e8e 100755 --- a/src/targets/gpu/driver/CMakeLists.txt +++ b/src/targets/gpu/driver/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### file(GLOB GPU_DRIVER_SRCS ${CONFIGURE_DEPENDS} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) add_executable(gpu-driver diff --git a/src/targets/gpu/driver/action.cpp b/src/targets/gpu/driver/action.cpp index ba5480fbe..ea71afdf1 100644 --- a/src/targets/gpu/driver/action.cpp +++ b/src/targets/gpu/driver/action.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/driver/compile_op.cpp b/src/targets/gpu/driver/compile_op.cpp index db5354823..d098a9c64 100644 --- a/src/targets/gpu/driver/compile_op.cpp +++ b/src/targets/gpu/driver/compile_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/driver/include/migraphx/gpu/driver/action.hpp b/src/targets/gpu/driver/include/migraphx/gpu/driver/action.hpp index cd6abc601..1b2363cc6 100644 --- a/src/targets/gpu/driver/include/migraphx/gpu/driver/action.hpp +++ b/src/targets/gpu/driver/include/migraphx/gpu/driver/action.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_DRIVER_ACTION_HPP #define MIGRAPHX_GUARD_GPU_DRIVER_ACTION_HPP diff --git a/src/targets/gpu/driver/include/migraphx/gpu/driver/parser.hpp b/src/targets/gpu/driver/include/migraphx/gpu/driver/parser.hpp index 3d6a43d9f..d5995eeb5 100644 --- a/src/targets/gpu/driver/include/migraphx/gpu/driver/parser.hpp +++ b/src/targets/gpu/driver/include/migraphx/gpu/driver/parser.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_DRIVER_PARSER_HPP #define MIGRAPHX_GUARD_GPU_DRIVER_PARSER_HPP diff --git a/src/targets/gpu/driver/include/migraphx/gpu/driver/perf.hpp b/src/targets/gpu/driver/include/migraphx/gpu/driver/perf.hpp old mode 100755 new mode 100644 index 004af8bd4..3f713b4b7 --- a/src/targets/gpu/driver/include/migraphx/gpu/driver/perf.hpp +++ b/src/targets/gpu/driver/include/migraphx/gpu/driver/perf.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_DRIVER_PERF_HPP #define MIGRAPHX_GUARD_GPU_DRIVER_PERF_HPP diff --git a/src/targets/gpu/driver/main.cpp b/src/targets/gpu/driver/main.cpp index 0696355c2..c61e447db 100644 --- a/src/targets/gpu/driver/main.cpp +++ b/src/targets/gpu/driver/main.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/driver/parser.cpp b/src/targets/gpu/driver/parser.cpp index fec9c7b11..c84d00580 100644 --- a/src/targets/gpu/driver/parser.cpp +++ b/src/targets/gpu/driver/parser.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/driver/perf.cpp b/src/targets/gpu/driver/perf.cpp old mode 100755 new mode 100644 index f4f498100..9797681f9 --- a/src/targets/gpu/driver/perf.cpp +++ b/src/targets/gpu/driver/perf.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/driver/run_op.cpp b/src/targets/gpu/driver/run_op.cpp index 9d523d340..b647745d9 100644 --- a/src/targets/gpu/driver/run_op.cpp +++ b/src/targets/gpu/driver/run_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/eliminate_workspace.cpp b/src/targets/gpu/eliminate_workspace.cpp index 9f09aec18..abb53a995 100644 --- a/src/targets/gpu/eliminate_workspace.cpp +++ b/src/targets/gpu/eliminate_workspace.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/elu.cpp b/src/targets/gpu/elu.cpp index b205bdd5a..afeb14f68 100644 --- a/src/targets/gpu/elu.cpp +++ b/src/targets/gpu/elu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/fuse_ops.cpp b/src/targets/gpu/fuse_ops.cpp index f74a71ecc..27cf2f19d 100644 --- a/src/targets/gpu/fuse_ops.cpp +++ b/src/targets/gpu/fuse_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/gather.cpp b/src/targets/gpu/gather.cpp index 59d6ec864..8160f47ba 100644 --- a/src/targets/gpu/gather.cpp +++ b/src/targets/gpu/gather.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/gemm_impl.cpp b/src/targets/gpu/gemm_impl.cpp index c2d7dabe2..361a09b09 100644 --- a/src/targets/gpu/gemm_impl.cpp +++ b/src/targets/gpu/gemm_impl.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/hip.cpp b/src/targets/gpu/hip.cpp index 6cb830712..2685b0893 100644 --- a/src/targets/gpu/hip.cpp +++ b/src/targets/gpu/hip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include diff --git a/src/targets/gpu/include/migraphx/gpu/abs.hpp b/src/targets/gpu/include/migraphx/gpu/abs.hpp index 230e6e4e5..4604e64b0 100644 --- a/src/targets/gpu/include/migraphx/gpu/abs.hpp +++ b/src/targets/gpu/include/migraphx/gpu/abs.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ABS_HPP #define MIGRAPHX_GUARD_RTGLIB_ABS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/acos.hpp b/src/targets/gpu/include/migraphx/gpu/acos.hpp index c6d57aa50..df64f924c 100644 --- a/src/targets/gpu/include/migraphx/gpu/acos.hpp +++ b/src/targets/gpu/include/migraphx/gpu/acos.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ACOS_HPP #define MIGRAPHX_GUARD_RTGLIB_ACOS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/acosh.hpp b/src/targets/gpu/include/migraphx/gpu/acosh.hpp index a17813bfa..58195c4c9 100644 --- a/src/targets/gpu/include/migraphx/gpu/acosh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/acosh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ACOSH_HPP #define MIGRAPHX_GUARD_RTGLIB_ACOSH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/add.hpp b/src/targets/gpu/include/migraphx/gpu/add.hpp index 13e1c79ae..fa244d4d8 100644 --- a/src/targets/gpu/include/migraphx/gpu/add.hpp +++ b/src/targets/gpu/include/migraphx/gpu/add.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ADD_HPP #define MIGRAPHX_GUARD_RTGLIB_ADD_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp b/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp index e9e1e3c55..953153c3c 100644 --- a/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp +++ b/src/targets/gpu/include/migraphx/gpu/allocation_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_GPU_ALLOCATION_MODEL_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_GPU_ALLOCATION_MODEL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/analyze_streams.hpp b/src/targets/gpu/include/migraphx/gpu/analyze_streams.hpp index dd7fa840a..1b48be96f 100644 --- a/src/targets/gpu/include/migraphx/gpu/analyze_streams.hpp +++ b/src/targets/gpu/include/migraphx/gpu/analyze_streams.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GPU_ANALYZE_STREAMS_HPP #define MIGRAPHX_GUARD_RTGLIB_GPU_ANALYZE_STREAMS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/argmax.hpp b/src/targets/gpu/include/migraphx/gpu/argmax.hpp index 92814fa8c..e05678fa8 100644 --- a/src/targets/gpu/include/migraphx/gpu/argmax.hpp +++ b/src/targets/gpu/include/migraphx/gpu/argmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ARGMAX_HPP #define MIGRAPHX_GUARD_RTGLIB_ARGMAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/argmin.hpp b/src/targets/gpu/include/migraphx/gpu/argmin.hpp index f43c2bd71..071eb525e 100644 --- a/src/targets/gpu/include/migraphx/gpu/argmin.hpp +++ b/src/targets/gpu/include/migraphx/gpu/argmin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ARGMIN_HPP #define MIGRAPHX_GUARD_RTGLIB_ARGMIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/asin.hpp b/src/targets/gpu/include/migraphx/gpu/asin.hpp index 0d852b3e8..9cd74bab6 100644 --- a/src/targets/gpu/include/migraphx/gpu/asin.hpp +++ b/src/targets/gpu/include/migraphx/gpu/asin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ASIN_HPP #define MIGRAPHX_GUARD_RTGLIB_ASIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/asinh.hpp b/src/targets/gpu/include/migraphx/gpu/asinh.hpp index 099460fc6..11cc04822 100644 --- a/src/targets/gpu/include/migraphx/gpu/asinh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/asinh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ASINH_HPP #define MIGRAPHX_GUARD_RTGLIB_ASINH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/atan.hpp b/src/targets/gpu/include/migraphx/gpu/atan.hpp index d8d8f8de8..2e1cdb4d0 100644 --- a/src/targets/gpu/include/migraphx/gpu/atan.hpp +++ b/src/targets/gpu/include/migraphx/gpu/atan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ATAN_HPP #define MIGRAPHX_GUARD_RTGLIB_ATAN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/atanh.hpp b/src/targets/gpu/include/migraphx/gpu/atanh.hpp index 6b2f43497..6c2d0f487 100644 --- a/src/targets/gpu/include/migraphx/gpu/atanh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/atanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ATANH_HPP #define MIGRAPHX_GUARD_RTGLIB_ATANH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/batch_norm_inference.hpp b/src/targets/gpu/include/migraphx/gpu/batch_norm_inference.hpp index 9d682131f..7f1bb0a82 100644 --- a/src/targets/gpu/include/migraphx/gpu/batch_norm_inference.hpp +++ b/src/targets/gpu/include/migraphx/gpu/batch_norm_inference.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_BATCHNORM_HPP #define MIGRAPHX_GUARD_RTGLIB_BATCHNORM_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/ceil.hpp b/src/targets/gpu/include/migraphx/gpu/ceil.hpp index a626ad0b7..a493b21ba 100644 --- a/src/targets/gpu/include/migraphx/gpu/ceil.hpp +++ b/src/targets/gpu/include/migraphx/gpu/ceil.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CEIL_HPP #define MIGRAPHX_GUARD_RTGLIB_CEIL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/clip.hpp b/src/targets/gpu/include/migraphx/gpu/clip.hpp index a3bb7b916..ee2adb6ec 100644 --- a/src/targets/gpu/include/migraphx/gpu/clip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/clip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CLIP_HPP #define MIGRAPHX_GUARD_RTGLIB_CLIP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp b/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp old mode 100755 new mode 100644 index 7e014a451..a50b0144b --- a/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp +++ b/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_CODE_OBJECT_OP_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_CODE_OBJECT_OP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/compile_gen.hpp b/src/targets/gpu/include/migraphx/gpu/compile_gen.hpp index b28f922da..44d1ee111 100644 --- a/src/targets/gpu/include/migraphx/gpu/compile_gen.hpp +++ b/src/targets/gpu/include/migraphx/gpu/compile_gen.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_COMPILE_GEN_HPP #define MIGRAPHX_GUARD_GPU_COMPILE_GEN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/compile_hip.hpp b/src/targets/gpu/include/migraphx/gpu/compile_hip.hpp old mode 100755 new mode 100644 index 556f70065..3740d5129 --- a/src/targets/gpu/include/migraphx/gpu/compile_hip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/compile_hip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_COMPILE_HIP_HPP #define MIGRAPHX_GUARD_RTGLIB_COMPILE_HIP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/compile_hip_code_object.hpp b/src/targets/gpu/include/migraphx/gpu/compile_hip_code_object.hpp index 882baadc6..238eab3e8 100644 --- a/src/targets/gpu/include/migraphx/gpu/compile_hip_code_object.hpp +++ b/src/targets/gpu/include/migraphx/gpu/compile_hip_code_object.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_COMPILE_HIP_CODE_OBJECT_HPP #define MIGRAPHX_GUARD_GPU_COMPILE_HIP_CODE_OBJECT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/compile_ops.hpp b/src/targets/gpu/include/migraphx/gpu/compile_ops.hpp index 6861c96b4..ba8ad6241 100644 --- a/src/targets/gpu/include/migraphx/gpu/compile_ops.hpp +++ b/src/targets/gpu/include/migraphx/gpu/compile_ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_COMPILE_OPS_HPP #define MIGRAPHX_GUARD_GPU_COMPILE_OPS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/compiler.hpp b/src/targets/gpu/include/migraphx/gpu/compiler.hpp index d641415d3..e68228657 100644 --- a/src/targets/gpu/include/migraphx/gpu/compiler.hpp +++ b/src/targets/gpu/include/migraphx/gpu/compiler.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_COMPILER_HPP #define MIGRAPHX_GUARD_GPU_COMPILER_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/concat.hpp b/src/targets/gpu/include/migraphx/gpu/concat.hpp index 0292cb06c..f4bb07d66 100644 --- a/src/targets/gpu/include/migraphx/gpu/concat.hpp +++ b/src/targets/gpu/include/migraphx/gpu/concat.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONCAT_HPP #define MIGRAPHX_GUARD_RTGLIB_CONCAT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/concat_gpu_opt.hpp b/src/targets/gpu/include/migraphx/gpu/concat_gpu_opt.hpp index 6cb772ba8..ba5c63d5b 100644 --- a/src/targets/gpu/include/migraphx/gpu/concat_gpu_opt.hpp +++ b/src/targets/gpu/include/migraphx/gpu/concat_gpu_opt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONCAT_GPU_OPT_HPP #define MIGRAPHX_GUARD_RTGLIB_CONCAT_GPU_OPT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/context.hpp b/src/targets/gpu/include/migraphx/gpu/context.hpp index f9da7a90d..e81b66b44 100644 --- a/src/targets/gpu/include/migraphx/gpu/context.hpp +++ b/src/targets/gpu/include/migraphx/gpu/context.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONTEXT_HPP #define MIGRAPHX_GUARD_RTGLIB_CONTEXT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/contiguous.hpp b/src/targets/gpu/include/migraphx/gpu/contiguous.hpp index d8294ebde..1e759ddec 100644 --- a/src/targets/gpu/include/migraphx/gpu/contiguous.hpp +++ b/src/targets/gpu/include/migraphx/gpu/contiguous.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONTIGUOUS_HPP #define MIGRAPHX_GUARD_RTGLIB_CONTIGUOUS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/convert.hpp b/src/targets/gpu/include/migraphx/gpu/convert.hpp index d276c5e2f..1b30c5005 100644 --- a/src/targets/gpu/include/migraphx/gpu/convert.hpp +++ b/src/targets/gpu/include/migraphx/gpu/convert.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONVERT_HPP #define MIGRAPHX_GUARD_RTGLIB_CONVERT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/convolution.hpp b/src/targets/gpu/include/migraphx/gpu/convolution.hpp index 54c2590d8..2e96ef864 100644 --- a/src/targets/gpu/include/migraphx/gpu/convolution.hpp +++ b/src/targets/gpu/include/migraphx/gpu/convolution.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONVOLUTION_HPP #define MIGRAPHX_GUARD_RTGLIB_CONVOLUTION_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/cos.hpp b/src/targets/gpu/include/migraphx/gpu/cos.hpp index 4902d4f71..1ba3f190b 100644 --- a/src/targets/gpu/include/migraphx/gpu/cos.hpp +++ b/src/targets/gpu/include/migraphx/gpu/cos.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_COS_HPP #define MIGRAPHX_GUARD_RTGLIB_COS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/cosh.hpp b/src/targets/gpu/include/migraphx/gpu/cosh.hpp index 8f5dc958b..2a87bc73e 100644 --- a/src/targets/gpu/include/migraphx/gpu/cosh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/cosh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_COSH_HPP #define MIGRAPHX_GUARD_RTGLIB_COSH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp b/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp index a45d4ecce..6d324fb59 100644 --- a/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp +++ b/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DECONVOLUTION_HPP #define MIGRAPHX_GUARD_RTGLIB_DECONVOLUTION_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/acos.hpp b/src/targets/gpu/include/migraphx/gpu/device/acos.hpp index 217644309..1f26c34d4 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/acos.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/acos.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ACOS_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ACOS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/acosh.hpp b/src/targets/gpu/include/migraphx/gpu/device/acosh.hpp index 4bf210453..68cd1eea8 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/acosh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/acosh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ACOSH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ACOSH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/add.hpp b/src/targets/gpu/include/migraphx/gpu/device/add.hpp index 8dac24aab..af6bc7cc7 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/add.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/add.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/add_clip.hpp b/src/targets/gpu/include/migraphx/gpu/device/add_clip.hpp index 0c6431d48..28d72b6b6 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/add_clip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/add_clip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_CLIP_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_CLIP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/add_relu.hpp b/src/targets/gpu/include/migraphx/gpu/device/add_relu.hpp index 712768d26..fa4810a37 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/add_relu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/add_relu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_RELU_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_RELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/add_sigmoid.hpp b/src/targets/gpu/include/migraphx/gpu/device/add_sigmoid.hpp index 5907419e2..fd4c10d2a 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/add_sigmoid.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/add_sigmoid.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_SIGMOID_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_SIGMOID_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/add_tanh.hpp b/src/targets/gpu/include/migraphx/gpu/device/add_tanh.hpp index b35acfd86..be11a2f87 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/add_tanh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/add_tanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_TANH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ADD_TANH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/arg_op.hpp b/src/targets/gpu/include/migraphx/gpu/device/arg_op.hpp index 28117e8f5..fadb56bd0 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/arg_op.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/arg_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ARG_OP_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ARG_OP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/argmax.hpp b/src/targets/gpu/include/migraphx/gpu/device/argmax.hpp index 2843b017e..30f963a01 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/argmax.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/argmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ARGMAX_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ARGMAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/argmin.hpp b/src/targets/gpu/include/migraphx/gpu/device/argmin.hpp index c8abb0f02..b0a3387aa 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/argmin.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/argmin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ARGMIN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ARGMIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/asin.hpp b/src/targets/gpu/include/migraphx/gpu/device/asin.hpp index 47bddd527..fd790a80a 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/asin.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/asin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ASIN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ASIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/asinh.hpp b/src/targets/gpu/include/migraphx/gpu/device/asinh.hpp index fdcbac7c9..dc2c9f8b7 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/asinh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/asinh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ASINH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ASINH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/atan.hpp b/src/targets/gpu/include/migraphx/gpu/device/atan.hpp index 0fdab3190..2012792c2 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/atan.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/atan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ATAN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ATAN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/atanh.hpp b/src/targets/gpu/include/migraphx/gpu/device/atanh.hpp index 014c40fda..a8622af60 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/atanh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/atanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ATANH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ATANH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/ceil.hpp b/src/targets/gpu/include/migraphx/gpu/device/ceil.hpp index 4eebc4a67..4d537fc8e 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/ceil.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/ceil.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_CEIL_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_CEIL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/clip.hpp b/src/targets/gpu/include/migraphx/gpu/device/clip.hpp index 3a028b692..0e65d8e58 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/clip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/clip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_CLIP_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_CLIP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/concat.hpp b/src/targets/gpu/include/migraphx/gpu/device/concat.hpp index f72ef1c88..dd02b18a7 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/concat.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/concat.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_CONCAT_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_CONCAT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/contiguous.hpp b/src/targets/gpu/include/migraphx/gpu/device/contiguous.hpp index 7d2c4b2da..4c210c0b7 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/contiguous.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/contiguous.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_KERNELS_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_KERNELS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/convert.hpp b/src/targets/gpu/include/migraphx/gpu/device/convert.hpp index 76399b7f3..96f49fe2a 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/convert.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/convert.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_CONVERT_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_CONVERT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/cos.hpp b/src/targets/gpu/include/migraphx/gpu/device/cos.hpp index c1eddecea..5dedce1f3 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/cos.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/cos.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_COS_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_COS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/cosh.hpp b/src/targets/gpu/include/migraphx/gpu/device/cosh.hpp index 66e2ae26c..b6cf06c33 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/cosh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/cosh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_COSH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_COSH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/div.hpp b/src/targets/gpu/include/migraphx/gpu/device/div.hpp index 1d67abcac..9e0e20d5d 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/div.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/div.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_DIV_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_DIV_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/equal.hpp b/src/targets/gpu/include/migraphx/gpu/device/equal.hpp index 559678dac..27b8cc844 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/equal.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/equal.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_EQUAL_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_EQUAL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/erf.hpp b/src/targets/gpu/include/migraphx/gpu/device/erf.hpp index 082bfc8db..d14cf6a97 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/erf.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/erf.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ERF_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ERF_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/exp.hpp b/src/targets/gpu/include/migraphx/gpu/device/exp.hpp index 65b224aa5..40ac3960e 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/exp.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/exp.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_EXP_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_EXP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/fill.hpp b/src/targets/gpu/include/migraphx/gpu/device/fill.hpp index 6d7d4d5ae..7743c7030 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/fill.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/fill.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_FILL_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_FILL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/floor.hpp b/src/targets/gpu/include/migraphx/gpu/device/floor.hpp index 68ac258c5..c81f00bf3 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/floor.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/floor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_FLOOR_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_FLOOR_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/gather.hpp b/src/targets/gpu/include/migraphx/gpu/device/gather.hpp index 02fb6bdf5..c532b1977 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/gather.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/gather.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_GATHER_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_GATHER_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/gelu.hpp b/src/targets/gpu/include/migraphx/gpu/device/gelu.hpp index 469e63c38..9f2a0407f 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/gelu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/gelu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_GELU_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_GELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/greater.hpp b/src/targets/gpu/include/migraphx/gpu/device/greater.hpp index 03588ddcb..ef48d5806 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/greater.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/greater.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_GREATER_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_GREATER_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/int8_gemm_pack.hpp b/src/targets/gpu/include/migraphx/gpu/device/int8_gemm_pack.hpp index b43e20820..2f9823493 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/int8_gemm_pack.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/int8_gemm_pack.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_INT8_GEMM_PACK_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_INT8_GEMM_PACK_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/layernorm.hpp b/src/targets/gpu/include/migraphx/gpu/device/layernorm.hpp index 6508b0031..623f40861 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/layernorm.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/layernorm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LAYERNORM_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LAYERNORM_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/less.hpp b/src/targets/gpu/include/migraphx/gpu/device/less.hpp index 8e7c99d51..672f18e71 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/less.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/less.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LESS_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LESS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/log.hpp b/src/targets/gpu/include/migraphx/gpu/device/log.hpp index 31d771743..edd8c40cf 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/log.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/log.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LOG_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LOG_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/logical_and.hpp b/src/targets/gpu/include/migraphx/gpu/device/logical_and.hpp index f7182ac87..83f9366b5 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/logical_and.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/logical_and.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_AND_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_AND_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/logical_or.hpp b/src/targets/gpu/include/migraphx/gpu/device/logical_or.hpp index df1007171..3206d7f96 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/logical_or.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/logical_or.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_OR_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_OR_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/logical_xor.hpp b/src/targets/gpu/include/migraphx/gpu/device/logical_xor.hpp index 698ddd890..88c33d1c5 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/logical_xor.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/logical_xor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_XOR_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_XOR_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/logsoftmax.hpp b/src/targets/gpu/include/migraphx/gpu/device/logsoftmax.hpp index e1217bce9..0cfb548e8 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/logsoftmax.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/logsoftmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGSOFTMAX_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGSOFTMAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/max.hpp b/src/targets/gpu/include/migraphx/gpu/device/max.hpp index 8fd404019..a028a7f11 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/max.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/max.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_MAX_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_MAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/min.hpp b/src/targets/gpu/include/migraphx/gpu/device/min.hpp index 5371b5981..8e2cc5eb4 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/min.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/min.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_MIN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_MIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/mul.hpp b/src/targets/gpu/include/migraphx/gpu/device/mul.hpp index 6d2e99221..60e36740f 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/mul.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/mul.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_MUL_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_MUL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/mul_add.hpp b/src/targets/gpu/include/migraphx/gpu/device/mul_add.hpp index 7a385407d..21d32e460 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/mul_add.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/mul_add.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_MUL_ADD_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_MUL_ADD_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/mul_add_relu.hpp b/src/targets/gpu/include/migraphx/gpu/device/mul_add_relu.hpp index 55fef3c35..69d8062aa 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/mul_add_relu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/mul_add_relu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_MUL_ADD_RELU_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_MUL_ADD_RELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/multinomial.hpp b/src/targets/gpu/include/migraphx/gpu/device/multinomial.hpp index fbd956a29..0e978fc70 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/multinomial.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/multinomial.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_MULTINOMIAL_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_MULTINOMIAL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/nonzero.hpp b/src/targets/gpu/include/migraphx/gpu/device/nonzero.hpp index 172dcde85..2e624939a 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/nonzero.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/nonzero.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_NONZERO_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_NONZERO_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/pad.hpp b/src/targets/gpu/include/migraphx/gpu/device/pad.hpp index ee714bb40..b00468d7c 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/pad.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/pad.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_PAD_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_PAD_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/pow.hpp b/src/targets/gpu/include/migraphx/gpu/device/pow.hpp index c8a018149..9abeffb6f 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/pow.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/pow.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_POW_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_POW_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/prefix_scan_sum.hpp b/src/targets/gpu/include/migraphx/gpu/device/prefix_scan_sum.hpp index a336e459e..0d63615f8 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/prefix_scan_sum.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/prefix_scan_sum.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_DEVICE_PREFIX_SCAN_SUM_HPP #define MIGRAPHX_GUARD_DEVICE_PREFIX_SCAN_SUM_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/prelu.hpp b/src/targets/gpu/include/migraphx/gpu/device/prelu.hpp index 671a5f16b..0280a7714 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/prelu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/prelu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_PRELU_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_PRELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/recip.hpp b/src/targets/gpu/include/migraphx/gpu/device/recip.hpp index b6b9ea961..4ffd5ad80 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/recip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/recip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_RECIP_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_RECIP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/reduce_max.hpp b/src/targets/gpu/include/migraphx/gpu/device/reduce_max.hpp index d2cdfcecb..9362d5c93 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/reduce_max.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/reduce_max.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_MAX_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_MAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/reduce_mean.hpp b/src/targets/gpu/include/migraphx/gpu/device/reduce_mean.hpp index ebbe66e22..fc3d541e7 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/reduce_mean.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/reduce_mean.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_MEAN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_MEAN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/reduce_min.hpp b/src/targets/gpu/include/migraphx/gpu/device/reduce_min.hpp index f6fce9f83..138ec2c33 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/reduce_min.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/reduce_min.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_MIN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_MIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/reduce_prod.hpp b/src/targets/gpu/include/migraphx/gpu/device/reduce_prod.hpp index cd40dd045..985bf38ad 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/reduce_prod.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/reduce_prod.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_PROD_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_PROD_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/reduce_sum.hpp b/src/targets/gpu/include/migraphx/gpu/device/reduce_sum.hpp index 4affe5899..eebd1e4e9 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/reduce_sum.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/reduce_sum.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_SUM_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_REDUCE_SUM_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/relu.hpp b/src/targets/gpu/include/migraphx/gpu/device/relu.hpp index 1d2b6b7cd..4ea80ffb5 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/relu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/relu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_RELU_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_RELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/reverse.hpp b/src/targets/gpu/include/migraphx/gpu/device/reverse.hpp index 4802d0494..3d2dbd4df 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/reverse.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/reverse.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_REVERSE_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_REVERSE_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/rnn_variable_seq_lens.hpp b/src/targets/gpu/include/migraphx/gpu/device/rnn_variable_seq_lens.hpp index 1259e3136..24781d545 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/rnn_variable_seq_lens.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/rnn_variable_seq_lens.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_RNN_VARIABLE_SEQ_LENS_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_RNN_VARIABLE_SEQ_LENS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/round.hpp b/src/targets/gpu/include/migraphx/gpu/device/round.hpp index e6327e274..c9b951cf9 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/round.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/round.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_ROUND_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_ROUND_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/rsqrt.hpp b/src/targets/gpu/include/migraphx/gpu/device/rsqrt.hpp index 8d50da932..fa30508cb 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/rsqrt.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/rsqrt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_RSQRT_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_RSQRT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/scatter.hpp b/src/targets/gpu/include/migraphx/gpu/device/scatter.hpp index 61373698f..2cd28a7c5 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/scatter.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/scatter.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SCATTER_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SCATTER_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/sigmoid.hpp b/src/targets/gpu/include/migraphx/gpu/device/sigmoid.hpp index a2fe9106d..13edba3d8 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/sigmoid.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/sigmoid.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SIGMOID_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SIGMOID_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/sign.hpp b/src/targets/gpu/include/migraphx/gpu/device/sign.hpp index 57f231a3c..4a565a762 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/sign.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/sign.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SIGN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SIGN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/sin.hpp b/src/targets/gpu/include/migraphx/gpu/device/sin.hpp index a55d75322..186d9e261 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/sin.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/sin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SIN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/sinh.hpp b/src/targets/gpu/include/migraphx/gpu/device/sinh.hpp index 90aadea41..09aefa7ce 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/sinh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/sinh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SINH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SINH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/softmax.hpp b/src/targets/gpu/include/migraphx/gpu/device/softmax.hpp index 1bc1d980b..91e07fe73 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/softmax.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/softmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SOFTMAX_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SOFTMAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/sqdiff.hpp b/src/targets/gpu/include/migraphx/gpu/device/sqdiff.hpp index f604236b5..249d8671e 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/sqdiff.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/sqdiff.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SQDIFF_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SQDIFF_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/sqrt.hpp b/src/targets/gpu/include/migraphx/gpu/device/sqrt.hpp index fd0a466a4..ed2197442 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/sqrt.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/sqrt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SQRT_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SQRT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/sub.hpp b/src/targets/gpu/include/migraphx/gpu/device/sub.hpp index c69efcb6b..cddd930f3 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/sub.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/sub.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_SUB_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_SUB_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/tan.hpp b/src/targets/gpu/include/migraphx/gpu/device/tan.hpp index 91a454dbe..fdce98dc1 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/tan.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/tan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_TAN_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_TAN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/tanh.hpp b/src/targets/gpu/include/migraphx/gpu/device/tanh.hpp index 8015cef10..c9ac32223 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/tanh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/tanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_TANH_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_TANH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/topk.hpp b/src/targets/gpu/include/migraphx/gpu/device/topk.hpp index eac7cad26..1229e2df9 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/topk.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/topk.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_TOPK_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_TOPK_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/unary_not.hpp b/src/targets/gpu/include/migraphx/gpu/device/unary_not.hpp index 1ed690285..baed2db95 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/unary_not.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/unary_not.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_UNARY_NOT_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_UNARY_NOT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device/where.hpp b/src/targets/gpu/include/migraphx/gpu/device/where.hpp index 3726380b8..a6bdd093f 100644 --- a/src/targets/gpu/include/migraphx/gpu/device/where.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device/where.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DEVICE_WHERE_HPP #define MIGRAPHX_GUARD_RTGLIB_DEVICE_WHERE_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/device_name.hpp b/src/targets/gpu/include/migraphx/gpu/device_name.hpp index 0d4a54388..67a97b6b3 100644 --- a/src/targets/gpu/include/migraphx/gpu/device_name.hpp +++ b/src/targets/gpu/include/migraphx/gpu/device_name.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_DEVICE_NAME_HPP #define MIGRAPHX_GUARD_GPU_DEVICE_NAME_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/div.hpp b/src/targets/gpu/include/migraphx/gpu/div.hpp index 75e88b1ef..af6ceb7d4 100644 --- a/src/targets/gpu/include/migraphx/gpu/div.hpp +++ b/src/targets/gpu/include/migraphx/gpu/div.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_DIV_HPP #define MIGRAPHX_GUARD_RTGLIB_DIV_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp b/src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp index be1a47d22..b941a1a2f 100644 --- a/src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp +++ b/src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ELIMINATE_WORKSPACE_HPP #define MIGRAPHX_GUARD_RTGLIB_ELIMINATE_WORKSPACE_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/elu.hpp b/src/targets/gpu/include/migraphx/gpu/elu.hpp index cc114d55c..94b743e56 100644 --- a/src/targets/gpu/include/migraphx/gpu/elu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/elu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ELU_HPP #define MIGRAPHX_GUARD_RTGLIB_ELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/equal.hpp b/src/targets/gpu/include/migraphx/gpu/equal.hpp index 90d7eb4f8..612eb52b0 100644 --- a/src/targets/gpu/include/migraphx/gpu/equal.hpp +++ b/src/targets/gpu/include/migraphx/gpu/equal.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_EQUAL_HPP #define MIGRAPHX_GUARD_RTGLIB_EQUAL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/erf.hpp b/src/targets/gpu/include/migraphx/gpu/erf.hpp index a44dad5a7..5bcb11060 100644 --- a/src/targets/gpu/include/migraphx/gpu/erf.hpp +++ b/src/targets/gpu/include/migraphx/gpu/erf.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ERF_HPP #define MIGRAPHX_GUARD_RTGLIB_ERF_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/exp.hpp b/src/targets/gpu/include/migraphx/gpu/exp.hpp index dd49fd1ea..b8009a70a 100644 --- a/src/targets/gpu/include/migraphx/gpu/exp.hpp +++ b/src/targets/gpu/include/migraphx/gpu/exp.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_EXP_HPP #define MIGRAPHX_GUARD_RTGLIB_EXP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/floor.hpp b/src/targets/gpu/include/migraphx/gpu/floor.hpp index 28dbb33b7..bd01533d2 100644 --- a/src/targets/gpu/include/migraphx/gpu/floor.hpp +++ b/src/targets/gpu/include/migraphx/gpu/floor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_FLOOR_HPP #define MIGRAPHX_GUARD_RTGLIB_FLOOR_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/fuse_ops.hpp b/src/targets/gpu/include/migraphx/gpu/fuse_ops.hpp index 4ea17a851..9a916cfbc 100644 --- a/src/targets/gpu/include/migraphx/gpu/fuse_ops.hpp +++ b/src/targets/gpu/include/migraphx/gpu/fuse_ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_FUSE_OPS_HPP #define MIGRAPHX_GUARD_RTGLIB_FUSE_OPS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/gather.hpp b/src/targets/gpu/include/migraphx/gpu/gather.hpp index 023bae008..5c6ec8dd3 100644 --- a/src/targets/gpu/include/migraphx/gpu/gather.hpp +++ b/src/targets/gpu/include/migraphx/gpu/gather.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GATHER_HPP #define MIGRAPHX_GUARD_RTGLIB_GATHER_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/gemm.hpp b/src/targets/gpu/include/migraphx/gpu/gemm.hpp index 5ce3b20f7..86f5c23f1 100644 --- a/src/targets/gpu/include/migraphx/gpu/gemm.hpp +++ b/src/targets/gpu/include/migraphx/gpu/gemm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GPU_GEMM_HPP #define MIGRAPHX_GUARD_RTGLIB_GPU_GEMM_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/gemm_impl.hpp b/src/targets/gpu/include/migraphx/gpu/gemm_impl.hpp index bd314224e..198fddf98 100644 --- a/src/targets/gpu/include/migraphx/gpu/gemm_impl.hpp +++ b/src/targets/gpu/include/migraphx/gpu/gemm_impl.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GEMM_IMPL_HPP #define MIGRAPHX_GUARD_RTGLIB_GEMM_IMPL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/greater.hpp b/src/targets/gpu/include/migraphx/gpu/greater.hpp index c88b5cf72..fdc22ae61 100644 --- a/src/targets/gpu/include/migraphx/gpu/greater.hpp +++ b/src/targets/gpu/include/migraphx/gpu/greater.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GREATER_HPP #define MIGRAPHX_GUARD_RTGLIB_GREATER_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/hip.hpp b/src/targets/gpu/include/migraphx/gpu/hip.hpp index d15037303..4a83632ee 100644 --- a/src/targets/gpu/include/migraphx/gpu/hip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/hip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_HIP_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_HIP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/int8_conv_pack.hpp b/src/targets/gpu/include/migraphx/gpu/int8_conv_pack.hpp index 48fb49030..3b5981d9f 100644 --- a/src/targets/gpu/include/migraphx/gpu/int8_conv_pack.hpp +++ b/src/targets/gpu/include/migraphx/gpu/int8_conv_pack.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_INT8_CONV_PACK_HPP #define MIGRAPHX_GUARD_RTGLIB_INT8_CONV_PACK_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/int8_gemm_pack.hpp b/src/targets/gpu/include/migraphx/gpu/int8_gemm_pack.hpp index c2ba8cebf..33315ba4e 100644 --- a/src/targets/gpu/include/migraphx/gpu/int8_gemm_pack.hpp +++ b/src/targets/gpu/include/migraphx/gpu/int8_gemm_pack.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_INT8_GEMM_PACK_HPP #define MIGRAPHX_GUARD_RTGLIB_INT8_GEMM_PACK_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/kernel.hpp b/src/targets/gpu/include/migraphx/gpu/kernel.hpp index a7298751e..b9b786f58 100644 --- a/src/targets/gpu/include/migraphx/gpu/kernel.hpp +++ b/src/targets/gpu/include/migraphx/gpu/kernel.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_KERNEL_HPP #define MIGRAPHX_GUARD_RTGLIB_KERNEL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/leaky_relu.hpp b/src/targets/gpu/include/migraphx/gpu/leaky_relu.hpp index 3e9d4838f..d22a91127 100644 --- a/src/targets/gpu/include/migraphx/gpu/leaky_relu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/leaky_relu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LEAKY_RELU_HPP #define MIGRAPHX_GUARD_RTGLIB_LEAKY_RELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/less.hpp b/src/targets/gpu/include/migraphx/gpu/less.hpp index cab4b2fc2..67aa792f3 100644 --- a/src/targets/gpu/include/migraphx/gpu/less.hpp +++ b/src/targets/gpu/include/migraphx/gpu/less.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LESS_HPP #define MIGRAPHX_GUARD_RTGLIB_LESS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/log.hpp b/src/targets/gpu/include/migraphx/gpu/log.hpp index 2713fec68..427decc1e 100644 --- a/src/targets/gpu/include/migraphx/gpu/log.hpp +++ b/src/targets/gpu/include/migraphx/gpu/log.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LOG_HPP #define MIGRAPHX_GUARD_RTGLIB_LOG_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/logical_and.hpp b/src/targets/gpu/include/migraphx/gpu/logical_and.hpp index 1e603f2f1..05196f50b 100644 --- a/src/targets/gpu/include/migraphx/gpu/logical_and.hpp +++ b/src/targets/gpu/include/migraphx/gpu/logical_and.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LOGICLA_AND_HPP #define MIGRAPHX_GUARD_RTGLIB_LOGICLA_AND_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/logical_or.hpp b/src/targets/gpu/include/migraphx/gpu/logical_or.hpp index b51a68177..79e2743d5 100644 --- a/src/targets/gpu/include/migraphx/gpu/logical_or.hpp +++ b/src/targets/gpu/include/migraphx/gpu/logical_or.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LOGICAL_OR_HPP #define MIGRAPHX_GUARD_RTGLIB_LOGICAL_OR_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/logical_xor.hpp b/src/targets/gpu/include/migraphx/gpu/logical_xor.hpp index 56290c623..850d67ef5 100644 --- a/src/targets/gpu/include/migraphx/gpu/logical_xor.hpp +++ b/src/targets/gpu/include/migraphx/gpu/logical_xor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LOGICAL_XOR_HPP #define MIGRAPHX_GUARD_RTGLIB_LOGICAL_XOR_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/logsoftmax.hpp b/src/targets/gpu/include/migraphx/gpu/logsoftmax.hpp index 7c3582662..7705819ac 100644 --- a/src/targets/gpu/include/migraphx/gpu/logsoftmax.hpp +++ b/src/targets/gpu/include/migraphx/gpu/logsoftmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LOGSOFTMAX_HPP #define MIGRAPHX_GUARD_RTGLIB_LOGSOFTMAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/loop.hpp b/src/targets/gpu/include/migraphx/gpu/loop.hpp index 6f31daf3f..792c84b74 100644 --- a/src/targets/gpu/include/migraphx/gpu/loop.hpp +++ b/src/targets/gpu/include/migraphx/gpu/loop.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LOOP_HPP #define MIGRAPHX_GUARD_RTGLIB_LOOP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/lowering.hpp b/src/targets/gpu/include/migraphx/gpu/lowering.hpp index 04cd19af8..3436d0194 100644 --- a/src/targets/gpu/include/migraphx/gpu/lowering.hpp +++ b/src/targets/gpu/include/migraphx/gpu/lowering.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MIOPEN_LOWERING_HPP #define MIGRAPHX_GUARD_RTGLIB_MIOPEN_LOWERING_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/lrn.hpp b/src/targets/gpu/include/migraphx/gpu/lrn.hpp index db8111c39..1a1d8e57a 100644 --- a/src/targets/gpu/include/migraphx/gpu/lrn.hpp +++ b/src/targets/gpu/include/migraphx/gpu/lrn.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_LRN_HPP #define MIGRAPHX_GUARD_RTGLIB_LRN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/max.hpp b/src/targets/gpu/include/migraphx/gpu/max.hpp index d207dbbb3..5cb5929ba 100644 --- a/src/targets/gpu/include/migraphx/gpu/max.hpp +++ b/src/targets/gpu/include/migraphx/gpu/max.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MAX_HPP #define MIGRAPHX_GUARD_RTGLIB_MAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/min.hpp b/src/targets/gpu/include/migraphx/gpu/min.hpp index 81ac76535..a492b3078 100644 --- a/src/targets/gpu/include/migraphx/gpu/min.hpp +++ b/src/targets/gpu/include/migraphx/gpu/min.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MIN_HPP #define MIGRAPHX_GUARD_RTGLIB_MIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/miopen.hpp b/src/targets/gpu/include/migraphx/gpu/miopen.hpp index e505ca5b3..7d5bb8ac3 100644 --- a/src/targets/gpu/include/migraphx/gpu/miopen.hpp +++ b/src/targets/gpu/include/migraphx/gpu/miopen.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_MIOPEN_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_MIOPEN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/mlir_conv.hpp b/src/targets/gpu/include/migraphx/gpu/mlir_conv.hpp index 78543f1de..65ff2620f 100644 --- a/src/targets/gpu/include/migraphx/gpu/mlir_conv.hpp +++ b/src/targets/gpu/include/migraphx/gpu/mlir_conv.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MIOPEN_MLIR_CONV_HPP #define MIGRAPHX_GUARD_RTGLIB_MIOPEN_MLIR_CONV_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/mul.hpp b/src/targets/gpu/include/migraphx/gpu/mul.hpp index f5f29b08a..174653df5 100644 --- a/src/targets/gpu/include/migraphx/gpu/mul.hpp +++ b/src/targets/gpu/include/migraphx/gpu/mul.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MUL_HPP #define MIGRAPHX_GUARD_RTGLIB_MUL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/multinomial.hpp b/src/targets/gpu/include/migraphx/gpu/multinomial.hpp index ee23603cc..c44d48082 100644 --- a/src/targets/gpu/include/migraphx/gpu/multinomial.hpp +++ b/src/targets/gpu/include/migraphx/gpu/multinomial.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MULTINOMIAL_HPP #define MIGRAPHX_GUARD_RTGLIB_MULTINOMIAL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/name.hpp b/src/targets/gpu/include/migraphx/gpu/name.hpp index 7701fe46e..7bea299f5 100644 --- a/src/targets/gpu/include/migraphx/gpu/name.hpp +++ b/src/targets/gpu/include/migraphx/gpu/name.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_OP_NAME_HPP #define MIGRAPHX_GUARD_RTGLIB_OP_NAME_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/nonzero.hpp b/src/targets/gpu/include/migraphx/gpu/nonzero.hpp index aee57f6f0..cfc7e78db 100644 --- a/src/targets/gpu/include/migraphx/gpu/nonzero.hpp +++ b/src/targets/gpu/include/migraphx/gpu/nonzero.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_NONZERO_HPP #define MIGRAPHX_GUARD_RTGLIB_NONZERO_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/oper.hpp b/src/targets/gpu/include/migraphx/gpu/oper.hpp index f1584d981..88d55b09b 100644 --- a/src/targets/gpu/include/migraphx/gpu/oper.hpp +++ b/src/targets/gpu/include/migraphx/gpu/oper.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_UNARY_HPP #define MIGRAPHX_GUARD_RTGLIB_UNARY_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/pack_args.hpp b/src/targets/gpu/include/migraphx/gpu/pack_args.hpp index e3f4a24b9..fb02e5757 100644 --- a/src/targets/gpu/include/migraphx/gpu/pack_args.hpp +++ b/src/targets/gpu/include/migraphx/gpu/pack_args.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PACK_ARGS_HPP #define MIGRAPHX_GUARD_RTGLIB_PACK_ARGS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/pack_int8_args.hpp b/src/targets/gpu/include/migraphx/gpu/pack_int8_args.hpp index 68e611bc7..affd038cb 100644 --- a/src/targets/gpu/include/migraphx/gpu/pack_int8_args.hpp +++ b/src/targets/gpu/include/migraphx/gpu/pack_int8_args.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PACK_INT8_ARGS_HPP #define MIGRAPHX_GUARD_RTGLIB_PACK_INT8_ARGS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/pad.hpp b/src/targets/gpu/include/migraphx/gpu/pad.hpp index b5b3362cc..9f31f132c 100644 --- a/src/targets/gpu/include/migraphx/gpu/pad.hpp +++ b/src/targets/gpu/include/migraphx/gpu/pad.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PAD_HPP #define MIGRAPHX_GUARD_RTGLIB_PAD_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/pooling.hpp b/src/targets/gpu/include/migraphx/gpu/pooling.hpp index 8d409f7ef..f694d0d45 100644 --- a/src/targets/gpu/include/migraphx/gpu/pooling.hpp +++ b/src/targets/gpu/include/migraphx/gpu/pooling.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_POOLING_HPP #define MIGRAPHX_GUARD_RTGLIB_POOLING_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/pow.hpp b/src/targets/gpu/include/migraphx/gpu/pow.hpp index 3e90a31b0..0ee4b1275 100644 --- a/src/targets/gpu/include/migraphx/gpu/pow.hpp +++ b/src/targets/gpu/include/migraphx/gpu/pow.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_POW_HPP #define MIGRAPHX_GUARD_RTGLIB_POW_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/prefix_scan_sum.hpp b/src/targets/gpu/include/migraphx/gpu/prefix_scan_sum.hpp index dbde086b0..a881ba407 100644 --- a/src/targets/gpu/include/migraphx/gpu/prefix_scan_sum.hpp +++ b/src/targets/gpu/include/migraphx/gpu/prefix_scan_sum.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_PREFIX_SCAN_SUM_HPP #define MIGRAPHX_GUARD_GPU_PREFIX_SCAN_SUM_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/prefuse_ops.hpp b/src/targets/gpu/include/migraphx/gpu/prefuse_ops.hpp index a24e9e095..e511de422 100644 --- a/src/targets/gpu/include/migraphx/gpu/prefuse_ops.hpp +++ b/src/targets/gpu/include/migraphx/gpu/prefuse_ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_GPU_PREFUSE_OPS_HPP #define MIGRAPHX_GUARD_GPU_PREFUSE_OPS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/prelu.hpp b/src/targets/gpu/include/migraphx/gpu/prelu.hpp index 9fbf75ad2..a6c4f032b 100644 --- a/src/targets/gpu/include/migraphx/gpu/prelu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/prelu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_PRELU_HPP #define MIGRAPHX_GUARD_RTGLIB_PRELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp b/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp index fb2dd542c..782f292d6 100644 --- a/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp +++ b/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_QUANT_CONVOLUTION_HPP #define MIGRAPHX_GUARD_RTGLIB_QUANT_CONVOLUTION_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/recip.hpp b/src/targets/gpu/include/migraphx/gpu/recip.hpp index 2be4882fa..e2fd850d9 100644 --- a/src/targets/gpu/include/migraphx/gpu/recip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/recip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_RECIP_HPP #define MIGRAPHX_GUARD_RTGLIB_RECIP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/reduce_max.hpp b/src/targets/gpu/include/migraphx/gpu/reduce_max.hpp index 41d493ed8..8274e93b8 100644 --- a/src/targets/gpu/include/migraphx/gpu/reduce_max.hpp +++ b/src/targets/gpu/include/migraphx/gpu/reduce_max.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REDUCE_MAX_HPP #define MIGRAPHX_GUARD_RTGLIB_REDUCE_MAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/reduce_mean.hpp b/src/targets/gpu/include/migraphx/gpu/reduce_mean.hpp index 9ecfd614a..063f6cebf 100644 --- a/src/targets/gpu/include/migraphx/gpu/reduce_mean.hpp +++ b/src/targets/gpu/include/migraphx/gpu/reduce_mean.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REDUCE_MEAN_HPP #define MIGRAPHX_GUARD_RTGLIB_REDUCE_MEAN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/reduce_min.hpp b/src/targets/gpu/include/migraphx/gpu/reduce_min.hpp index 028f29cd1..8092ebcbf 100644 --- a/src/targets/gpu/include/migraphx/gpu/reduce_min.hpp +++ b/src/targets/gpu/include/migraphx/gpu/reduce_min.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REDUCE_MIN_HPP #define MIGRAPHX_GUARD_RTGLIB_REDUCE_MIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/reduce_op.hpp b/src/targets/gpu/include/migraphx/gpu/reduce_op.hpp index e212a770e..86f0fa6ea 100644 --- a/src/targets/gpu/include/migraphx/gpu/reduce_op.hpp +++ b/src/targets/gpu/include/migraphx/gpu/reduce_op.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REDUCE_OP_HPP #define MIGRAPHX_GUARD_RTGLIB_REDUCE_OP_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/reduce_prod.hpp b/src/targets/gpu/include/migraphx/gpu/reduce_prod.hpp index 448e13db3..9b790a156 100644 --- a/src/targets/gpu/include/migraphx/gpu/reduce_prod.hpp +++ b/src/targets/gpu/include/migraphx/gpu/reduce_prod.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REDUCE_PROD_HPP #define MIGRAPHX_GUARD_RTGLIB_REDUCE_PROD_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/reduce_sum.hpp b/src/targets/gpu/include/migraphx/gpu/reduce_sum.hpp index 90ed7cb3e..34f421abe 100644 --- a/src/targets/gpu/include/migraphx/gpu/reduce_sum.hpp +++ b/src/targets/gpu/include/migraphx/gpu/reduce_sum.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REDUCE_SUM_HPP #define MIGRAPHX_GUARD_RTGLIB_REDUCE_SUM_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/relu.hpp b/src/targets/gpu/include/migraphx/gpu/relu.hpp index 8ca1b8bbf..b66ac760c 100644 --- a/src/targets/gpu/include/migraphx/gpu/relu.hpp +++ b/src/targets/gpu/include/migraphx/gpu/relu.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_RELU_HPP #define MIGRAPHX_GUARD_RTGLIB_RELU_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/reverse.hpp b/src/targets/gpu/include/migraphx/gpu/reverse.hpp index 5c0cdee4d..e3fccaa29 100644 --- a/src/targets/gpu/include/migraphx/gpu/reverse.hpp +++ b/src/targets/gpu/include/migraphx/gpu/reverse.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_REVERSE_HPP #define MIGRAPHX_GUARD_RTGLIB_REVERSE_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/rnn_variable_seq_lens.hpp b/src/targets/gpu/include/migraphx/gpu/rnn_variable_seq_lens.hpp index ce8115fc5..7d811192d 100644 --- a/src/targets/gpu/include/migraphx/gpu/rnn_variable_seq_lens.hpp +++ b/src/targets/gpu/include/migraphx/gpu/rnn_variable_seq_lens.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_RNN_VARIABLE_SEQ_LENS_HPP #define MIGRAPHX_GUARD_RTGLIB_RNN_VARIABLE_SEQ_LENS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/rocblas.hpp b/src/targets/gpu/include/migraphx/gpu/rocblas.hpp index d4ad55acf..1f3558259 100644 --- a/src/targets/gpu/include/migraphx/gpu/rocblas.hpp +++ b/src/targets/gpu/include/migraphx/gpu/rocblas.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_ROCBLAS_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_ROCBLAS_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/round.hpp b/src/targets/gpu/include/migraphx/gpu/round.hpp index 443b3442d..4feb681d5 100644 --- a/src/targets/gpu/include/migraphx/gpu/round.hpp +++ b/src/targets/gpu/include/migraphx/gpu/round.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_ROUND_HPP #define MIGRAPHX_GUARD_RTGLIB_ROUND_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/rsqrt.hpp b/src/targets/gpu/include/migraphx/gpu/rsqrt.hpp index a7baefc4f..4367fbc41 100644 --- a/src/targets/gpu/include/migraphx/gpu/rsqrt.hpp +++ b/src/targets/gpu/include/migraphx/gpu/rsqrt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_RSQRT_HPP #define MIGRAPHX_GUARD_RTGLIB_RSQRT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/scatter.hpp b/src/targets/gpu/include/migraphx/gpu/scatter.hpp index 379d4ebfd..766b1654f 100644 --- a/src/targets/gpu/include/migraphx/gpu/scatter.hpp +++ b/src/targets/gpu/include/migraphx/gpu/scatter.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SCATTER_HPP #define MIGRAPHX_GUARD_RTGLIB_SCATTER_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/schedule_model.hpp b/src/targets/gpu/include/migraphx/gpu/schedule_model.hpp index 0540e6c91..d9c692cb7 100644 --- a/src/targets/gpu/include/migraphx/gpu/schedule_model.hpp +++ b/src/targets/gpu/include/migraphx/gpu/schedule_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GPU_SCHEDULE_MODEL_HPP #define MIGRAPHX_GUARD_RTGLIB_GPU_SCHEDULE_MODEL_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sigmoid.hpp b/src/targets/gpu/include/migraphx/gpu/sigmoid.hpp index 721d93899..f008e88de 100644 --- a/src/targets/gpu/include/migraphx/gpu/sigmoid.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sigmoid.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SIGMOID_HPP #define MIGRAPHX_GUARD_RTGLIB_SIGMOID_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sign.hpp b/src/targets/gpu/include/migraphx/gpu/sign.hpp index 0b4b561d0..1b4b6ae89 100644 --- a/src/targets/gpu/include/migraphx/gpu/sign.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sign.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SIGN_HPP #define MIGRAPHX_GUARD_RTGLIB_SIGN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sin.hpp b/src/targets/gpu/include/migraphx/gpu/sin.hpp index 63243b883..e27ff8305 100644 --- a/src/targets/gpu/include/migraphx/gpu/sin.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sin.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SIN_HPP #define MIGRAPHX_GUARD_RTGLIB_SIN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sinh.hpp b/src/targets/gpu/include/migraphx/gpu/sinh.hpp index 71633b564..338bfb046 100644 --- a/src/targets/gpu/include/migraphx/gpu/sinh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sinh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SINH_HPP #define MIGRAPHX_GUARD_RTGLIB_SINH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/softmax.hpp b/src/targets/gpu/include/migraphx/gpu/softmax.hpp index 874017b81..5b15c34cd 100644 --- a/src/targets/gpu/include/migraphx/gpu/softmax.hpp +++ b/src/targets/gpu/include/migraphx/gpu/softmax.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SOFTMAX_HPP #define MIGRAPHX_GUARD_RTGLIB_SOFTMAX_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sqdiff.hpp b/src/targets/gpu/include/migraphx/gpu/sqdiff.hpp index 61fed39a2..1d0e818d7 100644 --- a/src/targets/gpu/include/migraphx/gpu/sqdiff.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sqdiff.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SQDIFF_HPP #define MIGRAPHX_GUARD_RTGLIB_SQDIFF_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sqrt.hpp b/src/targets/gpu/include/migraphx/gpu/sqrt.hpp index ecc48dd6f..a6eaa78de 100644 --- a/src/targets/gpu/include/migraphx/gpu/sqrt.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sqrt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SQRT_HPP #define MIGRAPHX_GUARD_RTGLIB_SQRT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sub.hpp b/src/targets/gpu/include/migraphx/gpu/sub.hpp index 592ba0fde..03a5bf750 100644 --- a/src/targets/gpu/include/migraphx/gpu/sub.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sub.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_SUB_HPP #define MIGRAPHX_GUARD_RTGLIB_SUB_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/sync_device.hpp b/src/targets/gpu/include/migraphx/gpu/sync_device.hpp index 54ead79d1..b2734b653 100644 --- a/src/targets/gpu/include/migraphx/gpu/sync_device.hpp +++ b/src/targets/gpu/include/migraphx/gpu/sync_device.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GPU_SYNC_DEVICE_HPP #define MIGRAPHX_GUARD_RTGLIB_GPU_SYNC_DEVICE_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/tan.hpp b/src/targets/gpu/include/migraphx/gpu/tan.hpp index 4d793742e..057e4bd37 100644 --- a/src/targets/gpu/include/migraphx/gpu/tan.hpp +++ b/src/targets/gpu/include/migraphx/gpu/tan.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_TAN_HPP #define MIGRAPHX_GUARD_RTGLIB_TAN_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/tanh.hpp b/src/targets/gpu/include/migraphx/gpu/tanh.hpp index 39c8a9062..1822e1764 100644 --- a/src/targets/gpu/include/migraphx/gpu/tanh.hpp +++ b/src/targets/gpu/include/migraphx/gpu/tanh.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_TANH_HPP #define MIGRAPHX_GUARD_RTGLIB_TANH_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/target.hpp b/src/targets/gpu/include/migraphx/gpu/target.hpp index a54c79a53..55265ac27 100644 --- a/src/targets/gpu/include/migraphx/gpu/target.hpp +++ b/src/targets/gpu/include/migraphx/gpu/target.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_MIOPEN_TARGET_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_MIOPEN_TARGET_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/topk.hpp b/src/targets/gpu/include/migraphx/gpu/topk.hpp index 4782ec8b8..11364d623 100644 --- a/src/targets/gpu/include/migraphx/gpu/topk.hpp +++ b/src/targets/gpu/include/migraphx/gpu/topk.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_TOPK_HPP #define MIGRAPHX_GUARD_RTGLIB_TOPK_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/unary_not.hpp b/src/targets/gpu/include/migraphx/gpu/unary_not.hpp old mode 100755 new mode 100644 index ca31385d9..65efeeca5 --- a/src/targets/gpu/include/migraphx/gpu/unary_not.hpp +++ b/src/targets/gpu/include/migraphx/gpu/unary_not.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_UNARY_NOT_HPP #define MIGRAPHX_GUARD_RTGLIB_UNARY_NOT_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/where.hpp b/src/targets/gpu/include/migraphx/gpu/where.hpp index 1847aa34b..d441e95b7 100644 --- a/src/targets/gpu/include/migraphx/gpu/where.hpp +++ b/src/targets/gpu/include/migraphx/gpu/where.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_WHERE_HPP #define MIGRAPHX_GUARD_RTGLIB_WHERE_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/write_literals.hpp b/src/targets/gpu/include/migraphx/gpu/write_literals.hpp index 0c7444e49..c77467031 100644 --- a/src/targets/gpu/include/migraphx/gpu/write_literals.hpp +++ b/src/targets/gpu/include/migraphx/gpu/write_literals.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_MIOPEN_WRITE_LITERALS_HPP #define MIGRAPHX_GUARD_RTGLIB_MIOPEN_WRITE_LITERALS_HPP diff --git a/src/targets/gpu/int8_conv_pack.cpp b/src/targets/gpu/int8_conv_pack.cpp old mode 100755 new mode 100644 index 4c54ab0c7..04abf6a56 --- a/src/targets/gpu/int8_conv_pack.cpp +++ b/src/targets/gpu/int8_conv_pack.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/int8_gemm_pack.cpp b/src/targets/gpu/int8_gemm_pack.cpp index 9df689566..72d304e0d 100644 --- a/src/targets/gpu/int8_gemm_pack.cpp +++ b/src/targets/gpu/int8_gemm_pack.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/jit/gathernd.cpp b/src/targets/gpu/jit/gathernd.cpp index 68ceeed13..a9d5374f5 100644 --- a/src/targets/gpu/jit/gathernd.cpp +++ b/src/targets/gpu/jit/gathernd.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/jit/pointwise.cpp b/src/targets/gpu/jit/pointwise.cpp index ffe4453cc..d17bdd043 100644 --- a/src/targets/gpu/jit/pointwise.cpp +++ b/src/targets/gpu/jit/pointwise.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/jit/reduce.cpp b/src/targets/gpu/jit/reduce.cpp index 3c628500f..7cce38310 100644 --- a/src/targets/gpu/jit/reduce.cpp +++ b/src/targets/gpu/jit/reduce.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/jit/roialign.cpp b/src/targets/gpu/jit/roialign.cpp index db60465b7..19d35d1bd 100644 --- a/src/targets/gpu/jit/roialign.cpp +++ b/src/targets/gpu/jit/roialign.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/jit/scatternd.cpp b/src/targets/gpu/jit/scatternd.cpp index fc34656ca..188572cc2 100644 --- a/src/targets/gpu/jit/scatternd.cpp +++ b/src/targets/gpu/jit/scatternd.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/kernel.cpp b/src/targets/gpu/kernel.cpp old mode 100755 new mode 100644 index 582bd19b9..f3c6f0c36 --- a/src/targets/gpu/kernel.cpp +++ b/src/targets/gpu/kernel.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp index 2b702c056..bc4e1145d 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_ALGORITHM_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_ALGORITHM_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/args.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/args.hpp old mode 100755 new mode 100644 index 7586425a1..2706e14a4 --- a/src/targets/gpu/kernels/include/migraphx/kernels/args.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/args.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_ARGS_HPP #define MIGRAPHX_GUARD_KERNELS_ARGS_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp index 398619887..584709f23 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_ARRAY_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_ARRAY_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/debug.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/debug.hpp index 3efc070ff..620bcfeb7 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/debug.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/debug.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_DEBUG_HPP #define MIGRAPHX_GUARD_KERNELS_DEBUG_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/dfor.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/dfor.hpp index 58c6121bc..d8255d4b9 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/dfor.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/dfor.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_DFOR_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_DFOR_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/dpp.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/dpp.hpp index d3d9ea7a2..66f1522cb 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/dpp.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/dpp.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_DPP_HPP #define MIGRAPHX_GUARD_KERNELS_DPP_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp index 5722ab5c8..35e10eff6 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_FUNCTIONAL_HPP #define MIGRAPHX_GUARD_KERNELS_FUNCTIONAL_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/gathernd.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/gathernd.hpp index 22d49ac38..844371991 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/gathernd.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/gathernd.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_GATHERND_HPP #define MIGRAPHX_GUARD_KERNELS_GATHERND_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/generic_constant.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/generic_constant.hpp index b9b226c93..a1c2c9f82 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/generic_constant.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/generic_constant.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_GENERIC_CONSTANT_HPP #define MIGRAPHX_GUARD_KERNELS_GENERIC_CONSTANT_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/hip.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/hip.hpp index 2017faeb0..e9c0d14dc 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/hip.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/hip.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_HIP_HPP #define MIGRAPHX_GUARD_KERNELS_HIP_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/index.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/index.hpp index cef0c35ef..bec306477 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/index.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/index.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_INDEX_HPP #define MIGRAPHX_GUARD_KERNELS_INDEX_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/integral_constant.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/integral_constant.hpp index e0e32ca44..83804d7b7 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/integral_constant.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/integral_constant.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_INTEGRAL_CONSTANT_HPP #define MIGRAPHX_GUARD_KERNELS_INTEGRAL_CONSTANT_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/iota_iterator.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/iota_iterator.hpp index 9f7dd46a9..e51cfd56b 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/iota_iterator.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/iota_iterator.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_IOTA_ITERATOR_HPP #define MIGRAPHX_GUARD_KERNELS_IOTA_ITERATOR_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/math.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/math.hpp index 3c1562baf..1d33e5d1f 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/math.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/math.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_MATH_HPP #define MIGRAPHX_GUARD_KERNELS_MATH_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/ops.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/ops.hpp index f8f382c82..eac9fc510 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/ops.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_OPS_HPP #define MIGRAPHX_GUARD_KERNELS_OPS_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp index 60a3ec23f..4e867d82a 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_POINTWISE_HPP #define MIGRAPHX_GUARD_KERNELS_POINTWISE_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/preload.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/preload.hpp index 14ab71d47..8c7301a67 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/preload.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/preload.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_PRELOAD_HPP #define MIGRAPHX_GUARD_KERNELS_PRELOAD_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/print.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/print.hpp index c4a226880..fbbf360a2 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/print.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/print.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_PRINT_HPP #define MIGRAPHX_GUARD_KERNELS_PRINT_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp index d5684624e..5110e5c7a 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_REDUCE_HPP #define MIGRAPHX_GUARD_KERNELS_REDUCE_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/roialign.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/roialign.hpp index 79533d1b1..5d00a570a 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/roialign.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/roialign.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_ROIALIGN_HPP #define MIGRAPHX_GUARD_KERNELS_ROIALIGN_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/scatternd.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/scatternd.hpp index c89c382ec..15a96c2fd 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/scatternd.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/scatternd.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_SCATTERND_HPP #define MIGRAPHX_GUARD_KERNELS_SCATTERND_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp index 50cff7c6e..ceda21bfd 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_SHAPE_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_SHAPE_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/tensor_view.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/tensor_view.hpp index fb7901e91..56a8b6f7c 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/tensor_view.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/tensor_view.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_TENSOR_VIEW_HPP #define MIGRAPHX_GUARD_KERNELS_TENSOR_VIEW_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/type_traits.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/type_traits.hpp index 4d3d4bad5..15c07203f 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/type_traits.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/type_traits.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_TYPE_TRAITS_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_TYPE_TRAITS_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/types.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/types.hpp index bc7da139b..8c0b545e3 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/types.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/types.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_TYPES_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_KERNELS_TYPES_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp index c7837c536..8156e3507 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_VEC_HPP #define MIGRAPHX_GUARD_KERNELS_VEC_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/vectorize.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/vectorize.hpp index 54152f28e..b456b5c6e 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/vectorize.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/vectorize.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_VECTORIZE_HPP #define MIGRAPHX_GUARD_KERNELS_VECTORIZE_HPP diff --git a/src/targets/gpu/leaky_relu.cpp b/src/targets/gpu/leaky_relu.cpp index b335cf761..40c6afa87 100644 --- a/src/targets/gpu/leaky_relu.cpp +++ b/src/targets/gpu/leaky_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/logsoftmax.cpp b/src/targets/gpu/logsoftmax.cpp index 2b5041fd1..63fc5eb5e 100644 --- a/src/targets/gpu/logsoftmax.cpp +++ b/src/targets/gpu/logsoftmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/loop.cpp b/src/targets/gpu/loop.cpp index 1bc85bdbd..9e61d7306 100644 --- a/src/targets/gpu/loop.cpp +++ b/src/targets/gpu/loop.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/lowering.cpp b/src/targets/gpu/lowering.cpp index 2e9d1f781..df1e3a66d 100644 --- a/src/targets/gpu/lowering.cpp +++ b/src/targets/gpu/lowering.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/lrn.cpp b/src/targets/gpu/lrn.cpp index c5505a5ce..f7d0e81ac 100644 --- a/src/targets/gpu/lrn.cpp +++ b/src/targets/gpu/lrn.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/mlir_conv.cpp b/src/targets/gpu/mlir_conv.cpp index 618397678..c49887a7e 100644 --- a/src/targets/gpu/mlir_conv.cpp +++ b/src/targets/gpu/mlir_conv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/multinomial.cpp b/src/targets/gpu/multinomial.cpp index 2734201fa..51e5c48b4 100644 --- a/src/targets/gpu/multinomial.cpp +++ b/src/targets/gpu/multinomial.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/nonzero.cpp b/src/targets/gpu/nonzero.cpp index e4ca0f51e..0ff281f88 100644 --- a/src/targets/gpu/nonzero.cpp +++ b/src/targets/gpu/nonzero.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/pack_args.cpp b/src/targets/gpu/pack_args.cpp index 68e686022..2c3f41cf6 100644 --- a/src/targets/gpu/pack_args.cpp +++ b/src/targets/gpu/pack_args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/pack_int8_args.cpp b/src/targets/gpu/pack_int8_args.cpp index 610963ea7..672b90679 100644 --- a/src/targets/gpu/pack_int8_args.cpp +++ b/src/targets/gpu/pack_int8_args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/pad.cpp b/src/targets/gpu/pad.cpp index bb4892b09..5fb06af73 100644 --- a/src/targets/gpu/pad.cpp +++ b/src/targets/gpu/pad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/pooling.cpp b/src/targets/gpu/pooling.cpp index b643b01bd..215d1710d 100644 --- a/src/targets/gpu/pooling.cpp +++ b/src/targets/gpu/pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/gpu/prefuse_ops.cpp b/src/targets/gpu/prefuse_ops.cpp index e3962787a..d8f4b26a0 100644 --- a/src/targets/gpu/prefuse_ops.cpp +++ b/src/targets/gpu/prefuse_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/quant_convolution.cpp b/src/targets/gpu/quant_convolution.cpp old mode 100755 new mode 100644 index 82787e9ac..4abeae51f --- a/src/targets/gpu/quant_convolution.cpp +++ b/src/targets/gpu/quant_convolution.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/reverse.cpp b/src/targets/gpu/reverse.cpp old mode 100755 new mode 100644 index ad3dcb304..ea70e3fbb --- a/src/targets/gpu/reverse.cpp +++ b/src/targets/gpu/reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/rnn_variable_seq_lens.cpp b/src/targets/gpu/rnn_variable_seq_lens.cpp index 76deabff8..e251716f9 100644 --- a/src/targets/gpu/rnn_variable_seq_lens.cpp +++ b/src/targets/gpu/rnn_variable_seq_lens.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/rocblas.cpp b/src/targets/gpu/rocblas.cpp index d1958b00b..eeeba3287 100644 --- a/src/targets/gpu/rocblas.cpp +++ b/src/targets/gpu/rocblas.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include namespace migraphx { diff --git a/src/targets/gpu/scatter.cpp b/src/targets/gpu/scatter.cpp index fc85eea36..caf1f7948 100644 --- a/src/targets/gpu/scatter.cpp +++ b/src/targets/gpu/scatter.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/schedule_model.cpp b/src/targets/gpu/schedule_model.cpp index 7fe0a58c8..aa59a693f 100644 --- a/src/targets/gpu/schedule_model.cpp +++ b/src/targets/gpu/schedule_model.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/softmax.cpp b/src/targets/gpu/softmax.cpp index ac1f28fd0..bc43ccd3b 100644 --- a/src/targets/gpu/softmax.cpp +++ b/src/targets/gpu/softmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/sync_device.cpp b/src/targets/gpu/sync_device.cpp index c1dd4e6af..4e8a176eb 100644 --- a/src/targets/gpu/sync_device.cpp +++ b/src/targets/gpu/sync_device.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/target.cpp b/src/targets/gpu/target.cpp index 1d3a6b549..e82da8226 100644 --- a/src/targets/gpu/target.cpp +++ b/src/targets/gpu/target.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/topk.cpp b/src/targets/gpu/topk.cpp index 4d9eaaac3..2e799c650 100644 --- a/src/targets/gpu/topk.cpp +++ b/src/targets/gpu/topk.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/gpu/write_literals.cpp b/src/targets/gpu/write_literals.cpp index 39a547510..cbc776737 100644 --- a/src/targets/gpu/write_literals.cpp +++ b/src/targets/gpu/write_literals.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/ref/CMakeLists.txt b/src/targets/ref/CMakeLists.txt index 8b59c3a98..eb29e34eb 100644 --- a/src/targets/ref/CMakeLists.txt +++ b/src/targets/ref/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### add_library(migraphx_ref target.cpp diff --git a/src/targets/ref/gemm.cpp b/src/targets/ref/gemm.cpp index 071629242..e386b9b4e 100644 --- a/src/targets/ref/gemm.cpp +++ b/src/targets/ref/gemm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/targets/ref/include/migraphx/ref/context.hpp b/src/targets/ref/include/migraphx/ref/context.hpp index f279c3b93..f9b640b55 100644 --- a/src/targets/ref/include/migraphx/ref/context.hpp +++ b/src/targets/ref/include/migraphx/ref/context.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CONTEXT_HPP #define MIGRAPHX_GUARD_RTGLIB_CONTEXT_HPP diff --git a/src/targets/ref/include/migraphx/ref/gemm.hpp b/src/targets/ref/include/migraphx/ref/gemm.hpp index c045f2172..7cc42325d 100644 --- a/src/targets/ref/include/migraphx/ref/gemm.hpp +++ b/src/targets/ref/include/migraphx/ref/gemm.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CPU_GEMM_HPP #define MIGRAPHX_GUARD_RTGLIB_CPU_GEMM_HPP diff --git a/src/targets/ref/include/migraphx/ref/lowering.hpp b/src/targets/ref/include/migraphx/ref/lowering.hpp index 26c5bc844..38959e023 100644 --- a/src/targets/ref/include/migraphx/ref/lowering.hpp +++ b/src/targets/ref/include/migraphx/ref/lowering.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_CPU_LOWERING_HPP #define MIGRAPHX_GUARD_RTGLIB_CPU_LOWERING_HPP diff --git a/src/targets/ref/include/migraphx/ref/target.hpp b/src/targets/ref/include/migraphx/ref/target.hpp index ea99b5699..2b6b16326 100644 --- a/src/targets/ref/include/migraphx/ref/target.hpp +++ b/src/targets/ref/include/migraphx/ref/target.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_CPU_TARGET_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_CPU_TARGET_HPP diff --git a/src/targets/ref/lowering.cpp b/src/targets/ref/lowering.cpp index 5aa367ceb..685377650 100644 --- a/src/targets/ref/lowering.cpp +++ b/src/targets/ref/lowering.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/targets/ref/target.cpp b/src/targets/ref/target.cpp index 9ecdfb429..4acdb5ca4 100644 --- a/src/targets/ref/target.cpp +++ b/src/targets/ref/target.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/tf/CMakeLists.txt b/src/tf/CMakeLists.txt index 6d8f577dc..0d3f5ea29 100644 --- a/src/tf/CMakeLists.txt +++ b/src/tf/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### find_package(Protobuf REQUIRED) protobuf_generate_cpp( diff --git a/src/tf/include/migraphx/tf/op_parser.hpp b/src/tf/include/migraphx/tf/op_parser.hpp index 9202e9016..7ac7af501 100644 --- a/src/tf/include/migraphx/tf/op_parser.hpp +++ b/src/tf/include/migraphx/tf/op_parser.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_TF_REGISTER_OP_PARSER_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_TF_REGISTER_OP_PARSER_HPP diff --git a/src/tf/include/migraphx/tf/tf_parser.hpp b/src/tf/include/migraphx/tf/tf_parser.hpp index d1324f2f7..99510512e 100644 --- a/src/tf/include/migraphx/tf/tf_parser.hpp +++ b/src/tf/include/migraphx/tf/tf_parser.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AMDMIGRAPHX_TF_PARSER_HPP #define MIGRAPHX_GUARD_AMDMIGRAPHX_TF_PARSER_HPP diff --git a/src/tf/op_parser.cpp b/src/tf/op_parser.cpp index 95ce6db89..26e61ab1b 100644 --- a/src/tf/op_parser.cpp +++ b/src/tf/op_parser.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/src/tf/parse_arg_op.cpp b/src/tf/parse_arg_op.cpp index 9b8f3f10e..403382325 100644 --- a/src/tf/parse_arg_op.cpp +++ b/src/tf/parse_arg_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_batchnorm.cpp b/src/tf/parse_batchnorm.cpp index 6a4b3fd23..ff12c9f93 100644 --- a/src/tf/parse_batchnorm.cpp +++ b/src/tf/parse_batchnorm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_biasadd.cpp b/src/tf/parse_biasadd.cpp index 6c0af3809..3ecdf42cc 100644 --- a/src/tf/parse_biasadd.cpp +++ b/src/tf/parse_biasadd.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_binary_op.cpp b/src/tf/parse_binary_op.cpp index a750950c5..0aa30f765 100644 --- a/src/tf/parse_binary_op.cpp +++ b/src/tf/parse_binary_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_cast.cpp b/src/tf/parse_cast.cpp index 9cf9ed326..4bcd2905f 100644 --- a/src/tf/parse_cast.cpp +++ b/src/tf/parse_cast.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_concat.cpp b/src/tf/parse_concat.cpp index 7caa92e5e..5b0fbb124 100644 --- a/src/tf/parse_concat.cpp +++ b/src/tf/parse_concat.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_constant.cpp b/src/tf/parse_constant.cpp index 35f31d1fb..5b1400b15 100644 --- a/src/tf/parse_constant.cpp +++ b/src/tf/parse_constant.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_conv.cpp b/src/tf/parse_conv.cpp index 890c139c1..c025169ce 100644 --- a/src/tf/parse_conv.cpp +++ b/src/tf/parse_conv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_depthwiseconv.cpp b/src/tf/parse_depthwiseconv.cpp index 24cb1bfd4..de6e118aa 100644 --- a/src/tf/parse_depthwiseconv.cpp +++ b/src/tf/parse_depthwiseconv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_expanddims.cpp b/src/tf/parse_expanddims.cpp index 5f2245957..db74eb9f6 100644 --- a/src/tf/parse_expanddims.cpp +++ b/src/tf/parse_expanddims.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_gather.cpp b/src/tf/parse_gather.cpp index 2766a9b27..965b8fa83 100644 --- a/src/tf/parse_gather.cpp +++ b/src/tf/parse_gather.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_generic_op.cpp b/src/tf/parse_generic_op.cpp index 12c327871..e459147fc 100644 --- a/src/tf/parse_generic_op.cpp +++ b/src/tf/parse_generic_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_matmul.cpp b/src/tf/parse_matmul.cpp index 959f4dc20..7ca4c52b4 100644 --- a/src/tf/parse_matmul.cpp +++ b/src/tf/parse_matmul.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_mean.cpp b/src/tf/parse_mean.cpp index 88842cf96..d0c2b9952 100644 --- a/src/tf/parse_mean.cpp +++ b/src/tf/parse_mean.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_onehot.cpp b/src/tf/parse_onehot.cpp index 5805d4b2f..817dc2e23 100644 --- a/src/tf/parse_onehot.cpp +++ b/src/tf/parse_onehot.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_pack.cpp b/src/tf/parse_pack.cpp index a0722ddd0..9766da1bc 100644 --- a/src/tf/parse_pack.cpp +++ b/src/tf/parse_pack.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_pad.cpp b/src/tf/parse_pad.cpp index c3e88f7f0..b1d3a587d 100644 --- a/src/tf/parse_pad.cpp +++ b/src/tf/parse_pad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_pooling.cpp b/src/tf/parse_pooling.cpp index fd454ee96..57e99f13c 100644 --- a/src/tf/parse_pooling.cpp +++ b/src/tf/parse_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_relu6.cpp b/src/tf/parse_relu6.cpp index 540386037..32dfb8963 100644 --- a/src/tf/parse_relu6.cpp +++ b/src/tf/parse_relu6.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_reshape.cpp b/src/tf/parse_reshape.cpp index 29fa89ea4..6ab28e7c5 100644 --- a/src/tf/parse_reshape.cpp +++ b/src/tf/parse_reshape.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_shape.cpp b/src/tf/parse_shape.cpp index d8f4deb24..bdc850ef3 100644 --- a/src/tf/parse_shape.cpp +++ b/src/tf/parse_shape.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_slice.cpp b/src/tf/parse_slice.cpp index ad2ca0c2d..4fd9be29c 100644 --- a/src/tf/parse_slice.cpp +++ b/src/tf/parse_slice.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_softmax.cpp b/src/tf/parse_softmax.cpp index bf9aae605..a136e5c6f 100644 --- a/src/tf/parse_softmax.cpp +++ b/src/tf/parse_softmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_split.cpp b/src/tf/parse_split.cpp index 55c9e0c57..91aa23936 100644 --- a/src/tf/parse_split.cpp +++ b/src/tf/parse_split.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_squeeze.cpp b/src/tf/parse_squeeze.cpp index 213e4642a..8936c0ac3 100644 --- a/src/tf/parse_squeeze.cpp +++ b/src/tf/parse_squeeze.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_stridedslice.cpp b/src/tf/parse_stridedslice.cpp index eac324d51..c161e8953 100644 --- a/src/tf/parse_stridedslice.cpp +++ b/src/tf/parse_stridedslice.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/parse_transpose.cpp b/src/tf/parse_transpose.cpp index 886966ee6..9b306b97d 100644 --- a/src/tf/parse_transpose.cpp +++ b/src/tf/parse_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/tf.cpp b/src/tf/tf.cpp index 8ee5c900d..cc9269d26 100644 --- a/src/tf/tf.cpp +++ b/src/tf/tf.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tf/tf_parser.cpp b/src/tf/tf_parser.cpp index d8ffae2ea..da40ebe69 100644 --- a/src/tf/tf_parser.cpp +++ b/src/tf/tf_parser.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/tmp_dir.cpp b/src/tmp_dir.cpp old mode 100755 new mode 100644 index 20bf0b660..ff8bf65a3 --- a/src/tmp_dir.cpp +++ b/src/tmp_dir.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/value.cpp b/src/value.cpp index 89907bf09..4f6f25d18 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/src/verify_args.cpp b/src/verify_args.cpp index 159f0a986..e67f36089 100644 --- a/src/verify_args.cpp +++ b/src/verify_args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include diff --git a/src/version.h.in b/src/version.h.in index 5f2038d45..2e908c791 100644 --- a/src/version.h.in +++ b/src/version.h.in @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ // clang-format off #define MIGRAPHX_VERSION_MAJOR @PROJECT_VERSION_MAJOR@ #define MIGRAPHX_VERSION_MINOR @PROJECT_VERSION_MINOR@ diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 526e53e3f..1ae07cf17 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### cmake_policy(SET CMP0057 NEW) diff --git a/test/analyze_streams.cpp b/test/analyze_streams.cpp index cbd5cb696..522cd9f11 100644 --- a/test/analyze_streams.cpp +++ b/test/analyze_streams.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/any_ptr.cpp b/test/any_ptr.cpp index d9bc5b0b2..047d0f56c 100644 --- a/test/any_ptr.cpp +++ b/test/any_ptr.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/api/CMakeLists.txt b/test/api/CMakeLists.txt index 55b51d061..438f38d18 100644 --- a/test/api/CMakeLists.txt +++ b/test/api/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### function(add_api_test TEST_NAME TEST_SRC TEST_DIR) set(NAME test_api_${TEST_NAME}) add_executable(${NAME} EXCLUDE_FROM_ALL ${TEST_SRC}) diff --git a/test/api/test_array_base.cpp b/test/api/test_array_base.cpp index e1633188a..66b90dd03 100644 --- a/test/api/test_array_base.cpp +++ b/test/api/test_array_base.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "test.hpp" diff --git a/test/api/test_assign.cpp b/test/api/test_assign.cpp index f2c439861..a46d82721 100644 --- a/test/api/test_assign.cpp +++ b/test/api/test_assign.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/api/test_compile_options.cpp b/test/api/test_compile_options.cpp index ef63bf0b3..b3eb51b8a 100644 --- a/test/api/test_compile_options.cpp +++ b/test/api/test_compile_options.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/api/test_cpu.cpp b/test/api/test_cpu.cpp index d50c049b0..9eec635bf 100644 --- a/test/api/test_cpu.cpp +++ b/test/api/test_cpu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/api/test_custom_op.cpp b/test/api/test_custom_op.cpp index 50472d6f3..d76fcabfb 100644 --- a/test/api/test_custom_op.cpp +++ b/test/api/test_custom_op.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/api/test_gpu.cpp b/test/api/test_gpu.cpp index 3fe4af850..1ff48f01b 100644 --- a/test/api/test_gpu.cpp +++ b/test/api/test_gpu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/api/test_lookup.cpp b/test/api/test_lookup.cpp index 4c7d110ba..c9988f3c1 100644 --- a/test/api/test_lookup.cpp +++ b/test/api/test_lookup.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "test.hpp" diff --git a/test/api/test_module_construct.cpp b/test/api/test_module_construct.cpp index 2d66e22f0..d75d199b3 100644 --- a/test/api/test_module_construct.cpp +++ b/test/api/test_module_construct.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/api/test_op_construct.cpp b/test/api/test_op_construct.cpp old mode 100755 new mode 100644 index 80ee5df4b..ee7c71bad --- a/test/api/test_op_construct.cpp +++ b/test/api/test_op_construct.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/api/test_save_load.cpp b/test/api/test_save_load.cpp index 62063da96..d5b729770 100644 --- a/test/api/test_save_load.cpp +++ b/test/api/test_save_load.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/api/test_tf_parser.cpp b/test/api/test_tf_parser.cpp index 72dc2b19f..4cdc23fb9 100644 --- a/test/api/test_tf_parser.cpp +++ b/test/api/test_tf_parser.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/argument_test.cpp b/test/argument_test.cpp old mode 100755 new mode 100644 index 814f47040..74cab98fe --- a/test/argument_test.cpp +++ b/test/argument_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/auto_contiguous_test.cpp b/test/auto_contiguous_test.cpp index f58070fdd..a70e2ec1d 100644 --- a/test/auto_contiguous_test.cpp +++ b/test/auto_contiguous_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/const_eval_test.cpp b/test/const_eval_test.cpp index c14a807e9..0f0cf0a1e 100644 --- a/test/const_eval_test.cpp +++ b/test/const_eval_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/context_test.cpp b/test/context_test.cpp index 476df1237..84aa0430b 100644 --- a/test/context_test.cpp +++ b/test/context_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/convert_to_json.cpp b/test/convert_to_json.cpp index a3fac6b27..72d08456b 100644 --- a/test/convert_to_json.cpp +++ b/test/convert_to_json.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/dead_code_elimination_test.cpp b/test/dead_code_elimination_test.cpp index bfee9887b..673b62839 100644 --- a/test/dead_code_elimination_test.cpp +++ b/test/dead_code_elimination_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/dom.cpp b/test/dom.cpp index 765df2bf5..d1d6801ac 100644 --- a/test/dom.cpp +++ b/test/dom.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/dot_apply_alpha_beta_test.cpp b/test/dot_apply_alpha_beta_test.cpp index 63f4287f3..708883220 100644 --- a/test/dot_apply_alpha_beta_test.cpp +++ b/test/dot_apply_alpha_beta_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eliminate_allocation_test.cpp b/test/eliminate_allocation_test.cpp index da40ac0b8..2bfc7a548 100644 --- a/test/eliminate_allocation_test.cpp +++ b/test/eliminate_allocation_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eliminate_common_subexpression_test.cpp b/test/eliminate_common_subexpression_test.cpp index 64f8797cb..686413407 100644 --- a/test/eliminate_common_subexpression_test.cpp +++ b/test/eliminate_common_subexpression_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eliminate_concat_test.cpp b/test/eliminate_concat_test.cpp index d65311237..13984e986 100644 --- a/test/eliminate_concat_test.cpp +++ b/test/eliminate_concat_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eliminate_contiguous_test.cpp b/test/eliminate_contiguous_test.cpp old mode 100755 new mode 100644 index e2b96171e..a3bc43c74 --- a/test/eliminate_contiguous_test.cpp +++ b/test/eliminate_contiguous_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eliminate_data_type_test.cpp b/test/eliminate_data_type_test.cpp old mode 100755 new mode 100644 index 884128e9b..23ff9c32f --- a/test/eliminate_data_type_test.cpp +++ b/test/eliminate_data_type_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eliminate_identity_test.cpp b/test/eliminate_identity_test.cpp index b389077b2..2eb693995 100644 --- a/test/eliminate_identity_test.cpp +++ b/test/eliminate_identity_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eliminate_pad_test.cpp b/test/eliminate_pad_test.cpp index 80dc90821..452a20492 100644 --- a/test/eliminate_pad_test.cpp +++ b/test/eliminate_pad_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/eval_test.cpp b/test/eval_test.cpp index f98ca281a..1891becff 100644 --- a/test/eval_test.cpp +++ b/test/eval_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/float_equal.cpp b/test/float_equal.cpp index 075d371b0..3703855cf 100644 --- a/test/float_equal.cpp +++ b/test/float_equal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/fuse_pointwise.cpp b/test/fuse_pointwise.cpp old mode 100755 new mode 100644 index ce9f27aee..a6e03ad34 --- a/test/fuse_pointwise.cpp +++ b/test/fuse_pointwise.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "migraphx/dead_code_elimination.hpp" #include #include diff --git a/test/generate.cpp b/test/generate.cpp index fb651cf06..eef8f865a 100644 --- a/test/generate.cpp +++ b/test/generate.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "test.hpp" diff --git a/test/gpu/adjust_allocation.cpp b/test/gpu/adjust_allocation.cpp index 46d27933b..5912f3ebc 100644 --- a/test/gpu/adjust_allocation.cpp +++ b/test/gpu/adjust_allocation.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/gpu/context_serialize.cpp b/test/gpu/context_serialize.cpp index e38b7504b..d6b5bb927 100644 --- a/test/gpu/context_serialize.cpp +++ b/test/gpu/context_serialize.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/gpu/jit.cpp b/test/gpu/jit.cpp index a1192363f..f1017f484 100644 --- a/test/gpu/jit.cpp +++ b/test/gpu/jit.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/gpu/literal.cpp b/test/gpu/literal.cpp index cb0b31910..2e2a0a658 100644 --- a/test/gpu/literal.cpp +++ b/test/gpu/literal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/gpu/pack_args.cpp b/test/gpu/pack_args.cpp index b32723aa2..919549cb5 100644 --- a/test/gpu/pack_args.cpp +++ b/test/gpu/pack_args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/gpu/pack_int8_args.cpp b/test/gpu/pack_int8_args.cpp index 585d6ca3b..f3d39fda3 100644 --- a/test/gpu/pack_int8_args.cpp +++ b/test/gpu/pack_int8_args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "migraphx/instruction_ref.hpp" #include #include diff --git a/test/gpu/quantization.cpp b/test/gpu/quantization.cpp index e9f39b126..34154463e 100644 --- a/test/gpu/quantization.cpp +++ b/test/gpu/quantization.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/include/basic_ops.hpp b/test/include/basic_ops.hpp old mode 100755 new mode 100644 index e48e1aced..7543891db --- a/test/include/basic_ops.hpp +++ b/test/include/basic_ops.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/include/pointwise.hpp b/test/include/pointwise.hpp old mode 100755 new mode 100644 index 14b358295..a17e3a079 --- a/test/include/pointwise.hpp +++ b/test/include/pointwise.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_TEST_INCLUDE_POINTWISE_HPP #define MIGRAPHX_GUARD_TEST_INCLUDE_POINTWISE_HPP diff --git a/test/include/rob.hpp b/test/include/rob.hpp index c6cd443c1..bf6e96dd6 100644 --- a/test/include/rob.hpp +++ b/test/include/rob.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_ROB_HPP #define MIGRAPHX_GUARD_ROB_HPP diff --git a/test/include/test.hpp b/test/include/test.hpp index 15ce4776a..2baffef1f 100644 --- a/test/include/test.hpp +++ b/test/include/test.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/inline_module_test.cpp b/test/inline_module_test.cpp index f964bb0e9..ef3fadbf2 100644 --- a/test/inline_module_test.cpp +++ b/test/inline_module_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/insert_pad_test.cpp b/test/insert_pad_test.cpp index e07ee803b..0c0662af8 100644 --- a/test/insert_pad_test.cpp +++ b/test/insert_pad_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/jit.cpp b/test/jit.cpp old mode 100755 new mode 100644 index ee2f17ac9..0b6409fc9 --- a/test/jit.cpp +++ b/test/jit.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/json_test.cpp b/test/json_test.cpp index fa0c4212a..af2b0ae96 100644 --- a/test/json_test.cpp +++ b/test/json_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/literal_test.cpp b/test/literal_test.cpp old mode 100755 new mode 100644 index af1011867..49996faad --- a/test/literal_test.cpp +++ b/test/literal_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/main.cpp b/test/main.cpp old mode 100755 new mode 100644 index 64a546934..d239dda7e --- a/test/main.cpp +++ b/test/main.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "test.hpp" int main(int argc, const char* argv[]) { test::run(argc, argv); } diff --git a/test/marker.cpp b/test/marker.cpp old mode 100755 new mode 100644 index 60f4def16..1047b0f0d --- a/test/marker.cpp +++ b/test/marker.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/matcher.cpp b/test/matcher.cpp index 330cbea26..f32dc84bc 100644 --- a/test/matcher.cpp +++ b/test/matcher.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/memory_coloring_test.cpp b/test/memory_coloring_test.cpp old mode 100755 new mode 100644 index b7be41ca8..488f2cde5 --- a/test/memory_coloring_test.cpp +++ b/test/memory_coloring_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/module_test.cpp b/test/module_test.cpp index a3f687522..825177721 100644 --- a/test/module_test.cpp +++ b/test/module_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/msgpack.cpp b/test/msgpack.cpp index 1caf7fc70..61c26e945 100644 --- a/test/msgpack.cpp +++ b/test/msgpack.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/normalize_ops_test.cpp b/test/normalize_ops_test.cpp index 00bc83ec3..f9ec2f033 100644 --- a/test/normalize_ops_test.cpp +++ b/test/normalize_ops_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/onnx/gen_onnx.py b/test/onnx/gen_onnx.py index 454a034ec..796adaeda 100755 --- a/test/onnx/gen_onnx.py +++ b/test/onnx/gen_onnx.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### # This script generates onnx files for MIGraphX onnx operator tests. # To generate an individual onnx file, you can use the following # command: python -c "import gen_onnx; gen_onnx.{test_name}_test()" diff --git a/test/onnx/onnx_rnn_test.cpp b/test/onnx/onnx_rnn_test.cpp old mode 100755 new mode 100644 index 343a6b164..7a8f3e855 --- a/test/onnx/onnx_rnn_test.cpp +++ b/test/onnx/onnx_rnn_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/onnx/onnx_test.cpp b/test/onnx/onnx_test.cpp index dac235f06..07d26af0a 100644 --- a/test/onnx/onnx_test.cpp +++ b/test/onnx/onnx_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/onnx/verify_onnx.cpp b/test/onnx/verify_onnx.cpp index 20731476d..10529e0d4 100644 --- a/test/onnx/verify_onnx.cpp +++ b/test/onnx/verify_onnx.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/op_shape_test.cpp b/test/op_shape_test.cpp index 8eb25cf88..9a342f600 100644 --- a/test/op_shape_test.cpp +++ b/test/op_shape_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/operation.cpp b/test/operation.cpp index fafa50710..28b4f31f3 100644 --- a/test/operation.cpp +++ b/test/operation.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/operators.cpp b/test/operators.cpp old mode 100755 new mode 100644 index 90af2577b..888367aba --- a/test/operators.cpp +++ b/test/operators.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/output_alias.cpp b/test/output_alias.cpp index 9189b05b4..99e3468b2 100644 --- a/test/output_alias.cpp +++ b/test/output_alias.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/pad_calc_test.cpp b/test/pad_calc_test.cpp index 4fadd55d2..61554a41b 100644 --- a/test/pad_calc_test.cpp +++ b/test/pad_calc_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/perf_report.cpp b/test/perf_report.cpp index a82c80f4f..8e3202c3b 100644 --- a/test/perf_report.cpp +++ b/test/perf_report.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/print_graph_test.cpp b/test/print_graph_test.cpp index fd1217bff..c53a08c24 100644 --- a/test/print_graph_test.cpp +++ b/test/print_graph_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/program_test.cpp b/test/program_test.cpp index 6a7fc6600..e8d763908 100644 --- a/test/program_test.cpp +++ b/test/program_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/propagate_constant_test.cpp b/test/propagate_constant_test.cpp index 30246e447..c44073ee3 100644 --- a/test/propagate_constant_test.cpp +++ b/test/propagate_constant_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/py/CMakeLists.txt b/test/py/CMakeLists.txt index 8057a007b..462a5a0c2 100755 --- a/test/py/CMakeLists.txt +++ b/test/py/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### include(PythonModules) diff --git a/test/py/onnx_backend_test.py b/test/py/onnx_backend_test.py index 527cbf408..08f8c99ef 100755 --- a/test/py/onnx_backend_test.py +++ b/test/py/onnx_backend_test.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import sys if sys.version_info < (3, 0): sys.exit() diff --git a/test/py/test_array.py b/test/py/test_array.py index 13aec7e93..24683535c 100644 --- a/test/py/test_array.py +++ b/test/py/test_array.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx, struct, array, sys try: from functools import reduce diff --git a/test/py/test_cpu.py b/test/py/test_cpu.py index 1f737e08b..dab94b9fe 100755 --- a/test/py/test_cpu.py +++ b/test/py/test_cpu.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx, array, sys diff --git a/test/py/test_gpu.py b/test/py/test_gpu.py index 63fc72771..50f1c7a23 100644 --- a/test/py/test_gpu.py +++ b/test/py/test_gpu.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import sys import migraphx try: diff --git a/test/py/test_gpu_offload.py b/test/py/test_gpu_offload.py index 9388df250..2999b968d 100644 --- a/test/py/test_gpu_offload.py +++ b/test/py/test_gpu_offload.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx p = migraphx.parse_onnx("conv_relu_maxpool_test.onnx") diff --git a/test/py/test_module_construct.py b/test/py/test_module_construct.py index 1002062d0..8418c1e8a 100644 --- a/test/py/test_module_construct.py +++ b/test/py/test_module_construct.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx, array, sys diff --git a/test/py/test_numpy.py b/test/py/test_numpy.py index a2cdbcc00..bb8718400 100644 --- a/test/py/test_numpy.py +++ b/test/py/test_numpy.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx, sys try: import numpy as np diff --git a/test/py/test_op.py b/test/py/test_op.py index 85bb757f5..f5bd42bc3 100755 --- a/test/py/test_op.py +++ b/test/py/test_op.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx diff --git a/test/py/test_save_load.py b/test/py/test_save_load.py index dfac40c03..8ac72529a 100644 --- a/test/py/test_save_load.py +++ b/test/py/test_save_load.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx, tempfile diff --git a/test/py/test_shape.py b/test/py/test_shape.py index dd1c8f26c..b5b0532f6 100644 --- a/test/py/test_shape.py +++ b/test/py/test_shape.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import migraphx diff --git a/test/quantization.cpp b/test/quantization.cpp index 181dce5f9..c90b86e44 100644 --- a/test/quantization.cpp +++ b/test/quantization.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/reduce_dims.cpp b/test/reduce_dims.cpp index 6c5328ac1..5a25c7fb5 100644 --- a/test/reduce_dims.cpp +++ b/test/reduce_dims.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/test/ref_dev_examples.cpp b/test/ref_dev_examples.cpp index d6d4a4a68..b2d3759d2 100644 --- a/test/ref_dev_examples.cpp +++ b/test/ref_dev_examples.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/ref_dot_op_test.cpp b/test/ref_dot_op_test.cpp index 6660338bd..181609992 100644 --- a/test/ref_dot_op_test.cpp +++ b/test/ref_dot_op_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/ref_loop_test.cpp b/test/ref_loop_test.cpp index d76b547cb..3a7a66cbd 100644 --- a/test/ref_loop_test.cpp +++ b/test/ref_loop_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/ref_ops_nonstd_shape_test.cpp b/test/ref_ops_nonstd_shape_test.cpp index 11c272937..d2871c508 100644 --- a/test/ref_ops_nonstd_shape_test.cpp +++ b/test/ref_ops_nonstd_shape_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/ref_ops_test.cpp b/test/ref_ops_test.cpp index 547043ccb..9b784fed6 100644 --- a/test/ref_ops_test.cpp +++ b/test/ref_ops_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/ref_rnn_ops_test.cpp b/test/ref_rnn_ops_test.cpp index a234ec697..c867a02e7 100644 --- a/test/ref_rnn_ops_test.cpp +++ b/test/ref_rnn_ops_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/replace_allocate.cpp b/test/replace_allocate.cpp index a3fd8ffe0..90b8a9439 100644 --- a/test/replace_allocate.cpp +++ b/test/replace_allocate.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/rewrite_batchnorm_test.cpp b/test/rewrite_batchnorm_test.cpp index f3aedab7c..5090cae39 100644 --- a/test/rewrite_batchnorm_test.cpp +++ b/test/rewrite_batchnorm_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/rewrite_pooling_test.cpp b/test/rewrite_pooling_test.cpp index 856a2ecbe..86224831e 100644 --- a/test/rewrite_pooling_test.cpp +++ b/test/rewrite_pooling_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/rewrite_quantization_test.cpp b/test/rewrite_quantization_test.cpp index c39bce5f7..7d4cd9dca 100644 --- a/test/rewrite_quantization_test.cpp +++ b/test/rewrite_quantization_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/run_loop_test.cpp b/test/run_loop_test.cpp index aca460c29..a8df5839f 100644 --- a/test/run_loop_test.cpp +++ b/test/run_loop_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/schedule_test.cpp b/test/schedule_test.cpp old mode 100755 new mode 100644 index cb5731d67..76abc75f9 --- a/test/schedule_test.cpp +++ b/test/schedule_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/serialize_program.cpp b/test/serialize_program.cpp index 99bd1abaf..016299cde 100644 --- a/test/serialize_program.cpp +++ b/test/serialize_program.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/serialize_test.cpp b/test/serialize_test.cpp old mode 100755 new mode 100644 index b199816f8..48bd1c039 --- a/test/serialize_test.cpp +++ b/test/serialize_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/shape_test.cpp b/test/shape_test.cpp old mode 100755 new mode 100644 index c3f0d319b..dbcdacc5c --- a/test/shape_test.cpp +++ b/test/shape_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/simplify_algebra_test.cpp b/test/simplify_algebra_test.cpp index f168baa20..0196cf02a 100644 --- a/test/simplify_algebra_test.cpp +++ b/test/simplify_algebra_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/simplify_qdq_test.cpp b/test/simplify_qdq_test.cpp index fca267867..fb271f972 100644 --- a/test/simplify_qdq_test.cpp +++ b/test/simplify_qdq_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/simplify_reshapes_test.cpp b/test/simplify_reshapes_test.cpp index 56fe8216b..7753f61e2 100644 --- a/test/simplify_reshapes_test.cpp +++ b/test/simplify_reshapes_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/stringutils.cpp b/test/stringutils.cpp index b2de0ea32..ce15a71e9 100644 --- a/test/stringutils.cpp +++ b/test/stringutils.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include diff --git a/test/targets.cpp b/test/targets.cpp index 2e286022e..a6ef4ae51 100644 --- a/test/targets.cpp +++ b/test/targets.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/tf/gen_tf_pb.py b/test/tf/gen_tf_pb.py index b9fae1ed1..66eaa8ccd 100644 --- a/test/tf/gen_tf_pb.py +++ b/test/tf/gen_tf_pb.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### # This script generates tf pb files for MIGraphX tf operator tests. # To generate an individual pb file, you can use the following # command: python -c "import gen_tf_pb; gen_tf_pb.{test_name}_test()" diff --git a/test/tf/tf_test.cpp b/test/tf/tf_test.cpp index 1fd9198ec..33b59b66b 100644 --- a/test/tf/tf_test.cpp +++ b/test/tf/tf_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/type_name.cpp b/test/type_name.cpp index bcb9f2e58..23feac216 100644 --- a/test/type_name.cpp +++ b/test/type_name.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "test.hpp" diff --git a/test/validate.cpp b/test/validate.cpp index 6d5885872..df3bc1a61 100644 --- a/test/validate.cpp +++ b/test/validate.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/value_test.cpp b/test/value_test.cpp index 468450cd2..acafb7476 100644 --- a/test/value_test.cpp +++ b/test/value_test.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/test/verify/CMakeLists.txt b/test/verify/CMakeLists.txt index 6b7341fa6..e41b1ea72 100644 --- a/test/verify/CMakeLists.txt +++ b/test/verify/CMakeLists.txt @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### file(GLOB VERIFY_TESTS ${CONFIGURE_DEPENDS} *.cpp) diff --git a/test/verify/auto_print.cpp b/test/verify/auto_print.cpp index 12c374790..903fefd92 100644 --- a/test/verify/auto_print.cpp +++ b/test/verify/auto_print.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "auto_print.hpp" #include #include diff --git a/test/verify/auto_print.hpp b/test/verify/auto_print.hpp old mode 100755 new mode 100644 index ed7ff0e3d..f680479fa --- a/test/verify/auto_print.hpp +++ b/test/verify/auto_print.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_TEST_AUTO_PRINT_HPP #define MIGRAPHX_GUARD_TEST_AUTO_PRINT_HPP diff --git a/test/verify/batch_quant_dot_1.cpp b/test/verify/batch_quant_dot_1.cpp index 8d4ecab00..28a10f812 100644 --- a/test/verify/batch_quant_dot_1.cpp +++ b/test/verify/batch_quant_dot_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/batch_quant_dot_2.cpp b/test/verify/batch_quant_dot_2.cpp index cf37c39ed..241cac71a 100644 --- a/test/verify/batch_quant_dot_2.cpp +++ b/test/verify/batch_quant_dot_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/batch_quant_dot_3.cpp b/test/verify/batch_quant_dot_3.cpp index 334a379de..05bcc1420 100644 --- a/test/verify/batch_quant_dot_3.cpp +++ b/test/verify/batch_quant_dot_3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/batch_quant_dot_4.cpp b/test/verify/batch_quant_dot_4.cpp index c6946d2f5..7865b9e46 100644 --- a/test/verify/batch_quant_dot_4.cpp +++ b/test/verify/batch_quant_dot_4.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/batch_quant_dot_5.cpp b/test/verify/batch_quant_dot_5.cpp index dbb04cb57..5f5ba0731 100644 --- a/test/verify/batch_quant_dot_5.cpp +++ b/test/verify/batch_quant_dot_5.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_bmv.cpp b/test/verify/gemm_2args_bmv.cpp index 5ebbd1b71..896f2df64 100644 --- a/test/verify/gemm_2args_bmv.cpp +++ b/test/verify/gemm_2args_bmv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mm_1.cpp b/test/verify/gemm_2args_mm_1.cpp index d97ea8d50..204f957ce 100644 --- a/test/verify/gemm_2args_mm_1.cpp +++ b/test/verify/gemm_2args_mm_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mm_2.cpp b/test/verify/gemm_2args_mm_2.cpp index ca7964ded..7e2405abc 100644 --- a/test/verify/gemm_2args_mm_2.cpp +++ b/test/verify/gemm_2args_mm_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mm_3.cpp b/test/verify/gemm_2args_mm_3.cpp index 6c00d4bf7..d0edcc9b2 100644 --- a/test/verify/gemm_2args_mm_3.cpp +++ b/test/verify/gemm_2args_mm_3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mm_4.cpp b/test/verify/gemm_2args_mm_4.cpp index b4d664ac8..af04b896c 100644 --- a/test/verify/gemm_2args_mm_4.cpp +++ b/test/verify/gemm_2args_mm_4.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mm_5.cpp b/test/verify/gemm_2args_mm_5.cpp index e63b9c94a..93316ee30 100644 --- a/test/verify/gemm_2args_mm_5.cpp +++ b/test/verify/gemm_2args_mm_5.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mm_6.cpp b/test/verify/gemm_2args_mm_6.cpp index 897279e9b..e76b2170e 100644 --- a/test/verify/gemm_2args_mm_6.cpp +++ b/test/verify/gemm_2args_mm_6.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mm_7.cpp b/test/verify/gemm_2args_mm_7.cpp index 543c98e52..4cfa8bd67 100644 --- a/test/verify/gemm_2args_mm_7.cpp +++ b/test/verify/gemm_2args_mm_7.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_mv.cpp b/test/verify/gemm_2args_mv.cpp index aa9496b53..ae81cd397 100644 --- a/test/verify/gemm_2args_mv.cpp +++ b/test/verify/gemm_2args_mv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_vbm.cpp b/test/verify/gemm_2args_vbm.cpp index ca2cdd34a..e1f24d5e6 100644 --- a/test/verify/gemm_2args_vbm.cpp +++ b/test/verify/gemm_2args_vbm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_vm.cpp b/test/verify/gemm_2args_vm.cpp index aeca564eb..f36714c89 100644 --- a/test/verify/gemm_2args_vm.cpp +++ b/test/verify/gemm_2args_vm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_2args_vv.cpp b/test/verify/gemm_2args_vv.cpp index 5ce5fac97..5def7fd37 100644 --- a/test/verify/gemm_2args_vv.cpp +++ b/test/verify/gemm_2args_vv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" diff --git a/test/verify/gemm_add.cpp b/test/verify/gemm_add.cpp index 875f7eb7e..d5624d25f 100644 --- a/test/verify/gemm_add.cpp +++ b/test/verify/gemm_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_literal.cpp b/test/verify/gemm_literal.cpp index 158ba5101..fc2195e21 100644 --- a/test/verify/gemm_literal.cpp +++ b/test/verify/gemm_literal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_multi_3args.cpp b/test/verify/gemm_multi_3args.cpp index 47e9ddb04..383354326 100644 --- a/test/verify/gemm_multi_3args.cpp +++ b/test/verify/gemm_multi_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" diff --git a/test/verify/gemm_multi_3args_alpha0.cpp b/test/verify/gemm_multi_3args_alpha0.cpp index e71f69cb2..7c993ad42 100644 --- a/test/verify/gemm_multi_3args_alpha0.cpp +++ b/test/verify/gemm_multi_3args_alpha0.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_multi_3args_beta0.cpp b/test/verify/gemm_multi_3args_beta0.cpp index f3fb4bb73..3d501ef60 100644 --- a/test/verify/gemm_multi_3args_beta0.cpp +++ b/test/verify/gemm_multi_3args_beta0.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" diff --git a/test/verify/gemm_multi_3args_c25.cpp b/test/verify/gemm_multi_3args_c25.cpp index a985c7dbe..f2125b0c3 100644 --- a/test/verify/gemm_multi_3args_c25.cpp +++ b/test/verify/gemm_multi_3args_c25.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" diff --git a/test/verify/gemm_multi_dim_2.cpp b/test/verify/gemm_multi_dim_2.cpp index 35958c2fc..a393e3e06 100644 --- a/test/verify/gemm_multi_dim_2.cpp +++ b/test/verify/gemm_multi_dim_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_multi_dim_2_3.cpp b/test/verify/gemm_multi_dim_2_3.cpp index 40e2d173e..6e9d4f669 100644 --- a/test/verify/gemm_multi_dim_2_3.cpp +++ b/test/verify/gemm_multi_dim_2_3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/gemm_multi_transpose.cpp b/test/verify/gemm_multi_transpose.cpp index 28e3f91bb..d683c05fe 100644 --- a/test/verify/gemm_multi_transpose.cpp +++ b/test/verify/gemm_multi_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" diff --git a/test/verify/main.cpp b/test/verify/main.cpp index 72fac4def..852030d0b 100644 --- a/test/verify/main.cpp +++ b/test/verify/main.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "run_verify.hpp" #include #include diff --git a/test/verify/quant_conv.cpp b/test/verify/quant_conv.cpp index a7ca40fe9..72f32f453 100644 --- a/test/verify/quant_conv.cpp +++ b/test/verify/quant_conv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_conv_default_mode.cpp b/test/verify/quant_conv_default_mode.cpp old mode 100755 new mode 100644 index 652e903c2..282ca724a --- a/test/verify/quant_conv_default_mode.cpp +++ b/test/verify/quant_conv_default_mode.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_conv_int8x4_default.cpp b/test/verify/quant_conv_int8x4_default.cpp index 58dec575d..2e9d48dfb 100644 --- a/test/verify/quant_conv_int8x4_default.cpp +++ b/test/verify/quant_conv_int8x4_default.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_conv_padding.cpp b/test/verify/quant_conv_padding.cpp index 069717f3a..f566c314f 100644 --- a/test/verify/quant_conv_padding.cpp +++ b/test/verify/quant_conv_padding.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_conv_padding_stride.cpp b/test/verify/quant_conv_padding_stride.cpp index 9760708ae..f1c07399f 100644 --- a/test/verify/quant_conv_padding_stride.cpp +++ b/test/verify/quant_conv_padding_stride.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_conv_valid_mode.cpp b/test/verify/quant_conv_valid_mode.cpp old mode 100755 new mode 100644 index 04e2c1239..66e5e6c1a --- a/test/verify/quant_conv_valid_mode.cpp +++ b/test/verify/quant_conv_valid_mode.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_dot_3args_1.cpp b/test/verify/quant_dot_3args_1.cpp index 5acc99c23..c233e4a22 100644 --- a/test/verify/quant_dot_3args_1.cpp +++ b/test/verify/quant_dot_3args_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_dot_3args_2.cpp b/test/verify/quant_dot_3args_2.cpp index 40fab33ae..b546e5194 100644 --- a/test/verify/quant_dot_3args_2.cpp +++ b/test/verify/quant_dot_3args_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_dot_3args_3.cpp b/test/verify/quant_dot_3args_3.cpp index e66a74a13..12ba110eb 100644 --- a/test/verify/quant_dot_3args_3.cpp +++ b/test/verify/quant_dot_3args_3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_dot_3args_4.cpp b/test/verify/quant_dot_3args_4.cpp index f60080a18..cc559be70 100644 --- a/test/verify/quant_dot_3args_4.cpp +++ b/test/verify/quant_dot_3args_4.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/quant_dot_3args_5.cpp b/test/verify/quant_dot_3args_5.cpp index 6c86d2970..120487e93 100644 --- a/test/verify/quant_dot_3args_5.cpp +++ b/test/verify/quant_dot_3args_5.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/run_verify.cpp b/test/verify/run_verify.cpp index 7c14a303a..49b3db275 100644 --- a/test/verify/run_verify.cpp +++ b/test/verify/run_verify.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "run_verify.hpp" #include "auto_print.hpp" #include "verify_program.hpp" diff --git a/test/verify/run_verify.hpp b/test/verify/run_verify.hpp old mode 100755 new mode 100644 index 37ad1560f..ef12b0232 --- a/test/verify/run_verify.hpp +++ b/test/verify/run_verify.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_TEST_RUN_VERIFY_HPP #define MIGRAPHX_GUARD_TEST_RUN_VERIFY_HPP diff --git a/test/verify/test_abs.cpp b/test/verify/test_abs.cpp index eff867c9e..435cc64c9 100644 --- a/test/verify/test_abs.cpp +++ b/test/verify/test_abs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_acos.cpp b/test/verify/test_acos.cpp old mode 100755 new mode 100644 index c6b31d302..873cc5ffa --- a/test/verify/test_acos.cpp +++ b/test/verify/test_acos.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_acosh.cpp b/test/verify/test_acosh.cpp index 53b6219e5..4e2c39a31 100644 --- a/test/verify/test_acosh.cpp +++ b/test/verify/test_acosh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add.cpp b/test/verify/test_add.cpp index 889de84b7..d56076748 100644 --- a/test/verify/test_add.cpp +++ b/test/verify/test_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_broadcast.cpp b/test/verify/test_add_broadcast.cpp index 2b0d935f5..4bfca2470 100644 --- a/test/verify/test_add_broadcast.cpp +++ b/test/verify/test_add_broadcast.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_broadcast2.cpp b/test/verify/test_add_broadcast2.cpp index 60a91e7d0..5f0fce553 100644 --- a/test/verify/test_add_broadcast2.cpp +++ b/test/verify/test_add_broadcast2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_broadcast3.cpp b/test/verify/test_add_broadcast3.cpp index 7eb01e1c8..329dac29d 100644 --- a/test/verify/test_add_broadcast3.cpp +++ b/test/verify/test_add_broadcast3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_broadcast4.cpp b/test/verify/test_add_broadcast4.cpp index 6ac9d807b..c31d7da5f 100644 --- a/test/verify/test_add_broadcast4.cpp +++ b/test/verify/test_add_broadcast4.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_broadcast5.cpp b/test/verify/test_add_broadcast5.cpp index 0ed3481f8..110e939e7 100644 --- a/test/verify/test_add_broadcast5.cpp +++ b/test/verify/test_add_broadcast5.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_broadcast6.cpp b/test/verify/test_add_broadcast6.cpp index 6f9a8c5a9..10556966d 100644 --- a/test/verify/test_add_broadcast6.cpp +++ b/test/verify/test_add_broadcast6.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_gelu.cpp b/test/verify/test_add_gelu.cpp index ccd6ab3c3..4a0601506 100644 --- a/test/verify/test_add_gelu.cpp +++ b/test/verify/test_add_gelu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_half.cpp b/test/verify/test_add_half.cpp index 324c3a418..9938194d6 100644 --- a/test/verify/test_add_half.cpp +++ b/test/verify/test_add_half.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_relu.cpp b/test/verify/test_add_relu.cpp index bbc97539b..0ae6eca61 100644 --- a/test/verify/test_add_relu.cpp +++ b/test/verify/test_add_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_relu_add.cpp b/test/verify/test_add_relu_add.cpp old mode 100755 new mode 100644 index 90dd38ebd..2156565d0 --- a/test/verify/test_add_relu_add.cpp +++ b/test/verify/test_add_relu_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_sigmoid.cpp b/test/verify/test_add_sigmoid.cpp index e5e9b82ec..858305e4a 100644 --- a/test/verify/test_add_sigmoid.cpp +++ b/test/verify/test_add_sigmoid.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_add_tanh.cpp b/test/verify/test_add_tanh.cpp index 73df5b3ee..5c4224048 100644 --- a/test/verify/test_add_tanh.cpp +++ b/test/verify/test_add_tanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_and.cpp b/test/verify/test_and.cpp index ac49df493..ee2d0417e 100644 --- a/test/verify/test_and.cpp +++ b/test/verify/test_and.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_arg_ops.cpp b/test/verify/test_arg_ops.cpp index 9f312b25f..3ed20269d 100644 --- a/test/verify/test_arg_ops.cpp +++ b/test/verify/test_arg_ops.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_asin.cpp b/test/verify/test_asin.cpp old mode 100755 new mode 100644 index fac47e460..615cc34cc --- a/test/verify/test_asin.cpp +++ b/test/verify/test_asin.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_asinh.cpp b/test/verify/test_asinh.cpp old mode 100755 new mode 100644 index bdf2ba26f..a06d4d34b --- a/test/verify/test_asinh.cpp +++ b/test/verify/test_asinh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_atan.cpp b/test/verify/test_atan.cpp old mode 100755 new mode 100644 index d42428d4c..a0915fc43 --- a/test/verify/test_atan.cpp +++ b/test/verify/test_atan.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_atanh.cpp b/test/verify/test_atanh.cpp index 92b4a2310..e61f26880 100644 --- a/test/verify/test_atanh.cpp +++ b/test/verify/test_atanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_avg_pooling_1d.cpp b/test/verify/test_avg_pooling_1d.cpp old mode 100755 new mode 100644 index 56d1d5bc0..ef82b86ee --- a/test/verify/test_avg_pooling_1d.cpp +++ b/test/verify/test_avg_pooling_1d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_avg_pooling_3d.cpp b/test/verify/test_avg_pooling_3d.cpp index c3f0f37c0..6e83e1514 100644 --- a/test/verify/test_avg_pooling_3d.cpp +++ b/test/verify/test_avg_pooling_3d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_avg_pooling_3d_opt.cpp b/test/verify/test_avg_pooling_3d_opt.cpp index bf0482b1c..541d6fcbf 100644 --- a/test/verify/test_avg_pooling_3d_opt.cpp +++ b/test/verify/test_avg_pooling_3d_opt.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_avg_pooling_ceil_3d.cpp b/test/verify/test_avg_pooling_ceil_3d.cpp index 46f8e453f..bfd7ee85b 100644 --- a/test/verify/test_avg_pooling_ceil_3d.cpp +++ b/test/verify/test_avg_pooling_ceil_3d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_batchnorm_1d.cpp b/test/verify/test_batchnorm_1d.cpp index ad59e0fb2..af9e08317 100644 --- a/test/verify/test_batchnorm_1d.cpp +++ b/test/verify/test_batchnorm_1d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_batchnorm_1d_per_actv.cpp b/test/verify/test_batchnorm_1d_per_actv.cpp old mode 100755 new mode 100644 index 8d572e2a4..6eb221b51 --- a/test/verify/test_batchnorm_1d_per_actv.cpp +++ b/test/verify/test_batchnorm_1d_per_actv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_batchnorm_2d_per_actv.cpp b/test/verify/test_batchnorm_2d_per_actv.cpp old mode 100755 new mode 100644 index 482085485..1902e6855 --- a/test/verify/test_batchnorm_2d_per_actv.cpp +++ b/test/verify/test_batchnorm_2d_per_actv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_batchnorm_3d.cpp b/test/verify/test_batchnorm_3d.cpp index 6677c4959..03e48fefd 100644 --- a/test/verify/test_batchnorm_3d.cpp +++ b/test/verify/test_batchnorm_3d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_batchnorm_3d_per_actv.cpp b/test/verify/test_batchnorm_3d_per_actv.cpp old mode 100755 new mode 100644 index e675feff0..01827d7c4 --- a/test/verify/test_batchnorm_3d_per_actv.cpp +++ b/test/verify/test_batchnorm_3d_per_actv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_batchnorm_inference.cpp b/test/verify/test_batchnorm_inference.cpp index cce9d9679..157800a27 100644 --- a/test/verify/test_batchnorm_inference.cpp +++ b/test/verify/test_batchnorm_inference.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_batchnorm_inference_2.cpp b/test/verify/test_batchnorm_inference_2.cpp index 7124420da..265b1f80a 100644 --- a/test/verify/test_batchnorm_inference_2.cpp +++ b/test/verify/test_batchnorm_inference_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_ceil.cpp b/test/verify/test_ceil.cpp index 892d69524..0d91cbcf0 100644 --- a/test/verify/test_ceil.cpp +++ b/test/verify/test_ceil.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_clip.cpp b/test/verify/test_clip.cpp index 8854a0a68..d3bbd5805 100644 --- a/test/verify/test_clip.cpp +++ b/test/verify/test_clip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_axis_0.cpp b/test/verify/test_concat_axis_0.cpp index 6f70e6f38..25e2301ad 100644 --- a/test/verify/test_concat_axis_0.cpp +++ b/test/verify/test_concat_axis_0.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_axis_1.cpp b/test/verify/test_concat_axis_1.cpp index c66220920..44bc19caa 100644 --- a/test/verify/test_concat_axis_1.cpp +++ b/test/verify/test_concat_axis_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_axis_neg_1.cpp b/test/verify/test_concat_axis_neg_1.cpp index 1f5156871..559916746 100644 --- a/test/verify/test_concat_axis_neg_1.cpp +++ b/test/verify/test_concat_axis_neg_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_pooling.cpp b/test/verify/test_concat_pooling.cpp index f455836d7..c08f872f6 100644 --- a/test/verify/test_concat_pooling.cpp +++ b/test/verify/test_concat_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_relu.cpp b/test/verify/test_concat_relu.cpp index 797ed55f1..c0cbe9283 100644 --- a/test/verify/test_concat_relu.cpp +++ b/test/verify/test_concat_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_transpose.cpp b/test/verify/test_concat_transpose.cpp index 06bec2d1f..af6240a9d 100644 --- a/test/verify/test_concat_transpose.cpp +++ b/test/verify/test_concat_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_transpose2.cpp b/test/verify/test_concat_transpose2.cpp index fd5902719..5ed508fcf 100644 --- a/test/verify/test_concat_transpose2.cpp +++ b/test/verify/test_concat_transpose2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_concat_transpose3.cpp b/test/verify/test_concat_transpose3.cpp index fa0523f6a..87c958394 100644 --- a/test/verify/test_concat_transpose3.cpp +++ b/test/verify/test_concat_transpose3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_contiguous.cpp b/test/verify/test_contiguous.cpp index 6b1dc740c..03f53fde5 100644 --- a/test/verify/test_contiguous.cpp +++ b/test/verify/test_contiguous.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_contiguous_broadcast.cpp b/test/verify/test_contiguous_broadcast.cpp index da4bddcaf..55400a08f 100644 --- a/test/verify/test_contiguous_broadcast.cpp +++ b/test/verify/test_contiguous_broadcast.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_contiguous_broadcast_transpose.cpp b/test/verify/test_contiguous_broadcast_transpose.cpp index f8a076b44..38a1cc1e5 100644 --- a/test/verify/test_contiguous_broadcast_transpose.cpp +++ b/test/verify/test_contiguous_broadcast_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv.cpp b/test/verify/test_conv.cpp index a6e597b50..873016bb5 100644 --- a/test/verify/test_conv.cpp +++ b/test/verify/test_conv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv2.cpp b/test/verify/test_conv2.cpp index 41ca9da24..e6dea116f 100644 --- a/test/verify/test_conv2.cpp +++ b/test/verify/test_conv2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv3d.cpp b/test/verify/test_conv3d.cpp index 768e42ec4..c0cba5282 100644 --- a/test/verify/test_conv3d.cpp +++ b/test/verify/test_conv3d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_add.cpp b/test/verify/test_conv_add.cpp index 755e840ed..934a19857 100644 --- a/test/verify/test_conv_add.cpp +++ b/test/verify/test_conv_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_add_1x1_diff_strides.cpp b/test/verify/test_conv_add_1x1_diff_strides.cpp index 75f34ffbc..9e2be9596 100644 --- a/test/verify/test_conv_add_1x1_diff_strides.cpp +++ b/test/verify/test_conv_add_1x1_diff_strides.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_bias_clipped_relu.cpp b/test/verify/test_conv_bias_clipped_relu.cpp index 56f6d3e49..bd9fc3bff 100644 --- a/test/verify/test_conv_bias_clipped_relu.cpp +++ b/test/verify/test_conv_bias_clipped_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_bn.cpp b/test/verify/test_conv_bn.cpp index 2c702269d..f48ec0398 100644 --- a/test/verify/test_conv_bn.cpp +++ b/test/verify/test_conv_bn.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_bn_add.cpp b/test/verify/test_conv_bn_add.cpp index fd9239b8d..61f733dec 100644 --- a/test/verify/test_conv_bn_add.cpp +++ b/test/verify/test_conv_bn_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_bn_relu_pooling.cpp b/test/verify/test_conv_bn_relu_pooling.cpp index 504ef63d6..521ce8d28 100644 --- a/test/verify/test_conv_bn_relu_pooling.cpp +++ b/test/verify/test_conv_bn_relu_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_bn_relu_pooling2.cpp b/test/verify/test_conv_bn_relu_pooling2.cpp index 233d740e7..e46436591 100644 --- a/test/verify/test_conv_bn_relu_pooling2.cpp +++ b/test/verify/test_conv_bn_relu_pooling2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_pooling.cpp b/test/verify/test_conv_pooling.cpp index 3a231d7f4..d4e7b7b66 100644 --- a/test/verify/test_conv_pooling.cpp +++ b/test/verify/test_conv_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_relu.cpp b/test/verify/test_conv_relu.cpp index d66511bfa..312cac4f6 100644 --- a/test/verify/test_conv_relu.cpp +++ b/test/verify/test_conv_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_conv_relu_half.cpp b/test/verify/test_conv_relu_half.cpp index f14d2faf9..a61865c73 100644 --- a/test/verify/test_conv_relu_half.cpp +++ b/test/verify/test_conv_relu_half.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_convert.cpp b/test/verify/test_convert.cpp old mode 100755 new mode 100644 index c211faa9b..d50f4146f --- a/test/verify/test_convert.cpp +++ b/test/verify/test_convert.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_cos.cpp b/test/verify/test_cos.cpp old mode 100755 new mode 100644 index 01731f58f..f4d61b300 --- a/test/verify/test_cos.cpp +++ b/test/verify/test_cos.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_cosh.cpp b/test/verify/test_cosh.cpp old mode 100755 new mode 100644 index dac249994..9721c61f9 --- a/test/verify/test_cosh.cpp +++ b/test/verify/test_cosh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_deconv.cpp b/test/verify/test_deconv.cpp index 3f00ed1be..9aec2c042 100644 --- a/test/verify/test_deconv.cpp +++ b/test/verify/test_deconv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_deconv_1d.cpp b/test/verify/test_deconv_1d.cpp index b009b551e..a0e2f73c2 100644 --- a/test/verify/test_deconv_1d.cpp +++ b/test/verify/test_deconv_1d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_deconv_2x3.cpp b/test/verify/test_deconv_2x3.cpp index c0929ddb8..195000ca5 100644 --- a/test/verify/test_deconv_2x3.cpp +++ b/test/verify/test_deconv_2x3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_deconv_3d.cpp b/test/verify/test_deconv_3d.cpp index 8651dac93..176143707 100644 --- a/test/verify/test_deconv_3d.cpp +++ b/test/verify/test_deconv_3d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_dequantizelinear.cpp b/test/verify/test_dequantizelinear.cpp index 88619d60a..03dd8d926 100644 --- a/test/verify/test_dequantizelinear.cpp +++ b/test/verify/test_dequantizelinear.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_div.cpp b/test/verify/test_div.cpp index d8c038698..3eb45fa2f 100644 --- a/test/verify/test_div.cpp +++ b/test/verify/test_div.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_div2.cpp b/test/verify/test_div2.cpp index 8b9d42de7..370a6cfab 100644 --- a/test/verify/test_div2.cpp +++ b/test/verify/test_div2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_elu.cpp b/test/verify/test_elu.cpp index 6a316da8e..eaf40da70 100644 --- a/test/verify/test_elu.cpp +++ b/test/verify/test_elu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_equal.cpp b/test/verify/test_equal.cpp index 1a4582de9..eb2e60d75 100644 --- a/test/verify/test_equal.cpp +++ b/test/verify/test_equal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_equal_brcst.cpp b/test/verify/test_equal_brcst.cpp index f726973ba..9a16d6c23 100644 --- a/test/verify/test_equal_brcst.cpp +++ b/test/verify/test_equal_brcst.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_erf.cpp b/test/verify/test_erf.cpp index 63602dadf..1581e18a3 100644 --- a/test/verify/test_erf.cpp +++ b/test/verify/test_erf.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_exp.cpp b/test/verify/test_exp.cpp index 75e875956..a699734bf 100644 --- a/test/verify/test_exp.cpp +++ b/test/verify/test_exp.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_floor.cpp b/test/verify/test_floor.cpp index d6cd9df37..662c891c0 100644 --- a/test/verify/test_floor.cpp +++ b/test/verify/test_floor.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_fp32_fp16_add.cpp b/test/verify/test_fp32_fp16_add.cpp index 26340c04e..fa6fee0ea 100644 --- a/test/verify/test_fp32_fp16_add.cpp +++ b/test/verify/test_fp32_fp16_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_fp32_fp16_ladd.cpp b/test/verify/test_fp32_fp16_ladd.cpp index a0ebc9583..2b10ecf82 100644 --- a/test/verify/test_fp32_fp16_ladd.cpp +++ b/test/verify/test_fp32_fp16_ladd.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_fp32_fp16_lall.cpp b/test/verify/test_fp32_fp16_lall.cpp index d44aa1952..a4ab72e47 100644 --- a/test/verify/test_fp32_fp16_lall.cpp +++ b/test/verify/test_fp32_fp16_lall.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_fp32_fp16_sub.cpp b/test/verify/test_fp32_fp16_sub.cpp index 35fd2b63a..05f039dfd 100644 --- a/test/verify/test_fp32_fp16_sub.cpp +++ b/test/verify/test_fp32_fp16_sub.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gather.cpp b/test/verify/test_gather.cpp index 6b53194d1..b52465df4 100644 --- a/test/verify/test_gather.cpp +++ b/test/verify/test_gather.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gather_1d_index.cpp b/test/verify/test_gather_1d_index.cpp index 73f69c9a1..4543ba6b6 100644 --- a/test/verify/test_gather_1d_index.cpp +++ b/test/verify/test_gather_1d_index.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gather_neg_axis.cpp b/test/verify/test_gather_neg_axis.cpp index 691a60bc7..3f7c99db4 100644 --- a/test/verify/test_gather_neg_axis.cpp +++ b/test/verify/test_gather_neg_axis.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gather_neg_indices.cpp b/test/verify/test_gather_neg_indices.cpp index 8edf38169..ef704b427 100644 --- a/test/verify/test_gather_neg_indices.cpp +++ b/test/verify/test_gather_neg_indices.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gather_scalar_index.cpp b/test/verify/test_gather_scalar_index.cpp index 61aa03862..d4913c2fc 100644 --- a/test/verify/test_gather_scalar_index.cpp +++ b/test/verify/test_gather_scalar_index.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gather_scalar_output.cpp b/test/verify/test_gather_scalar_output.cpp index 2c88794ea..1dc7ff4b9 100644 --- a/test/verify/test_gather_scalar_output.cpp +++ b/test/verify/test_gather_scalar_output.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gathernd_batch_dims_1.cpp b/test/verify/test_gathernd_batch_dims_1.cpp index c902f80c8..28b3eb9e4 100644 --- a/test/verify/test_gathernd_batch_dims_1.cpp +++ b/test/verify/test_gathernd_batch_dims_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gathernd_batch_dims_2.cpp b/test/verify/test_gathernd_batch_dims_2.cpp index 94b914293..ddcd467f7 100644 --- a/test/verify/test_gathernd_batch_dims_2.cpp +++ b/test/verify/test_gathernd_batch_dims_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_gathernd_default.cpp b/test/verify/test_gathernd_default.cpp index 020210e7c..d4d48251c 100644 --- a/test/verify/test_gathernd_default.cpp +++ b/test/verify/test_gathernd_default.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_gathernd_negative_indices.cpp b/test/verify/test_gathernd_negative_indices.cpp index e1e1f2b27..25663e766 100644 --- a/test/verify/test_gathernd_negative_indices.cpp +++ b/test/verify/test_gathernd_negative_indices.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gelu.cpp b/test/verify/test_gelu.cpp index a54ac25f5..c768ad29b 100644 --- a/test/verify/test_gelu.cpp +++ b/test/verify/test_gelu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm.cpp b/test/verify/test_gemm.cpp index 45b86fd03..770062701 100644 --- a/test/verify/test_gemm.cpp +++ b/test/verify/test_gemm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_copy.cpp b/test/verify/test_gemm_copy.cpp index ed56ccae8..e7cfc76d8 100644 --- a/test/verify/test_gemm_copy.cpp +++ b/test/verify/test_gemm_copy.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" diff --git a/test/verify/test_gemm_ex.cpp b/test/verify/test_gemm_ex.cpp index c24099f61..a1fadf6cc 100644 --- a/test/verify/test_gemm_ex.cpp +++ b/test/verify/test_gemm_ex.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_half.cpp b/test/verify/test_gemm_half.cpp index 521c52cd0..602e978be 100644 --- a/test/verify/test_gemm_half.cpp +++ b/test/verify/test_gemm_half.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_ld.cpp b/test/verify/test_gemm_ld.cpp index 00f7d1d5e..2a11abb88 100644 --- a/test/verify/test_gemm_ld.cpp +++ b/test/verify/test_gemm_ld.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_transposea.cpp b/test/verify/test_gemm_transposea.cpp index dfe795ec7..403293849 100644 --- a/test/verify/test_gemm_transposea.cpp +++ b/test/verify/test_gemm_transposea.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_transposea_ex.cpp b/test/verify/test_gemm_transposea_ex.cpp index 86c8bf683..800117166 100644 --- a/test/verify/test_gemm_transposea_ex.cpp +++ b/test/verify/test_gemm_transposea_ex.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_transposeab.cpp b/test/verify/test_gemm_transposeab.cpp index a3335e48d..402cc5791 100644 --- a/test/verify/test_gemm_transposeab.cpp +++ b/test/verify/test_gemm_transposeab.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_transposeb.cpp b/test/verify/test_gemm_transposeb.cpp index 6b4acd6ce..4013a6e9b 100644 --- a/test/verify/test_gemm_transposeb.cpp +++ b/test/verify/test_gemm_transposeb.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gemm_transposeb_ex.cpp b/test/verify/test_gemm_transposeb_ex.cpp index d3d7bb665..3ff680b96 100644 --- a/test/verify/test_gemm_transposeb_ex.cpp +++ b/test/verify/test_gemm_transposeb_ex.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_global_avg_pooling.cpp b/test/verify/test_global_avg_pooling.cpp old mode 100755 new mode 100644 index 3addcfdff..a9299300c --- a/test/verify/test_global_avg_pooling.cpp +++ b/test/verify/test_global_avg_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_global_max_pooling.cpp b/test/verify/test_global_max_pooling.cpp old mode 100755 new mode 100644 index 157aca828..56de69e28 --- a/test/verify/test_global_max_pooling.cpp +++ b/test/verify/test_global_max_pooling.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_greater.cpp b/test/verify/test_greater.cpp index 02487b5f1..ad5ad668a 100644 --- a/test/verify/test_greater.cpp +++ b/test/verify/test_greater.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_greater_brcst.cpp b/test/verify/test_greater_brcst.cpp index 11fb9809d..0fff8e340 100644 --- a/test/verify/test_greater_brcst.cpp +++ b/test/verify/test_greater_brcst.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_group_conv.cpp b/test/verify/test_group_conv.cpp old mode 100755 new mode 100644 index 58a79ae32..5ddafbe68 --- a/test/verify/test_group_conv.cpp +++ b/test/verify/test_group_conv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_bidirct.cpp b/test/verify/test_gru_bidirct.cpp index 63f0460c1..178dd46c7 100644 --- a/test/verify/test_gru_bidirct.cpp +++ b/test/verify/test_gru_bidirct.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_bidirct_3args.cpp b/test/verify/test_gru_bidirct_3args.cpp index fd93459a2..3efaa8fb5 100644 --- a/test/verify/test_gru_bidirct_3args.cpp +++ b/test/verify/test_gru_bidirct_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_bidirct_3args_und.cpp b/test/verify/test_gru_bidirct_3args_und.cpp index d87fd8255..6be0e2044 100644 --- a/test/verify/test_gru_bidirct_3args_und.cpp +++ b/test/verify/test_gru_bidirct_3args_und.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_bidirct_default_actv.cpp b/test/verify/test_gru_bidirct_default_actv.cpp index 8d8604dc9..daec197b6 100644 --- a/test/verify/test_gru_bidirct_default_actv.cpp +++ b/test/verify/test_gru_bidirct_default_actv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_bidirct_default_actv1.cpp b/test/verify/test_gru_bidirct_default_actv1.cpp index d88280820..334215797 100644 --- a/test/verify/test_gru_bidirct_default_actv1.cpp +++ b/test/verify/test_gru_bidirct_default_actv1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_bidirct_seq1.cpp b/test/verify/test_gru_bidirct_seq1.cpp index 0a60e8094..460da0156 100644 --- a/test/verify/test_gru_bidirct_seq1.cpp +++ b/test/verify/test_gru_bidirct_seq1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_forward.cpp b/test/verify/test_gru_forward.cpp index f250ef613..7c9e77e3e 100644 --- a/test/verify/test_gru_forward.cpp +++ b/test/verify/test_gru_forward.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_forward_3args.cpp b/test/verify/test_gru_forward_3args.cpp index ed98e02be..17fc8b217 100644 --- a/test/verify/test_gru_forward_3args.cpp +++ b/test/verify/test_gru_forward_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_forward_3args_und.cpp b/test/verify/test_gru_forward_3args_und.cpp index c4def6f3e..c94d099cc 100644 --- a/test/verify/test_gru_forward_3args_und.cpp +++ b/test/verify/test_gru_forward_3args_und.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_forward_default_actv.cpp b/test/verify/test_gru_forward_default_actv.cpp index 0e92424e9..2e870bb8d 100644 --- a/test/verify/test_gru_forward_default_actv.cpp +++ b/test/verify/test_gru_forward_default_actv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_forward_default_actv1.cpp b/test/verify/test_gru_forward_default_actv1.cpp index 11e72e1e8..02b6f5972 100644 --- a/test/verify/test_gru_forward_default_actv1.cpp +++ b/test/verify/test_gru_forward_default_actv1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_forward_seq1.cpp b/test/verify/test_gru_forward_seq1.cpp index b761dd788..5757034f1 100644 --- a/test/verify/test_gru_forward_seq1.cpp +++ b/test/verify/test_gru_forward_seq1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_reverse_3args.cpp b/test/verify/test_gru_reverse_3args.cpp index 9c4dde284..a149bd691 100644 --- a/test/verify/test_gru_reverse_3args.cpp +++ b/test/verify/test_gru_reverse_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_reverse_last.cpp b/test/verify/test_gru_reverse_last.cpp index 5796e1da7..5fea3a901 100644 --- a/test/verify/test_gru_reverse_last.cpp +++ b/test/verify/test_gru_reverse_last.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_gru_two_outputs.cpp b/test/verify/test_gru_two_outputs.cpp index c5325615f..8a53c417a 100644 --- a/test/verify/test_gru_two_outputs.cpp +++ b/test/verify/test_gru_two_outputs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_hsqrt.cpp b/test/verify/test_hsqrt.cpp index 124695814..e3cdceb03 100644 --- a/test/verify/test_hsqrt.cpp +++ b/test/verify/test_hsqrt.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_if_literal.cpp b/test/verify/test_if_literal.cpp index 750b1441d..b8aac9a25 100644 --- a/test/verify/test_if_literal.cpp +++ b/test/verify/test_if_literal.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_if_lp.cpp b/test/verify/test_if_lp.cpp index 0a4c10960..f6a758dca 100644 --- a/test/verify/test_if_lp.cpp +++ b/test/verify/test_if_lp.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_if_param.cpp b/test/verify/test_if_param.cpp index 47918b3a7..4ae1e5460 100644 --- a/test/verify/test_if_param.cpp +++ b/test/verify/test_if_param.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_isnan_broadcast.cpp b/test/verify/test_isnan_broadcast.cpp index 059278cd6..eb7d4d3ec 100644 --- a/test/verify/test_isnan_broadcast.cpp +++ b/test/verify/test_isnan_broadcast.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" #include diff --git a/test/verify/test_isnan_float.cpp b/test/verify/test_isnan_float.cpp index 5cc46b1a4..86a164dd1 100644 --- a/test/verify/test_isnan_float.cpp +++ b/test/verify/test_isnan_float.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" #include diff --git a/test/verify/test_isnan_half.cpp b/test/verify/test_isnan_half.cpp index 1168d0306..1576c555c 100644 --- a/test/verify/test_isnan_half.cpp +++ b/test/verify/test_isnan_half.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include "verify_program.hpp" #include diff --git a/test/verify/test_layernorm.cpp b/test/verify/test_layernorm.cpp old mode 100755 new mode 100644 index 0780b5aa8..9b1424810 --- a/test/verify/test_layernorm.cpp +++ b/test/verify/test_layernorm.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_leaky_relu.cpp b/test/verify/test_leaky_relu.cpp index 6503e6fe1..3c8a157f8 100644 --- a/test/verify/test_leaky_relu.cpp +++ b/test/verify/test_leaky_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_less.cpp b/test/verify/test_less.cpp index 75e420bc2..56d77031d 100644 --- a/test/verify/test_less.cpp +++ b/test/verify/test_less.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_less_brcst.cpp b/test/verify/test_less_brcst.cpp index fe47d53e8..cfe7656f8 100644 --- a/test/verify/test_less_brcst.cpp +++ b/test/verify/test_less_brcst.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_literals.cpp b/test/verify/test_literals.cpp index 1d2f22642..639e51fef 100644 --- a/test/verify/test_literals.cpp +++ b/test/verify/test_literals.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_log.cpp b/test/verify/test_log.cpp old mode 100755 new mode 100644 index 9c910475d..c12105f3f --- a/test/verify/test_log.cpp +++ b/test/verify/test_log.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_logsoftmax.cpp b/test/verify/test_logsoftmax.cpp old mode 100755 new mode 100644 index a642ce183..ad8b7fb2d --- a/test/verify/test_logsoftmax.cpp +++ b/test/verify/test_logsoftmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_logsoftmax1.cpp b/test/verify/test_logsoftmax1.cpp index 231a32761..a51a83e83 100644 --- a/test/verify/test_logsoftmax1.cpp +++ b/test/verify/test_logsoftmax1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_loop.cpp b/test/verify/test_loop.cpp index c52234005..304176a6d 100644 --- a/test/verify/test_loop.cpp +++ b/test/verify/test_loop.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_3args.cpp b/test/verify/test_lstm_bidirct_3args.cpp index b7d833d41..7fda46804 100644 --- a/test/verify/test_lstm_bidirct_3args.cpp +++ b/test/verify/test_lstm_bidirct_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_3args_und.cpp b/test/verify/test_lstm_bidirct_3args_und.cpp index 4798accde..6c59fe200 100644 --- a/test/verify/test_lstm_bidirct_3args_und.cpp +++ b/test/verify/test_lstm_bidirct_3args_und.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_default_actv.cpp b/test/verify/test_lstm_bidirct_default_actv.cpp index b4dc85604..0f531d6df 100644 --- a/test/verify/test_lstm_bidirct_default_actv.cpp +++ b/test/verify/test_lstm_bidirct_default_actv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_default_actv1.cpp b/test/verify/test_lstm_bidirct_default_actv1.cpp index 77594619a..0d887b558 100644 --- a/test/verify/test_lstm_bidirct_default_actv1.cpp +++ b/test/verify/test_lstm_bidirct_default_actv1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_default_actv2.cpp b/test/verify/test_lstm_bidirct_default_actv2.cpp index 0ce34ad4a..712177078 100644 --- a/test/verify/test_lstm_bidirct_default_actv2.cpp +++ b/test/verify/test_lstm_bidirct_default_actv2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_hs.cpp b/test/verify/test_lstm_bidirct_hs.cpp index cf4d719f0..eb0f8d5f0 100644 --- a/test/verify/test_lstm_bidirct_hs.cpp +++ b/test/verify/test_lstm_bidirct_hs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_last.cpp b/test/verify/test_lstm_bidirct_last.cpp index 41a2782bd..553d7f16e 100644 --- a/test/verify/test_lstm_bidirct_last.cpp +++ b/test/verify/test_lstm_bidirct_last.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_bidirct_seq1.cpp b/test/verify/test_lstm_bidirct_seq1.cpp index 1a64a3bd7..8e8282c0d 100644 --- a/test/verify/test_lstm_bidirct_seq1.cpp +++ b/test/verify/test_lstm_bidirct_seq1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_forward_3args.cpp b/test/verify/test_lstm_forward_3args.cpp index 706fc2c77..3e1845722 100644 --- a/test/verify/test_lstm_forward_3args.cpp +++ b/test/verify/test_lstm_forward_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_forward_3args_und.cpp b/test/verify/test_lstm_forward_3args_und.cpp index f6d66f666..4da3d9814 100644 --- a/test/verify/test_lstm_forward_3args_und.cpp +++ b/test/verify/test_lstm_forward_3args_und.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_forward_default_actv.cpp b/test/verify/test_lstm_forward_default_actv.cpp index 5e7cd5a2d..a41f806cf 100644 --- a/test/verify/test_lstm_forward_default_actv.cpp +++ b/test/verify/test_lstm_forward_default_actv.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_forward_default_actv1.cpp b/test/verify/test_lstm_forward_default_actv1.cpp index a0339e6f8..64d11e753 100644 --- a/test/verify/test_lstm_forward_default_actv1.cpp +++ b/test/verify/test_lstm_forward_default_actv1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_forward_hs.cpp b/test/verify/test_lstm_forward_hs.cpp index 9bf0edfbb..5bdd5ce15 100644 --- a/test/verify/test_lstm_forward_hs.cpp +++ b/test/verify/test_lstm_forward_hs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_forward_last.cpp b/test/verify/test_lstm_forward_last.cpp index 3ee831c94..52200f077 100644 --- a/test/verify/test_lstm_forward_last.cpp +++ b/test/verify/test_lstm_forward_last.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_forward_seq1.cpp b/test/verify/test_lstm_forward_seq1.cpp index 255f906d8..92ee558d4 100644 --- a/test/verify/test_lstm_forward_seq1.cpp +++ b/test/verify/test_lstm_forward_seq1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_reverse_3args.cpp b/test/verify/test_lstm_reverse_3args.cpp index 95cc70e70..a4e2814c3 100644 --- a/test/verify/test_lstm_reverse_3args.cpp +++ b/test/verify/test_lstm_reverse_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_reverse_3args_cell_output.cpp b/test/verify/test_lstm_reverse_3args_cell_output.cpp index c16a39fab..b828678bd 100644 --- a/test/verify/test_lstm_reverse_3args_cell_output.cpp +++ b/test/verify/test_lstm_reverse_3args_cell_output.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_reverse_last.cpp b/test/verify/test_lstm_reverse_last.cpp index 4a1fb43e2..b7ba8768e 100644 --- a/test/verify/test_lstm_reverse_last.cpp +++ b/test/verify/test_lstm_reverse_last.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_three_outputs.cpp b/test/verify/test_lstm_three_outputs.cpp index 65386e645..f572b2ea2 100644 --- a/test/verify/test_lstm_three_outputs.cpp +++ b/test/verify/test_lstm_three_outputs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_lstm_two_outputs.cpp b/test/verify/test_lstm_two_outputs.cpp index 455c51bf7..bffa18dba 100644 --- a/test/verify/test_lstm_two_outputs.cpp +++ b/test/verify/test_lstm_two_outputs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_max_pooling_ceil_3d.cpp b/test/verify/test_max_pooling_ceil_3d.cpp index 44532907a..ff8283eb1 100644 --- a/test/verify/test_max_pooling_ceil_3d.cpp +++ b/test/verify/test_max_pooling_ceil_3d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_mul.cpp b/test/verify/test_mul.cpp index eafc8a7bd..a880fcce0 100644 --- a/test/verify/test_mul.cpp +++ b/test/verify/test_mul.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_mul_add.cpp b/test/verify/test_mul_add.cpp index f0d47b764..21c22cc16 100644 --- a/test/verify/test_mul_add.cpp +++ b/test/verify/test_mul_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_multinomial.cpp b/test/verify/test_multinomial.cpp index c89fbe7e3..c7c294df0 100644 --- a/test/verify/test_multinomial.cpp +++ b/test/verify/test_multinomial.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_neg.cpp b/test/verify/test_neg.cpp index 454c83eb2..02419f0f9 100644 --- a/test/verify/test_neg.cpp +++ b/test/verify/test_neg.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_nms.cpp b/test/verify/test_nms.cpp index 099e2e9e6..6b3e56baf 100644 --- a/test/verify/test_nms.cpp +++ b/test/verify/test_nms.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_nonstd_gather.cpp b/test/verify/test_nonstd_gather.cpp index 9c1f41f71..2b563dd35 100644 --- a/test/verify/test_nonstd_gather.cpp +++ b/test/verify/test_nonstd_gather.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_nonzero.cpp b/test/verify/test_nonzero.cpp index e43dc937f..47409a91b 100644 --- a/test/verify/test_nonzero.cpp +++ b/test/verify/test_nonzero.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_nonzero_half.cpp b/test/verify/test_nonzero_half.cpp index 15f7ea767..4621842ea 100644 --- a/test/verify/test_nonzero_half.cpp +++ b/test/verify/test_nonzero_half.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_not.cpp b/test/verify/test_not.cpp index 9c58d4f4e..b20829638 100644 --- a/test/verify/test_not.cpp +++ b/test/verify/test_not.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_or.cpp b/test/verify/test_or.cpp index 3a5257d56..4abe792f6 100644 --- a/test/verify/test_or.cpp +++ b/test/verify/test_or.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_pad.cpp b/test/verify/test_pad.cpp index bd3bf9b7b..31bb9cece 100644 --- a/test/verify/test_pad.cpp +++ b/test/verify/test_pad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_pad_highest.cpp b/test/verify/test_pad_highest.cpp old mode 100755 new mode 100644 index 55c6b06d4..f7e868705 --- a/test/verify/test_pad_highest.cpp +++ b/test/verify/test_pad_highest.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_pad_int8.cpp b/test/verify/test_pad_int8.cpp old mode 100755 new mode 100644 index e5bf3f5c3..6f6c33df7 --- a/test/verify/test_pad_int8.cpp +++ b/test/verify/test_pad_int8.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_pad_lowest.cpp b/test/verify/test_pad_lowest.cpp old mode 100755 new mode 100644 index d14d72f46..ce5e2f6d5 --- a/test/verify/test_pad_lowest.cpp +++ b/test/verify/test_pad_lowest.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_pad_transposed.cpp b/test/verify/test_pad_transposed.cpp index fc8c3affd..7548422bb 100644 --- a/test/verify/test_pad_transposed.cpp +++ b/test/verify/test_pad_transposed.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_pooling_autopad.cpp b/test/verify/test_pooling_autopad.cpp old mode 100755 new mode 100644 index 976d717b9..bdb566149 --- a/test/verify/test_pooling_autopad.cpp +++ b/test/verify/test_pooling_autopad.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_pow.cpp b/test/verify/test_pow.cpp index 46cccc7df..861f5063a 100644 --- a/test/verify/test_pow.cpp +++ b/test/verify/test_pow.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_prefix_scan_sum_2d.cpp b/test/verify/test_prefix_scan_sum_2d.cpp index 707930bd6..cd30e10ca 100644 --- a/test/verify/test_prefix_scan_sum_2d.cpp +++ b/test/verify/test_prefix_scan_sum_2d.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_prefix_scan_sum_exclusive.cpp b/test/verify/test_prefix_scan_sum_exclusive.cpp index 786da3e17..147509de4 100644 --- a/test/verify/test_prefix_scan_sum_exclusive.cpp +++ b/test/verify/test_prefix_scan_sum_exclusive.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_prefix_scan_sum_exclusive_reverse.cpp b/test/verify/test_prefix_scan_sum_exclusive_reverse.cpp index f4f44fb06..28abd9eb1 100644 --- a/test/verify/test_prefix_scan_sum_exclusive_reverse.cpp +++ b/test/verify/test_prefix_scan_sum_exclusive_reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_prefix_scan_sum_reverse.cpp b/test/verify/test_prefix_scan_sum_reverse.cpp index ea9c55d14..37d8a347b 100644 --- a/test/verify/test_prefix_scan_sum_reverse.cpp +++ b/test/verify/test_prefix_scan_sum_reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_prelu_brcst.cpp b/test/verify/test_prelu_brcst.cpp index d65916b7c..925c67f9c 100644 --- a/test/verify/test_prelu_brcst.cpp +++ b/test/verify/test_prelu_brcst.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_quantizelinear.cpp b/test/verify/test_quantizelinear.cpp index 84ccced52..589b85a8d 100644 --- a/test/verify/test_quantizelinear.cpp +++ b/test/verify/test_quantizelinear.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_quantizelinear_int32.cpp b/test/verify/test_quantizelinear_int32.cpp index ea3bd5fd1..5ee422d26 100644 --- a/test/verify/test_quantizelinear_int32.cpp +++ b/test/verify/test_quantizelinear_int32.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_recip.cpp b/test/verify/test_recip.cpp old mode 100755 new mode 100644 index 125a9972c..090e93ddf --- a/test/verify/test_recip.cpp +++ b/test/verify/test_recip.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_reduce_op_large.cpp b/test/verify/test_reduce_op_large.cpp old mode 100755 new mode 100644 index 6ea43c975..c6fc03319 --- a/test/verify/test_reduce_op_large.cpp +++ b/test/verify/test_reduce_op_large.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_reduce_op_small.cpp b/test/verify/test_reduce_op_small.cpp old mode 100755 new mode 100644 index a78c829a9..2db9c00ec --- a/test/verify/test_reduce_op_small.cpp +++ b/test/verify/test_reduce_op_small.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_relu_lrn.cpp b/test/verify/test_relu_lrn.cpp index 4dacac1f8..feec2ab21 100644 --- a/test/verify/test_relu_lrn.cpp +++ b/test/verify/test_relu_lrn.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_reverse.cpp b/test/verify/test_reverse.cpp index 02b07fe2f..8ac7c85ed 100644 --- a/test/verify/test_reverse.cpp +++ b/test/verify/test_reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_reverse_multiaxis.cpp b/test/verify/test_reverse_multiaxis.cpp index 27c286cb0..3e02c00cc 100644 --- a/test/verify/test_reverse_multiaxis.cpp +++ b/test/verify/test_reverse_multiaxis.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_reverse_negaxis.cpp b/test/verify/test_reverse_negaxis.cpp index a13653c60..60bc70340 100644 --- a/test/verify/test_reverse_negaxis.cpp +++ b/test/verify/test_reverse_negaxis.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_rnn_3args.cpp b/test/verify/test_rnn_3args.cpp index 127132812..564c37084 100644 --- a/test/verify/test_rnn_3args.cpp +++ b/test/verify/test_rnn_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_4args.cpp b/test/verify/test_rnn_4args.cpp index 10eb41989..c89cb13e6 100644 --- a/test/verify/test_rnn_4args.cpp +++ b/test/verify/test_rnn_4args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_5args.cpp b/test/verify/test_rnn_5args.cpp index 9b7f041f3..1aed8766c 100644 --- a/test/verify/test_rnn_5args.cpp +++ b/test/verify/test_rnn_5args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_bi_3args.cpp b/test/verify/test_rnn_bi_3args.cpp index 293988a3c..099a46305 100644 --- a/test/verify/test_rnn_bi_3args.cpp +++ b/test/verify/test_rnn_bi_3args.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_bidirectional.cpp b/test/verify/test_rnn_bidirectional.cpp index 857c06bb7..c948c70f7 100644 --- a/test/verify/test_rnn_bidirectional.cpp +++ b/test/verify/test_rnn_bidirectional.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_bidirectional10.cpp b/test/verify/test_rnn_bidirectional10.cpp index 5b2bd6e8f..fa9d35db8 100644 --- a/test/verify/test_rnn_bidirectional10.cpp +++ b/test/verify/test_rnn_bidirectional10.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_forward.cpp b/test/verify/test_rnn_forward.cpp index 56aa6b41e..9f8381381 100644 --- a/test/verify/test_rnn_forward.cpp +++ b/test/verify/test_rnn_forward.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_forward10.cpp b/test/verify/test_rnn_forward10.cpp index 57edaa136..9e746eb9c 100644 --- a/test/verify/test_rnn_forward10.cpp +++ b/test/verify/test_rnn_forward10.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_reverse.cpp b/test/verify/test_rnn_reverse.cpp index 98744d525..a1892f088 100644 --- a/test/verify/test_rnn_reverse.cpp +++ b/test/verify/test_rnn_reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_reverse2.cpp b/test/verify/test_rnn_reverse2.cpp index 9cadcec5f..82f944572 100644 --- a/test/verify/test_rnn_reverse2.cpp +++ b/test/verify/test_rnn_reverse2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_sql_1.cpp b/test/verify/test_rnn_sql_1.cpp index 57bc4735e..25a71ec01 100644 --- a/test/verify/test_rnn_sql_1.cpp +++ b/test/verify/test_rnn_sql_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rnn_sql_2.cpp b/test/verify/test_rnn_sql_2.cpp index 1a91a1dfc..45bc17445 100644 --- a/test/verify/test_rnn_sql_2.cpp +++ b/test/verify/test_rnn_sql_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_roialign.cpp b/test/verify/test_roialign.cpp index d3a47a597..e153f6fdd 100644 --- a/test/verify/test_roialign.cpp +++ b/test/verify/test_roialign.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_roialign_nondefault.cpp b/test/verify/test_roialign_nondefault.cpp index 9283ea34b..d47850145 100644 --- a/test/verify/test_roialign_nondefault.cpp +++ b/test/verify/test_roialign_nondefault.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_roialign_nonstandard.cpp b/test/verify/test_roialign_nonstandard.cpp index 451914879..902c33a16 100644 --- a/test/verify/test_roialign_nonstandard.cpp +++ b/test/verify/test_roialign_nonstandard.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_round.cpp b/test/verify/test_round.cpp index 1cdaffe26..06a8e0191 100644 --- a/test/verify/test_round.cpp +++ b/test/verify/test_round.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_rsqrt.cpp b/test/verify/test_rsqrt.cpp index 36dae6865..7ce2dabd8 100644 --- a/test/verify/test_rsqrt.cpp +++ b/test/verify/test_rsqrt.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_scale.cpp b/test/verify/test_scale.cpp index e01a0661c..ec46e7e65 100644 --- a/test/verify/test_scale.cpp +++ b/test/verify/test_scale.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_scatter0.cpp b/test/verify/test_scatter0.cpp index b5f888a80..da2650a2c 100644 --- a/test/verify/test_scatter0.cpp +++ b/test/verify/test_scatter0.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_scatter1.cpp b/test/verify/test_scatter1.cpp index 611629cd8..33f54f937 100644 --- a/test/verify/test_scatter1.cpp +++ b/test/verify/test_scatter1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_scatternd.cpp b/test/verify/test_scatternd.cpp index 6ef26f40a..f90f62389 100644 --- a/test/verify/test_scatternd.cpp +++ b/test/verify/test_scatternd.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_scatternd_add.cpp b/test/verify/test_scatternd_add.cpp index e77bfafe1..d6e4f5660 100644 --- a/test/verify/test_scatternd_add.cpp +++ b/test/verify/test_scatternd_add.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_scatternd_mul.cpp b/test/verify/test_scatternd_mul.cpp index a6eb0d2df..c2c4e114e 100644 --- a/test/verify/test_scatternd_mul.cpp +++ b/test/verify/test_scatternd_mul.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_sigmoid.cpp b/test/verify/test_sigmoid.cpp index afd1d5246..b601adfe2 100644 --- a/test/verify/test_sigmoid.cpp +++ b/test/verify/test_sigmoid.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sign.cpp b/test/verify/test_sign.cpp index 18c2f77e4..1df9d0d6b 100644 --- a/test/verify/test_sign.cpp +++ b/test/verify/test_sign.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sin.cpp b/test/verify/test_sin.cpp index 1b01755dd..33ef16035 100644 --- a/test/verify/test_sin.cpp +++ b/test/verify/test_sin.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sinh.cpp b/test/verify/test_sinh.cpp old mode 100755 new mode 100644 index 845d6aaa0..ebeb381e7 --- a/test/verify/test_sinh.cpp +++ b/test/verify/test_sinh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_slice.cpp b/test/verify/test_slice.cpp index 4534d1037..5f2876063 100644 --- a/test/verify/test_slice.cpp +++ b/test/verify/test_slice.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_slice_reverse.cpp b/test/verify/test_slice_reverse.cpp index 703ef62b2..1616298c3 100644 --- a/test/verify/test_slice_reverse.cpp +++ b/test/verify/test_slice_reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_slice_reverse_step.cpp b/test/verify/test_slice_reverse_step.cpp index fabadb2b3..1ef5f4f07 100644 --- a/test/verify/test_slice_reverse_step.cpp +++ b/test/verify/test_slice_reverse_step.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_slice_sin.cpp b/test/verify/test_slice_sin.cpp index 8a98b6948..e34a203ab 100644 --- a/test/verify/test_slice_sin.cpp +++ b/test/verify/test_slice_sin.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_slice_step_reverse.cpp b/test/verify/test_slice_step_reverse.cpp index db9e88fc3..3141ceb9c 100644 --- a/test/verify/test_slice_step_reverse.cpp +++ b/test/verify/test_slice_step_reverse.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_softmax.cpp b/test/verify/test_softmax.cpp old mode 100755 new mode 100644 index 3ea2d4f0d..1926e95d2 --- a/test/verify/test_softmax.cpp +++ b/test/verify/test_softmax.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_softmax1.cpp b/test/verify/test_softmax1.cpp index 1b13e551f..4742e0360 100644 --- a/test/verify/test_softmax1.cpp +++ b/test/verify/test_softmax1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_softmax2.cpp b/test/verify/test_softmax2.cpp index 01ee5aa59..804f8f04f 100644 --- a/test/verify/test_softmax2.cpp +++ b/test/verify/test_softmax2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_softmax3.cpp b/test/verify/test_softmax3.cpp index 2ed7c7673..027c4d64a 100644 --- a/test/verify/test_softmax3.cpp +++ b/test/verify/test_softmax3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sqrt.cpp b/test/verify/test_sqrt.cpp index cead715b9..ba5de80ac 100644 --- a/test/verify/test_sqrt.cpp +++ b/test/verify/test_sqrt.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sqrt_half1.cpp b/test/verify/test_sqrt_half1.cpp index 9624323db..57d31a798 100644 --- a/test/verify/test_sqrt_half1.cpp +++ b/test/verify/test_sqrt_half1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sqrt_half2.cpp b/test/verify/test_sqrt_half2.cpp index 0d2bd3b3b..065e14784 100644 --- a/test/verify/test_sqrt_half2.cpp +++ b/test/verify/test_sqrt_half2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sqrt_half4.cpp b/test/verify/test_sqrt_half4.cpp index 913e27260..a71c26cd7 100644 --- a/test/verify/test_sqrt_half4.cpp +++ b/test/verify/test_sqrt_half4.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_step.cpp b/test/verify/test_step.cpp index 55c087fa0..d0110f352 100644 --- a/test/verify/test_step.cpp +++ b/test/verify/test_step.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_step_broadcast_transpose.cpp b/test/verify/test_step_broadcast_transpose.cpp index 51b2b53e8..fcdb2aa22 100644 --- a/test/verify/test_step_broadcast_transpose.cpp +++ b/test/verify/test_step_broadcast_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_step_transpose.cpp b/test/verify/test_step_transpose.cpp index f8da7ec86..3fd0407a0 100644 --- a/test/verify/test_step_transpose.cpp +++ b/test/verify/test_step_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sub.cpp b/test/verify/test_sub.cpp index ab9fec853..c921a7968 100644 --- a/test/verify/test_sub.cpp +++ b/test/verify/test_sub.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sub2.cpp b/test/verify/test_sub2.cpp index 3d3a8986a..0065fc0a1 100644 --- a/test/verify/test_sub2.cpp +++ b/test/verify/test_sub2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_sub_int.cpp b/test/verify/test_sub_int.cpp index 0929f4cb8..1b7429e1a 100644 --- a/test/verify/test_sub_int.cpp +++ b/test/verify/test_sub_int.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include #include diff --git a/test/verify/test_tan.cpp b/test/verify/test_tan.cpp index 7216caffd..d8e8ab366 100644 --- a/test/verify/test_tan.cpp +++ b/test/verify/test_tan.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_tanh.cpp b/test/verify/test_tanh.cpp index 7b445f435..39ed4283a 100644 --- a/test/verify/test_tanh.cpp +++ b/test/verify/test_tanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_topk_0.cpp b/test/verify/test_topk_0.cpp index af6106801..8c99154ac 100644 --- a/test/verify/test_topk_0.cpp +++ b/test/verify/test_topk_0.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_topk_1.cpp b/test/verify/test_topk_1.cpp index 367bc6348..3e5d0bf33 100644 --- a/test/verify/test_topk_1.cpp +++ b/test/verify/test_topk_1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_topk_2.cpp b/test/verify/test_topk_2.cpp index eb55f30fb..44f028357 100644 --- a/test/verify/test_topk_2.cpp +++ b/test/verify/test_topk_2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_topk_3.cpp b/test/verify/test_topk_3.cpp index 3800e002b..44d15f9b2 100644 --- a/test/verify/test_topk_3.cpp +++ b/test/verify/test_topk_3.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_trans_abs.cpp b/test/verify/test_trans_abs.cpp index ea2c27c46..2a79142b8 100644 --- a/test/verify/test_trans_abs.cpp +++ b/test/verify/test_trans_abs.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_trans_ret.cpp b/test/verify/test_trans_ret.cpp index cd43a6a2c..6a46ce7be 100644 --- a/test/verify/test_trans_ret.cpp +++ b/test/verify/test_trans_ret.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_trans_tanh.cpp b/test/verify/test_trans_tanh.cpp index 9f44c672e..e52babb1f 100644 --- a/test/verify/test_trans_tanh.cpp +++ b/test/verify/test_trans_tanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_trans_tanh1.cpp b/test/verify/test_trans_tanh1.cpp index 88927d693..42760882e 100644 --- a/test/verify/test_trans_tanh1.cpp +++ b/test/verify/test_trans_tanh1.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_transpose.cpp b/test/verify/test_transpose.cpp index 2be74aab9..e8706a72f 100644 --- a/test/verify/test_transpose.cpp +++ b/test/verify/test_transpose.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_triadd.cpp b/test/verify/test_triadd.cpp index 848c813f3..fffc08740 100644 --- a/test/verify/test_triadd.cpp +++ b/test/verify/test_triadd.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_triadd2.cpp b/test/verify/test_triadd2.cpp index 24fdd518c..2c09d6a10 100644 --- a/test/verify/test_triadd2.cpp +++ b/test/verify/test_triadd2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_triadd_broadcast.cpp b/test/verify/test_triadd_broadcast.cpp index a28bfc73a..b1d866114 100644 --- a/test/verify/test_triadd_broadcast.cpp +++ b/test/verify/test_triadd_broadcast.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_triadd_relu.cpp b/test/verify/test_triadd_relu.cpp index 66525a3e4..2c6f1c3d3 100644 --- a/test/verify/test_triadd_relu.cpp +++ b/test/verify/test_triadd_relu.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_triadd_sigmoid.cpp b/test/verify/test_triadd_sigmoid.cpp index 9c8279b34..d55fad486 100644 --- a/test/verify/test_triadd_sigmoid.cpp +++ b/test/verify/test_triadd_sigmoid.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_triadd_tanh.cpp b/test/verify/test_triadd_tanh.cpp index cf4bd50ca..94ecf4b8b 100644 --- a/test/verify/test_triadd_tanh.cpp +++ b/test/verify/test_triadd_tanh.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_var_sl_gru_bidirct.cpp b/test/verify/test_var_sl_gru_bidirct.cpp index 95da5321f..a10a16558 100644 --- a/test/verify/test_var_sl_gru_bidirct.cpp +++ b/test/verify/test_var_sl_gru_bidirct.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_var_sl_gru_forward.cpp b/test/verify/test_var_sl_gru_forward.cpp index 23d389fca..2e4c434cd 100644 --- a/test/verify/test_var_sl_gru_forward.cpp +++ b/test/verify/test_var_sl_gru_forward.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_where.cpp b/test/verify/test_where.cpp index e6af7234f..2f9d3b689 100644 --- a/test/verify/test_where.cpp +++ b/test/verify/test_where.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_where2.cpp b/test/verify/test_where2.cpp index 774d3218b..cfc25a751 100644 --- a/test/verify/test_where2.cpp +++ b/test/verify/test_where2.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/test_xor.cpp b/test/verify/test_xor.cpp index bd84233a9..9788ce9d8 100644 --- a/test/verify/test_xor.cpp +++ b/test/verify/test_xor.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" #include diff --git a/test/verify/verify_program.cpp b/test/verify/verify_program.cpp index f77c9b467..69da77e91 100644 --- a/test/verify/verify_program.cpp +++ b/test/verify/verify_program.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include "verify_program.hpp" std::vector& get_programs_vector() diff --git a/test/verify/verify_program.hpp b/test/verify/verify_program.hpp index 341700e5a..775459024 100644 --- a/test/verify/verify_program.hpp +++ b/test/verify/verify_program.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_AUTO_REGISTER_VERIFY_PROGRAM_HPP #define MIGRAPHX_GUARD_AUTO_REGISTER_VERIFY_PROGRAM_HPP diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index bb0ab6311..426620734 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,2 +1,25 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### add_custom_target(generate bash ${CMAKE_CURRENT_SOURCE_DIR}/generate.sh) diff --git a/tools/api.py b/tools/api.py index aba9da87c..de59d56f0 100755 --- a/tools/api.py +++ b/tools/api.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import string, sys, re, runpy from functools import wraps from typing import Any, Callable, Dict, List, Optional, Tuple, Union diff --git a/tools/api/api.cpp b/tools/api/api.cpp index 5dceb465e..2a9f83b4f 100644 --- a/tools/api/api.cpp +++ b/tools/api/api.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include diff --git a/tools/api/migraphx.h b/tools/api/migraphx.h index f41d2b91e..f0dc640d7 100644 --- a/tools/api/migraphx.h +++ b/tools/api/migraphx.h @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_C_API_MIGRAPHX_H #define MIGRAPHX_GUARD_C_API_MIGRAPHX_H diff --git a/tools/build_and_test_onnxrt.sh b/tools/build_and_test_onnxrt.sh index faacb082c..98bc33e25 100755 --- a/tools/build_and_test_onnxrt.sh +++ b/tools/build_and_test_onnxrt.sh @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### cd /onnxruntime pip3 install -r requirements.txt # Add newer cmake to the path diff --git a/tools/download_models.sh b/tools/download_models.sh index 27c473a8d..e895e9c25 100755 --- a/tools/download_models.sh +++ b/tools/download_models.sh @@ -1,5 +1,29 @@ #!/bin/bash +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### + if [ -z "$ONNX_HOME" ] then ONNX_HOME=$HOME diff --git a/tools/generate.sh b/tools/generate.sh index 8b5b4a6bd..4b66aa11a 100755 --- a/tools/generate.sh +++ b/tools/generate.sh @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SRC_DIR=$DIR/../src PYTHON=python3 diff --git a/tools/include/allocation_model.hpp b/tools/include/allocation_model.hpp old mode 100755 new mode 100644 index a0973f188..d902c745a --- a/tools/include/allocation_model.hpp +++ b/tools/include/allocation_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_ALLOCATION_MODEL_HPP #define MIGRAPHX_GUARD_ALLOCATION_MODEL_HPP diff --git a/tools/include/concat_opt.hpp b/tools/include/concat_opt.hpp old mode 100755 new mode 100644 index f136e6792..df5712955 --- a/tools/include/concat_opt.hpp +++ b/tools/include/concat_opt.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_CONCAT_OPT_HPP #define MIGRAPHX_GUARD_CONCAT_OPT_HPP diff --git a/tools/include/context.hpp b/tools/include/context.hpp index 34846582a..b2fa46f2c 100644 --- a/tools/include/context.hpp +++ b/tools/include/context.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_CONTEXT_HPP #define MIGRAPHX_GUARD_CONTEXT_HPP diff --git a/tools/include/marker.hpp b/tools/include/marker.hpp old mode 100755 new mode 100644 index 49088fac4..3e61ec3a3 --- a/tools/include/marker.hpp +++ b/tools/include/marker.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MARKER_HPP #define MIGRAPHX_GUARD_MARKER_HPP diff --git a/tools/include/operation.hpp b/tools/include/operation.hpp index 7891eee55..34eb0ae7c 100644 --- a/tools/include/operation.hpp +++ b/tools/include/operation.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_OPERAND_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_OPERAND_HPP diff --git a/tools/include/pass.hpp b/tools/include/pass.hpp index 63b5a9954..c4d292bd9 100644 --- a/tools/include/pass.hpp +++ b/tools/include/pass.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_PASS_HPP #define MIGRAPHX_GUARD_PASS_HPP diff --git a/tools/include/schedule_model.hpp b/tools/include/schedule_model.hpp index 6a1935767..38444eb89 100644 --- a/tools/include/schedule_model.hpp +++ b/tools/include/schedule_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_SCHEDULE_MODEL_HPP #define MIGRAPHX_GUARD_SCHEDULE_MODEL_HPP diff --git a/tools/include/stream_model.hpp b/tools/include/stream_model.hpp index 56fe8739d..826e86756 100644 --- a/tools/include/stream_model.hpp +++ b/tools/include/stream_model.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_STREAM_MODEL_HPP #define MIGRAPHX_GUARD_STREAM_MODEL_HPP diff --git a/tools/include/target.hpp b/tools/include/target.hpp index 26b254816..4d4c898ba 100644 --- a/tools/include/target.hpp +++ b/tools/include/target.hpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_MIGRAPHLIB_TARGET_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_TARGET_HPP diff --git a/tools/install_prereqs.sh b/tools/install_prereqs.sh index 65b5f74c2..e4eecb07d 100755 --- a/tools/install_prereqs.sh +++ b/tools/install_prereqs.sh @@ -1,4 +1,28 @@ #!/bin/bash + +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### # # Build MIGraphX prerequisites for docker container diff --git a/tools/license_stamper.py b/tools/license_stamper.py new file mode 100644 index 000000000..9cc199681 --- /dev/null +++ b/tools/license_stamper.py @@ -0,0 +1,251 @@ +#!/usr/bin/env python3 +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### +import subprocess + +#Debug flag +debug = False + + +# Markdown code blob we should use to insert into notebook files +def getipynb_markdownBlockAsList(): + markdownBlock = [ + '\t{\n' + '\t\t"cell_type": "code",\n', + '\t\t"metadata": {},\n', + '\t\t"source": [\n', + '\t\t\t\"# The MIT License (MIT)\",\n', + '\t\t\t\"#\",\n', + '\t\t\t\"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\",\n', + '\t\t\t\"#\",\n', + '\t\t\t\"# Permission is hereby granted, free of charge, to any person obtaining a copy\",\n', + '\t\t\t\"# of this software and associated documentation files (the \'Software\'), to deal\",\n', + '\t\t\t\"# in the Software without restriction, including without limitation the rights\",\n', + '\t\t\t\"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\",\n', + '\t\t\t\"# copies of the Software, and to permit persons to whom the Software is\",\n', + '\t\t\t\"# furnished to do so, subject to the following conditions:\",\n', + '\t\t\t\"#\",\n', + '\t\t\t\"# The above copyright notice and this permission notice shall be included in\",\n', + '\t\t\t\"# all copies or substantial portions of the Software.\",\n', + '\t\t\t\"#\",\n', + '\t\t\t\"# THE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\",\n', + '\t\t\t\"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\",\n', + '\t\t\t\"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\",\n', + '\t\t\t\"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\",\n', + '\t\t\t\"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\",\n', + '\t\t\t\"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\",\n', + '\t\t\t\"# THE SOFTWARE.\"\n', + '\t\t]\n', + '\t},\n', + ] + return markdownBlock + + +def hasKeySequence(inputfile, key_message): + result = False + if key_message in inputfile: + result = True + + return result + + +# Header and footer of the comment block +# modify these if we want some different style +def topHeader(commentChar): + delim = None + + #Early return + if "//" in commentChar: + delim = getipynb_markdownBlockAsList() + delim.append("\n") + return ''.join(str(x) for x in delim) + + if "*" in commentChar: + delim = "/*\n" + if "#" in commentChar: + delim = "#####################################################################################\n" + return delim + + +def bottomFooter(commentChar): + delim = None + #Early return - no footer handled by + if "//" in commentChar: + return delim + + if "*" in commentChar: + delim = "*/\n" + if "#" in commentChar: + delim = "#####################################################################################\n" + return delim + + +#Simple just open and write stuff to each file with the license stamp +def openAndWriteFile(filename, message, commentChar): + add_shebang = False + #markdown file stamping for .ipynb + save_markdown_lines = [] + modify_markdown = False + + #open save old contents and append things here + if debug is True: + print("Open", filename, end='') + + #with open(filename, 'r') as contents: + # save = contents.read() + try: + file = open(filename, 'r') + except OSError as e: + if debug is True: + print(str(e) + "....Open Error: Skipping file ") + file.close() + return + else: + with file as contents: + try: + if commentChar != "//": + saved_shebang = contents.readline() + add_shebang = hasKeySequence(saved_shebang, "#!") + + # No shebang so start at beginning line + if add_shebang is False: + contents.seek(0) + + # Get the first tags in notebook before we insert license into a cell as a comment block + if commentChar == "//": + save_markdown_lines.extend(contents.readline()) # { tag + save_markdown_lines.extend( + contents.readline()) # "cells": [ tag + modify_markdown = True + + #read remaining lines in the original file + save = contents.read() + + hasAmdLic = hasKeySequence( + save, "Advanced Micro Devices, Inc. All rights reserved") + hasOtherLic = hasKeySequence(save, "Software License") + + #Check if we have a licence stamp already + if hasAmdLic or hasOtherLic is True: + if debug is True: + print("....Already Stamped: Skipping file ") + + contents.close() + return + + except UnicodeDecodeError as eu: + if debug is True: + print(str(eu) + "...Skipping binary file ") + contents.close() + return + + if debug is True: + print("...Writing header", end='') + + with open(filename, 'w') as contents: + #append the licence to the top of the file + + #Append shebang before license + if add_shebang is True: + contents.write(saved_shebang + "\n") + + #Append markdown hooks before license + if modify_markdown is True: + contents.write(''.join(str(x) for x in save_markdown_lines)) + + delim = topHeader(commentChar) + if delim is not None: + contents.write(delim) + #print(delim) + + if modify_markdown is False: + for line in message: + if line != '': + contents.write(commentChar + " " + line + "\n") + else: + contents.write(commentChar + "\n") + + delim = bottomFooter(commentChar) + if delim is not None: + contents.write(delim) + + #write remaining contents + contents.write(save) + if debug is True: + print("...done") + + +# Get the file type based on what we care about to tag with our licence +# file. Otherwise return None for the delimiter and skip the file + + +def getDelimiter(filename): + + delimiterDict = { + ".cpp": "*", + ".hpp": "*", + ".h": "*", + ".ipynb": "//", + ".py": "#", + ".txt": "#", + ".bsh": "#", + ".sh": "#" + } + listOfKeys = delimiterDict.keys() + delimiter = None + + for extension in listOfKeys: + if extension in filename: + delimiter = delimiterDict[extension] + break + + return delimiter + + +def main(): + + message = open('LICENSE').read() + + #Get a list of all the files in our git repo + #bashCommand = "git ls-files --exclude-standard" + #print (bashCommand.split()) + proc = subprocess.run("git ls-files --exclude-standard", + shell=True, + stdout=subprocess.PIPE) + fileList = proc.stdout.decode().split('\n') + message = message.split('\n') + + if debug is True: + print("Target file list:\n" + str(fileList)) + print("Output Message:\n" + str(message)) + + for file in fileList: + #print(file) + commentDelim = getDelimiter(file) + if commentDelim is not None: + openAndWriteFile(file, message, commentDelim) + + +if __name__ == "__main__": + main() diff --git a/tools/roctx.py b/tools/roctx.py index e7e0d9f7d..7ed3c55da 100755 --- a/tools/roctx.py +++ b/tools/roctx.py @@ -1,5 +1,29 @@ #!/usr/bin/env python3 +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### + import json import argparse import os diff --git a/tools/te.py b/tools/te.py index f06612baa..a3285f8e7 100755 --- a/tools/te.py +++ b/tools/te.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import string, sys, re trivial = ['std::size_t', 'instruction_ref'] diff --git a/tools/test_runner.py b/tools/test_runner.py index 6170a6f11..8fb16fc17 100644 --- a/tools/test_runner.py +++ b/tools/test_runner.py @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### import os, sys import numpy as np import argparse -- GitLab From e95b875fb87872a7476c3d57c8b6a6922c128d23 Mon Sep 17 00:00:00 2001 From: Ted Themistokleous <107195283+TedThemistokleous@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:05:33 -0400 Subject: [PATCH 08/32] Fix code block issue with .ipynb files. (#1263) Regenerate notebook header for licensing --- .../export_frozen_graph_tf2/example.ipynb | 45 ++++++++--------- .../nlp/python_bert_squad/BERT-Squad.ipynb | 45 ++++++++--------- .../python_3dunet/3dunet_inference.ipynb | 45 ++++++++--------- .../vision/python_nfnet/nfnet_inference.ipynb | 45 ++++++++--------- .../python_resnet50/resnet50_inference.ipynb | 45 ++++++++--------- .../Run_Super_Resolution_Model.ipynb | 45 ++++++++--------- .../vision/python_unet/unet_inference.ipynb | 45 ++++++++--------- .../python_yolov4/yolov4_inference.ipynb | 45 ++++++++--------- tools/license_stamper.py | 48 +++++++++---------- 9 files changed, 206 insertions(+), 202 deletions(-) diff --git a/examples/migraphx/export_frozen_graph_tf2/example.ipynb b/examples/migraphx/export_frozen_graph_tf2/example.ipynb index 274065593..a0e89d0b6 100755 --- a/examples/migraphx/export_frozen_graph_tf2/example.ipynb +++ b/examples/migraphx/export_frozen_graph_tf2/example.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "metadata": {}, diff --git a/examples/nlp/python_bert_squad/BERT-Squad.ipynb b/examples/nlp/python_bert_squad/BERT-Squad.ipynb index 36f298b4d..c5e4bed8c 100755 --- a/examples/nlp/python_bert_squad/BERT-Squad.ipynb +++ b/examples/nlp/python_bert_squad/BERT-Squad.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "metadata": {}, diff --git a/examples/vision/python_3dunet/3dunet_inference.ipynb b/examples/vision/python_3dunet/3dunet_inference.ipynb index b343cc14c..bd2499b22 100755 --- a/examples/vision/python_3dunet/3dunet_inference.ipynb +++ b/examples/vision/python_3dunet/3dunet_inference.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "id": "fee8cfa5", diff --git a/examples/vision/python_nfnet/nfnet_inference.ipynb b/examples/vision/python_nfnet/nfnet_inference.ipynb index 20e450608..dd70d8071 100755 --- a/examples/vision/python_nfnet/nfnet_inference.ipynb +++ b/examples/vision/python_nfnet/nfnet_inference.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "metadata": {}, diff --git a/examples/vision/python_resnet50/resnet50_inference.ipynb b/examples/vision/python_resnet50/resnet50_inference.ipynb index a85ac00a5..5cc87522d 100755 --- a/examples/vision/python_resnet50/resnet50_inference.ipynb +++ b/examples/vision/python_resnet50/resnet50_inference.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "metadata": {}, diff --git a/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb b/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb index a9f035de6..c6f560892 100755 --- a/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb +++ b/examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "metadata": {}, diff --git a/examples/vision/python_unet/unet_inference.ipynb b/examples/vision/python_unet/unet_inference.ipynb index 95bd29721..5be41389b 100755 --- a/examples/vision/python_unet/unet_inference.ipynb +++ b/examples/vision/python_unet/unet_inference.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "id": "cd7a3990", diff --git a/examples/vision/python_yolov4/yolov4_inference.ipynb b/examples/vision/python_yolov4/yolov4_inference.ipynb index 5c88f14d1..207e10478 100644 --- a/examples/vision/python_yolov4/yolov4_inference.ipynb +++ b/examples/vision/python_yolov4/yolov4_inference.ipynb @@ -2,32 +2,33 @@ "cells": [ { "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ - "# The MIT License (MIT)", - "#", - "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.", - "#", - "# 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." + "# The MIT License (MIT)\n", + "#\n", + "# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\n", + "#\n", + "# Permission is hereby granted, free of charge, to any person obtaining a copy\n", + "# of this software and associated documentation files (the 'Software'), to deal\n", + "# in the Software without restriction, including without limitation the rights\n", + "# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n", + "# copies of the Software, and to permit persons to whom the Software is\n", + "# furnished to do so, subject to the following conditions:\n", + "#\n", + "# The above copyright notice and this permission notice shall be included in\n", + "# all copies or substantial portions of the Software.\n", + "#\n", + "# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n", + "# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n", + "# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n", + "# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n", + "# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n", + "# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n", + "# THE SOFTWARE.\n" ] }, - { "cell_type": "markdown", "metadata": {}, diff --git a/tools/license_stamper.py b/tools/license_stamper.py index 9cc199681..52ae289c3 100644 --- a/tools/license_stamper.py +++ b/tools/license_stamper.py @@ -32,32 +32,28 @@ debug = False def getipynb_markdownBlockAsList(): markdownBlock = [ '\t{\n' - '\t\t"cell_type": "code",\n', - '\t\t"metadata": {},\n', - '\t\t"source": [\n', - '\t\t\t\"# The MIT License (MIT)\",\n', - '\t\t\t\"#\",\n', - '\t\t\t\"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\",\n', - '\t\t\t\"#\",\n', - '\t\t\t\"# Permission is hereby granted, free of charge, to any person obtaining a copy\",\n', - '\t\t\t\"# of this software and associated documentation files (the \'Software\'), to deal\",\n', - '\t\t\t\"# in the Software without restriction, including without limitation the rights\",\n', - '\t\t\t\"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\",\n', - '\t\t\t\"# copies of the Software, and to permit persons to whom the Software is\",\n', - '\t\t\t\"# furnished to do so, subject to the following conditions:\",\n', - '\t\t\t\"#\",\n', - '\t\t\t\"# The above copyright notice and this permission notice shall be included in\",\n', - '\t\t\t\"# all copies or substantial portions of the Software.\",\n', - '\t\t\t\"#\",\n', - '\t\t\t\"# THE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\",\n', - '\t\t\t\"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\",\n', - '\t\t\t\"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\",\n', - '\t\t\t\"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\",\n', - '\t\t\t\"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\",\n', - '\t\t\t\"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\",\n', - '\t\t\t\"# THE SOFTWARE.\"\n', - '\t\t]\n', - '\t},\n', + '\t\t"cell_type": "code",\n', '\t\t"execution_count": null,\n', + '\t\t"metadata": {},\n', '\t\t"outputs": [],\n', '\t\t"source": [\n', + '\t\t\t\"# The MIT License (MIT)\\n\",\n', '\t\t\t\"#\\n\",\n', + '\t\t\t\"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.\\n\",\n', + '\t\t\t\"#\\n\",\n', + '\t\t\t\"# Permission is hereby granted, free of charge, to any person obtaining a copy\\n\",\n', + '\t\t\t\"# of this software and associated documentation files (the \'Software\'), to deal\\n\",\n', + '\t\t\t\"# in the Software without restriction, including without limitation the rights\\n\",\n', + '\t\t\t\"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\n\",\n', + '\t\t\t\"# copies of the Software, and to permit persons to whom the Software is\\n\",\n', + '\t\t\t\"# furnished to do so, subject to the following conditions:\\n\",\n', + '\t\t\t\"#\\n\",\n', + '\t\t\t\"# The above copyright notice and this permission notice shall be included in\\n\",\n', + '\t\t\t\"# all copies or substantial portions of the Software.\\n\",\n', + '\t\t\t\"#\\n\",\n', + '\t\t\t\"# THE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\n\",\n', + '\t\t\t\"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\n\",\n', + '\t\t\t\"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\n\",\n', + '\t\t\t\"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\n\",\n', + '\t\t\t\"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\n\",\n', + '\t\t\t\"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\\n\",\n', + '\t\t\t\"# THE SOFTWARE.\\n\"\n', '\t\t]\n', '\t},' ] return markdownBlock -- GitLab From f5760e21158dd2a4c2113973fc9ce6654ef7dcd5 Mon Sep 17 00:00:00 2001 From: kahmed10 <15948690+kahmed10@users.noreply.github.com> Date: Thu, 23 Jun 2022 10:36:14 -0500 Subject: [PATCH 09/32] remove eliminate_workspace pass (#1254) * remove eliminate workspace * remove sync device and other tags --- examples/migraphx/migraphx_driver/README.md | 1 - src/targets/gpu/CMakeLists.txt | 1 - src/targets/gpu/eliminate_workspace.cpp | 67 ------------------- src/targets/gpu/hip.cpp | 1 - .../migraphx/gpu/eliminate_workspace.hpp | 46 ------------- src/targets/gpu/include/migraphx/gpu/hip.hpp | 37 +--------- src/targets/gpu/target.cpp | 2 - 7 files changed, 1 insertion(+), 154 deletions(-) delete mode 100644 src/targets/gpu/eliminate_workspace.cpp delete mode 100644 src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp diff --git a/examples/migraphx/migraphx_driver/README.md b/examples/migraphx/migraphx_driver/README.md index b81926bbd..ec8ec7b89 100755 --- a/examples/migraphx/migraphx_driver/README.md +++ b/examples/migraphx/migraphx_driver/README.md @@ -200,7 +200,6 @@ hip::copy_from_gpu hip::copy_to_gpu hip::hip_allocate_memory hip::hip_copy_literal -hip::sync_device identity im2col leaky_relu diff --git a/src/targets/gpu/CMakeLists.txt b/src/targets/gpu/CMakeLists.txt index 524a78a9a..33f5625f8 100755 --- a/src/targets/gpu/CMakeLists.txt +++ b/src/targets/gpu/CMakeLists.txt @@ -163,7 +163,6 @@ add_library(migraphx_gpu convolution.cpp deconvolution.cpp device_name.cpp - eliminate_workspace.cpp elu.cpp fuse_ops.cpp gather.cpp diff --git a/src/targets/gpu/eliminate_workspace.cpp b/src/targets/gpu/eliminate_workspace.cpp deleted file mode 100644 index abb53a995..000000000 --- a/src/targets/gpu/eliminate_workspace.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. - * - * 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. - */ -#include -#include -#include -#include -#include -#include -#include -#include - -namespace migraphx { -inline namespace MIGRAPHX_INLINE_NS { -namespace gpu { - -void eliminate_workspace::apply(module& m) const -{ - std::size_t n = 0; - std::vector allocs; - for(auto ins : iterator_for(m)) - { - if(ins->outputs().size() != 1) - continue; - if(ins->name() != "hip::allocate") - continue; - auto&& a = any_cast(ins->get_operator()); - if(a.tag == "workspace") - { - n = std::max(n, ins->get_shape().bytes()); - allocs.push_back(ins); - } - } - if(n > 0) - { - auto ws = m.add_parameter("workspace", shape{shape::int8_type, {n}}); - for(auto&& a : allocs) - { - m.replace_instruction(a, ws); - m.remove_instruction(a); - } - } -} - -} // namespace gpu -} // namespace MIGRAPHX_INLINE_NS -} // namespace migraphx diff --git a/src/targets/gpu/hip.cpp b/src/targets/gpu/hip.cpp index 2685b0893..766852392 100644 --- a/src/targets/gpu/hip.cpp +++ b/src/targets/gpu/hip.cpp @@ -37,7 +37,6 @@ inline namespace MIGRAPHX_INLINE_NS { namespace gpu { MIGRAPHX_REGISTER_OP(hip_allocate) -MIGRAPHX_REGISTER_OP(hip_sync_device) MIGRAPHX_REGISTER_OP(hip_sync_stream) MIGRAPHX_REGISTER_OP(hip_copy_to_gpu) MIGRAPHX_REGISTER_OP(hip_copy_from_gpu) diff --git a/src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp b/src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp deleted file mode 100644 index b941a1a2f..000000000 --- a/src/targets/gpu/include/migraphx/gpu/eliminate_workspace.hpp +++ /dev/null @@ -1,46 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. - * - * 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 MIGRAPHX_GUARD_RTGLIB_ELIMINATE_WORKSPACE_HPP -#define MIGRAPHX_GUARD_RTGLIB_ELIMINATE_WORKSPACE_HPP - -#include -#include -#include - -namespace migraphx { -inline namespace MIGRAPHX_INLINE_NS { -struct module; - -namespace gpu { - -struct eliminate_workspace -{ - std::string name() const { return "eliminate_workspace"; } - void apply(module& m) const; -}; -} // namespace gpu -} // namespace MIGRAPHX_INLINE_NS -} // namespace migraphx - -#endif diff --git a/src/targets/gpu/include/migraphx/gpu/hip.hpp b/src/targets/gpu/include/migraphx/gpu/hip.hpp index 4a83632ee..70e50c200 100644 --- a/src/targets/gpu/include/migraphx/gpu/hip.hpp +++ b/src/targets/gpu/include/migraphx/gpu/hip.hpp @@ -59,12 +59,11 @@ argument get_preallocation(context& ctx, const std::string& id); struct hip_allocate { shape s; - std::string tag{}; template static auto reflect(Self& self, F f) { - return pack(f(self.s, "shape"), f(self.tag, "tag")); + return pack(f(self.s, "shape")); } std::string name() const { return "hip::allocate"; } @@ -79,42 +78,8 @@ struct hip_allocate } }; -struct hip_sync_device -{ - std::string tag{}; - - template - static auto reflect(Self& self, F f) - { - return pack(f(self.tag, "tag")); - } - - std::string name() const { return "hip::sync_device"; } - shape compute_shape(const std::vector& inputs) const - { - if(inputs.empty()) - return {}; - return inputs.front(); - } - - argument compute(context&, const shape&, const std::vector& args) const - { - gpu_sync(); - if(args.empty()) - return {}; - return args.front(); - } -}; - struct hip_sync_stream { - std::string tag{}; - - template - static auto reflect(Self& self, F f) - { - return pack(f(self.tag, "tag")); - } std::string name() const { return "hip::sync_stream"; } shape compute_shape(const std::vector& inputs) const diff --git a/src/targets/gpu/target.cpp b/src/targets/gpu/target.cpp index e82da8226..cdef5c7cf 100644 --- a/src/targets/gpu/target.cpp +++ b/src/targets/gpu/target.cpp @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include @@ -151,7 +150,6 @@ std::vector target::get_passes(migraphx::context& gctx, const compile_opti sync_device{}, preallocate_param{"scratch", gpu_allocation_model{}}, dead_code_elimination{}, - eliminate_workspace{}, eliminate_allocation{"hip::allocate"}, check_context{}, normalize_ops{}, -- GitLab From edc7be5c7c25555f6a0b65b4db310f70a16c7cce Mon Sep 17 00:00:00 2001 From: Umang Yadav <29876643+umangyadav@users.noreply.github.com> Date: Fri, 24 Jun 2022 13:05:42 -0400 Subject: [PATCH 10/32] Add compute_method for the experimental custom op (#1194) Adds compute_method for the experimental custom ops. Adds a test for the same using HIP APIs. Depends on #1183 Solves #1101 --- src/api/api.cpp | 53 +++++++++++++++- src/api/include/migraphx/migraphx.h | 14 +++++ src/api/include/migraphx/migraphx.hpp | 28 +++++++-- src/api/migraphx.py | 9 +++ test/api/CMakeLists.txt | 4 +- test/api/test_custom_op.cpp | 54 +++++++++++++--- test/api/test_custom_op_gpu.cpp | 88 +++++++++++++++++++++++++++ test/api/test_gpu.cpp | 21 ++----- test/api/test_op_construct.cpp | 23 ------- tools/api/api.cpp | 12 +++- 10 files changed, 252 insertions(+), 54 deletions(-) create mode 100644 test/api/test_custom_op_gpu.cpp diff --git a/src/api/api.cpp b/src/api/api.cpp index 71d298463..3981445eb 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -236,6 +236,11 @@ void print_program(const program& p) { std::cout << p << std::endl; } void print_module(const module& m) { std::cout << m << std::endl; } +migraphx::instruction_ref add_allocation(module& m, const migraphx::shape& s) +{ + return m.add_instruction(migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}}), {}); +} + struct experimental_custom_op { std::string name; @@ -260,7 +265,12 @@ struct custom_operation return op.compute_shape(std::move(inputs)); } - argument compute(const std::vector&) const { MIGRAPHX_THROW("Not computable"); } + // TODO: Compute method with module_args + argument + compute(migraphx::context ctx, migraphx::shape output_shape, std::vector inputs) const + { + return op.compute(std::move(ctx), std::move(output_shape), std::move(inputs)); + } }; template @@ -577,6 +587,24 @@ struct migraphx_experimental_custom_op manage_generic_ptr object_ptr = nullptr; migraphx::experimental_custom_op xobject; + migraphx_experimental_custom_op_compute compute_f = nullptr; + migraphx::argument compute(migraphx::context ctx, + migraphx::shape output, + std::vector inputs) const + { + std::remove_pointer_t out; + if(compute_f == nullptr) + throw std::runtime_error("compute function is missing."); + auto api_error_result = compute_f(&out, + object_ptr.data, + object_cast(&(ctx)), + object_cast(&(output)), + object_cast(&(inputs))); + if(api_error_result != migraphx_status_success) + throw std::runtime_error("Error in compute."); + return (&out)->object; + } + migraphx_experimental_custom_op_compute_shape compute_shape_f = nullptr; migraphx::shape compute_shape(std::vector inputs) const { @@ -1141,6 +1169,21 @@ extern "C" migraphx_status migraphx_module_add_return(migraphx_instruction_t* ou return api_error_result; } +extern "C" migraphx_status migraphx_module_add_allocation(migraphx_instruction_t* out, + migraphx_module_t module, + const_migraphx_shape_t s) +{ + auto api_error_result = migraphx::try_([&] { + if(module == nullptr) + MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter module: Null pointer"); + if(s == nullptr) + MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter s: Null pointer"); + *out = allocate( + migraphx::add_allocation((module->object), (s->object))); + }); + return api_error_result; +} + extern "C" migraphx_status migraphx_program_destroy(migraphx_program_t program) { auto api_error_result = migraphx::try_([&] { destroy((program)); }); @@ -1772,6 +1815,14 @@ migraphx_experimental_custom_op_create(migraphx_experimental_custom_op_t* experi return api_error_result; } +extern "C" migraphx_status +migraphx_experimental_custom_op_set_compute(migraphx_experimental_custom_op_t obj, + migraphx_experimental_custom_op_compute input) +{ + auto api_error_result = migraphx::try_([&] { (obj)->compute_f = (input); }); + return api_error_result; +} + extern "C" migraphx_status migraphx_experimental_custom_op_set_compute_shape( migraphx_experimental_custom_op_t obj, migraphx_experimental_custom_op_compute_shape input) { diff --git a/src/api/include/migraphx/migraphx.h b/src/api/include/migraphx/migraphx.h index 77a4e3df6..34f2f92d5 100644 --- a/src/api/include/migraphx/migraphx.h +++ b/src/api/include/migraphx/migraphx.h @@ -129,6 +129,12 @@ typedef const struct migraphx_context* const_migraphx_context_t; typedef struct migraphx_experimental_custom_op* migraphx_experimental_custom_op_t; typedef const struct migraphx_experimental_custom_op* const_migraphx_experimental_custom_op_t; +typedef migraphx_status (*migraphx_experimental_custom_op_compute)(migraphx_argument_t out, + void* obj, + migraphx_context_t ctx, + migraphx_shape_t output, + migraphx_arguments_t inputs); + typedef migraphx_status (*migraphx_experimental_custom_op_compute_shape)(migraphx_shape_t out, void* obj, migraphx_shapes_t inputs); @@ -295,6 +301,10 @@ migraphx_status migraphx_module_add_return(migraphx_instruction_t* out, migraphx_module_t module, migraphx_instructions_t args); +migraphx_status migraphx_module_add_allocation(migraphx_instruction_t* out, + migraphx_module_t module, + const_migraphx_shape_t s); + migraphx_status migraphx_program_destroy(migraphx_program_t program); migraphx_status migraphx_program_assign_to(migraphx_program_t output, @@ -477,6 +487,10 @@ migraphx_experimental_custom_op_create(migraphx_experimental_custom_op_t* experi migraphx_experimental_custom_op_delete d, const char* name); +migraphx_status +migraphx_experimental_custom_op_set_compute(migraphx_experimental_custom_op_t obj, + migraphx_experimental_custom_op_compute input); + migraphx_status migraphx_experimental_custom_op_set_compute_shape( migraphx_experimental_custom_op_t obj, migraphx_experimental_custom_op_compute_shape input); diff --git a/src/api/include/migraphx/migraphx.hpp b/src/api/include/migraphx/migraphx.hpp index 848f1e192..cda9b082d 100644 --- a/src/api/include/migraphx/migraphx.hpp +++ b/src/api/include/migraphx/migraphx.hpp @@ -401,11 +401,14 @@ struct interface_base : Base return x; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" template auto auto_convert_param(rank<1>, T x) -> decltype(as_handle{x}) { return as_handle{x}; } +#pragma GCC diagnostic pop template auto auto_convert_param(rank<2>, T x) -> decltype(as_handle{x, borrow{}}) @@ -565,6 +568,14 @@ struct argument : MIGRAPHX_CONST_HANDLE_BASE(argument) return pout; } + template + std::vector as_vector() const + { + size_t vector_len = this->get_shape().bytes() / sizeof(T); + T* buffer_ptr = reinterpret_cast(this->data()); + return {buffer_ptr, buffer_ptr + vector_len}; + } + /// Generate an argument using random data static argument generate(shape ps, size_t pseed = 0) { @@ -802,13 +813,20 @@ struct module return instruction(ret_ins, own{}); } + instruction add_allocation(const migraphx::shape& s) + { + migraphx_instruction_t ret_ins; + call(&migraphx_module_add_allocation, &ret_ins, mm.get(), s.get_handle_ptr()); + return instruction(ret_ins, own{}); + } + migraphx_module_t get_handle_ptr() const { return mm.get(); } private: std::shared_ptr mm; }; -struct context +struct context : handle_lookup { context(migraphx_context* p, borrow) : ctx(std::shared_ptr(), p) {} @@ -1177,9 +1195,10 @@ quantize_int8(const program& prog, const target& ptarget, const quantize_int8_op struct experimental_custom_op_base { - virtual std::string name() const = 0; - virtual shape compute_shape(shapes inputs) const = 0; - virtual ~experimental_custom_op_base() = default; + virtual std::string name() const = 0; + virtual argument compute(context ctx, shape output, arguments inputs) const = 0; + virtual shape compute_shape(shapes inputs) const = 0; + virtual ~experimental_custom_op_base() = default; }; struct experimental_custom_op : interface_base @@ -1189,6 +1208,7 @@ struct experimental_custom_op : interface_basemake_interface(&migraphx_experimental_custom_op_create, obj, obj.name().c_str()); MIGRAPHX_INTERFACE_LIFT(T, experimental_custom_op, compute_shape); + MIGRAPHX_INTERFACE_LIFT(T, experimental_custom_op, compute); } void register_op() { call(&migraphx_experimental_custom_op_register, this->get_handle_ptr()); } diff --git a/src/api/migraphx.py b/src/api/migraphx.py index 36c7084f2..142aa234e 100755 --- a/src/api/migraphx.py +++ b/src/api/migraphx.py @@ -244,6 +244,10 @@ def module(h): h.method('add_return', api.params(args='std::vector'), returns='migraphx::instruction_ref') + h.method('add_allocation', + api.params(s='const migraphx::shape&'), + invoke='migraphx::add_allocation($@)', + returns='migraphx::instruction_ref') @auto_handle() @@ -436,6 +440,11 @@ def context(h): 'migraphx::experimental_custom_op') def experimental_custom_op(h): h.constructor('create', api.params(name='const char*')) + h.virtual('compute', + api.params(ctx='migraphx::context', + output='migraphx::shape', + inputs='std::vector'), + returns='migraphx::argument') h.virtual('compute_shape', api.params(inputs='std::vector'), returns='migraphx::shape') diff --git a/test/api/CMakeLists.txt b/test/api/CMakeLists.txt index 438f38d18..89c0f29b0 100644 --- a/test/api/CMakeLists.txt +++ b/test/api/CMakeLists.txt @@ -34,16 +34,18 @@ endfunction() add_api_test(array_base test_array_base.cpp ${TEST_ONNX_DIR}) add_api_test(assign test_assign.cpp ${TEST_ONNX_DIR}) -add_api_test(custom_op test_custom_op.cpp ${TEST_ONNX_DIR}) add_api_test(compile_options test_compile_options.cpp ${TEST_ONNX_DIR}) add_api_test(lookup test_lookup.cpp ${TEST_ONNX_DIR}) add_api_test(module_construct test_module_construct.cpp ${TEST_ONNX_DIR}) add_api_test(ref test_cpu.cpp ${TEST_ONNX_DIR}) add_api_test(save_load test_save_load.cpp ${TEST_ONNX_DIR}) add_api_test(op test_op_construct.cpp ${TEST_ONNX_DIR}) +add_api_test(custom_op test_custom_op.cpp ${TEST_ONNX_DIR}) add_api_test(tf_parser test_tf_parser.cpp ${TEST_TF_DIR}) # GPU-based tests if(MIGRAPHX_ENABLE_GPU) add_api_test(gpu test_gpu.cpp ${TEST_ONNX_DIR}) target_link_libraries(test_api_gpu migraphx_gpu) +add_api_test(custom_op_gpu test_custom_op_gpu.cpp ${TEST_ONNX_DIR}) +target_link_libraries(test_api_custom_op_gpu migraphx_gpu) endif() diff --git a/test/api/test_custom_op.cpp b/test/api/test_custom_op.cpp index d76fcabfb..e2beb04d9 100644 --- a/test/api/test_custom_op.cpp +++ b/test/api/test_custom_op.cpp @@ -21,26 +21,66 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include +#include #include #include #include "test.hpp" -struct simple_custom_op final : migraphx::experimental_custom_op_base +struct sigmoid_custom_op final : migraphx::experimental_custom_op_base { - virtual std::string name() const override { return "simple_custom_op"; } + virtual std::string name() const override { return "sigmoid_custom_op"; } + virtual migraphx::argument + compute(migraphx::context, migraphx::shape, migraphx::arguments inputs) const override + { + auto* output_ptr = reinterpret_cast(inputs[1].data()); + auto input_vec = inputs[0].as_vector(); + std::transform(input_vec.begin(), input_vec.end(), output_ptr, [](auto x) { + return 1.f / (1.f + std::exp(-x)); + }); + return inputs[1]; + } + virtual migraphx::shape compute_shape(migraphx::shapes inputs) const override { - return inputs.front(); + CHECK(inputs.size() == 2); + CHECK(inputs[0].lengths().size() == 1); + CHECK(inputs[0].type() == migraphx_shape_float_type); + CHECK(bool{inputs[0] == inputs[1]}); + return inputs.back(); } }; TEST_CASE(register_custom_op) { - simple_custom_op simple_op; - migraphx::register_experimental_custom_op(simple_op); + sigmoid_custom_op sigmoid_op; + migraphx::register_experimental_custom_op(sigmoid_op); + auto op = migraphx::operation("sigmoid_custom_op"); + EXPECT(op.name() == "sigmoid_custom_op"); +} - auto op = migraphx::operation("simple_custom_op"); - EXPECT(op.name() == "simple_custom_op"); +TEST_CASE(run_sigmoid_custom_op) +{ + migraphx::program p; + migraphx::shape s{migraphx_shape_float_type, {12}}; + migraphx::module m = p.get_main_module(); + auto x = m.add_parameter("x", s); + auto alloc = m.add_allocation(s); + auto custom_kernel = m.add_instruction(migraphx::operation("sigmoid_custom_op"), {x, alloc}); + p.compile(migraphx::target("ref")); + // run program + migraphx::program_parameters pp; + auto param_shapes = p.get_parameter_shapes(); + migraphx::argument input_arg = migraphx::argument::generate(param_shapes["x"]); + pp.add("x", input_arg); + auto results = p.eval(pp); + auto result = results[0]; + auto expected_result = input_arg.as_vector(); + std::transform(expected_result.begin(), + expected_result.end(), + expected_result.begin(), + [](auto y) { return 1.f / (1.f + std::exp(-y)); }); + EXPECT(bool{result == migraphx::argument(s, expected_result.data())}); } int main(int argc, const char* argv[]) { test::run(argc, argv); } diff --git a/test/api/test_custom_op_gpu.cpp b/test/api/test_custom_op_gpu.cpp new file mode 100644 index 000000000..360e12095 --- /dev/null +++ b/test/api/test_custom_op_gpu.cpp @@ -0,0 +1,88 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include +#include "test.hpp" + +#define MIGRAPHX_HIP_ASSERT(x) (EXPECT(x == hipSuccess)) +struct simple_custom_op final : migraphx::experimental_custom_op_base +{ + virtual std::string name() const override { return "simple_custom_op"; } + virtual migraphx::argument + compute(migraphx::context ctx, migraphx::shape, migraphx::arguments inputs) const override + { + // sets first half size_bytes of the input 0, and rest of the half bytes are copied. + int* h_output = nullptr; + auto* d_output = reinterpret_cast(inputs[0].data()); + auto input_bytes = inputs[0].get_shape().bytes(); + auto* output_ptr = inputs[1].data(); + auto copy_bytes = input_bytes / 2; + MIGRAPHX_HIP_ASSERT(hipSetDevice(0)); + MIGRAPHX_HIP_ASSERT(hipHostMalloc(&h_output, input_bytes)); + MIGRAPHX_HIP_ASSERT(hipMemcpyAsync( + h_output, d_output, input_bytes, hipMemcpyDeviceToHost, ctx.get_queue())); + MIGRAPHX_HIP_ASSERT(hipDeviceSynchronize()); + MIGRAPHX_HIP_ASSERT(hipMemset(h_output, 0, copy_bytes)); + MIGRAPHX_HIP_ASSERT(hipDeviceSynchronize()); + MIGRAPHX_HIP_ASSERT(hipMemcpy(output_ptr, h_output, input_bytes, hipMemcpyHostToDevice)); + MIGRAPHX_HIP_ASSERT(hipDeviceSynchronize()); + MIGRAPHX_HIP_ASSERT(hipHostFree(h_output)); + return inputs[1]; + } + + virtual migraphx::shape compute_shape(migraphx::shapes inputs) const override + { + return inputs.back(); + } +}; + +TEST_CASE(run_simple_custom_op) +{ + simple_custom_op simple_op; + migraphx::register_experimental_custom_op(simple_op); + migraphx::program p; + migraphx::shape s{migraphx_shape_int32_type, {4, 3}}; + migraphx::module m = p.get_main_module(); + auto x = m.add_parameter("x", s); + auto neg = m.add_instruction(migraphx::operation("neg"), x); + auto alloc = m.add_allocation(s); + auto custom_kernel = m.add_instruction(migraphx::operation("simple_custom_op"), {neg, alloc}); + auto relu = m.add_instruction(migraphx::operation("relu"), custom_kernel); + m.add_return({relu}); + migraphx::compile_options options; + options.set_offload_copy(); + p.compile(migraphx::target("gpu"), options); + migraphx::program_parameters pp; + std::vector x_data(12, -3); + pp.add("x", migraphx::argument(s, x_data.data())); + auto results = p.eval(pp); + auto result = results[0]; + auto result_vec = result.as_vector(); + std::vector expected_result(12, 0); + std::fill(expected_result.begin() + 6, expected_result.end(), 3); + EXPECT(bool{result == migraphx::argument(s, expected_result.data())}); +} + +int main(int argc, const char* argv[]) { test::run(argc, argv); } diff --git a/test/api/test_gpu.cpp b/test/api/test_gpu.cpp index 1ff48f01b..1f4ce404d 100644 --- a/test/api/test_gpu.cpp +++ b/test/api/test_gpu.cpp @@ -92,13 +92,7 @@ TEST_CASE(if_pl_test) auto outputs = p.eval(pp); auto output = outputs[0]; - auto lens = output.get_shape().lengths(); - auto elem_num = - std::accumulate(lens.begin(), lens.end(), 1, std::multiplies()); - float* data_ptr = reinterpret_cast(output.data()); - std::vector ret(data_ptr, data_ptr + elem_num); - - return ret; + return output.as_vector(); }; // then branch @@ -141,18 +135,11 @@ TEST_CASE(loop_test) auto outputs = p.eval(pp); auto output = outputs[0]; - auto lens = output.get_shape().lengths(); - auto elem_num = - std::accumulate(lens.begin(), lens.end(), 1, std::multiplies()); - float* data_ptr = reinterpret_cast(output.data()); std::vector> ret; - ret.push_back({data_ptr, data_ptr + elem_num}); + ret.push_back(output.as_vector()); - output = outputs[1]; - lens = output.get_shape().lengths(); - elem_num = std::accumulate(lens.begin(), lens.end(), 1, std::multiplies()); - data_ptr = reinterpret_cast(output.data()); - ret.push_back({data_ptr, data_ptr + elem_num}); + output = outputs[1]; + ret.push_back(output.as_vector()); return ret; }; diff --git a/test/api/test_op_construct.cpp b/test/api/test_op_construct.cpp index ee7c71bad..80ee5df4b 100644 --- a/test/api/test_op_construct.cpp +++ b/test/api/test_op_construct.cpp @@ -1,26 +1,3 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. - * - * 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. - */ #include #include #include "test.hpp" diff --git a/tools/api/api.cpp b/tools/api/api.cpp index 2a9f83b4f..03aafae8f 100644 --- a/tools/api/api.cpp +++ b/tools/api/api.cpp @@ -236,6 +236,11 @@ void print_program(const program& p) { std::cout << p << std::endl; } void print_module(const module& m) { std::cout << m << std::endl; } +migraphx::instruction_ref add_allocation(module& m, const migraphx::shape& s) +{ + return m.add_instruction(migraphx::make_op("allocate", {{"shape", migraphx::to_value(s)}}), {}); +} + struct experimental_custom_op { std::string name; @@ -260,7 +265,12 @@ struct custom_operation return op.compute_shape(std::move(inputs)); } - argument compute(const std::vector&) const { MIGRAPHX_THROW("Not computable"); } + // TODO: Compute method with module_args + argument + compute(migraphx::context ctx, migraphx::shape output_shape, std::vector inputs) const + { + return op.compute(std::move(ctx), std::move(output_shape), std::move(inputs)); + } }; template -- GitLab From 8c35fa9417e92cf7b45c1de835407f0f40df6229 Mon Sep 17 00:00:00 2001 From: Ted Themistokleous <107195283+TedThemistokleous@users.noreply.github.com> Date: Fri, 24 Jun 2022 16:05:10 -0400 Subject: [PATCH 11/32] Adding in check_stamped.py to tools/ (#1255) Used to determine what files contain a license and are stamped. If not we exit and return an error code that can be later ingested by another script, as well as a list of the outstanding files in questions. Currently baked in the list of files we should support or not support with licenses in them a well as some stuff to quickly ignore --- .github/workflows/ci.yaml | 14 +++ cmake/CheckCXXLinkerFlag.cmake | 23 +++++ cmake/Embed.cmake | 23 +++++ cmake/EnableCompilerWarnings.cmake | 28 +++--- cmake/PythonModules.cmake | 23 +++++ cmake/RegisterOp.cmake | 23 +++++ cmake/TargetFlags.cmake | 23 +++++ install_deps.cmake | 24 +++++ test/api/test_op_construct.cpp | 23 +++++ tools/check_stamped.py | 144 +++++++++++++++++++++++++++++ tools/license_stamper.py | 3 +- 11 files changed, 335 insertions(+), 16 deletions(-) create mode 100644 tools/check_stamped.py diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dea1f3039..5034ac7da 100755 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -160,6 +160,20 @@ jobs: mypy --version mypy tools/api.py + licensing: + runs-on: ubuntu-18.04 + + steps: + - name: Free space + run: sudo rm -rf /usr/local/android /usr/share/dotnet /usr/local/share/boost /opt/ghc /usr/local/share/chrom* /usr/share/swift /usr/local/julia* /usr/local/lib/android + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: run License Check + run: python3 tools/check_stamped.py + linux: runs-on: ${{ matrix.os }} diff --git a/cmake/CheckCXXLinkerFlag.cmake b/cmake/CheckCXXLinkerFlag.cmake index 9efdcb8cd..2a107cc31 100644 --- a/cmake/CheckCXXLinkerFlag.cmake +++ b/cmake/CheckCXXLinkerFlag.cmake @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### set(check_cxx_linker_flag_patterns FAIL_REGEX "[Uu]nrecogni[sz]ed .*option" # GNU, NAG diff --git a/cmake/Embed.cmake b/cmake/Embed.cmake index f3b133dcb..295e87e52 100755 --- a/cmake/Embed.cmake +++ b/cmake/Embed.cmake @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### find_program(EMBED_LD ld) find_program(EMBED_OBJCOPY objcopy) diff --git a/cmake/EnableCompilerWarnings.cmake b/cmake/EnableCompilerWarnings.cmake index 61c0145ac..4dbd3e244 100755 --- a/cmake/EnableCompilerWarnings.cmake +++ b/cmake/EnableCompilerWarnings.cmake @@ -1,28 +1,26 @@ -################################################################################ -# -# MIT License -# -# Copyright (c) 2017 Advanced Micro Devices, Inc. -# +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# # 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 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 +# 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. -# -################################################################################ +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +##################################################################################### # - Enable warning all for gcc/clang or use /W4 for visual studio ## Strict warning level diff --git a/cmake/PythonModules.cmake b/cmake/PythonModules.cmake index 2a64801e3..0e94bd295 100755 --- a/cmake/PythonModules.cmake +++ b/cmake/PythonModules.cmake @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### if(COMMAND find_python) return() endif() diff --git a/cmake/RegisterOp.cmake b/cmake/RegisterOp.cmake index 1619b3c87..a6b2ad478 100644 --- a/cmake/RegisterOp.cmake +++ b/cmake/RegisterOp.cmake @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### function(register_op TARGET_NAME) set(options) diff --git a/cmake/TargetFlags.cmake b/cmake/TargetFlags.cmake index ede876fb5..fb6339543 100644 --- a/cmake/TargetFlags.cmake +++ b/cmake/TargetFlags.cmake @@ -1,3 +1,26 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### function(eval_and_strip_genex OUTPUT_VAR INPUT) string(REPLACE "$" "1" INPUT "${INPUT}") diff --git a/install_deps.cmake b/install_deps.cmake index a65420183..1d60aa6d9 100644 --- a/install_deps.cmake +++ b/install_deps.cmake @@ -1,5 +1,29 @@ #!/usr/bin/cmake -P +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### + set(ARGS) foreach(i RANGE 3 ${CMAKE_ARGC}) list(APPEND ARGS ${CMAKE_ARGV${i}}) diff --git a/test/api/test_op_construct.cpp b/test/api/test_op_construct.cpp index 80ee5df4b..ee7c71bad 100644 --- a/test/api/test_op_construct.cpp +++ b/test/api/test_op_construct.cpp @@ -1,3 +1,26 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ #include #include #include "test.hpp" diff --git a/tools/check_stamped.py b/tools/check_stamped.py new file mode 100644 index 000000000..2ab755d63 --- /dev/null +++ b/tools/check_stamped.py @@ -0,0 +1,144 @@ +#!/usr/bin/env python3 +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### +import subprocess +import sys + +debug = False +# The filetypes we want to check for that are stamped +# LICENSE is included here as it SHOULD have a liscence in it otherwise flag it as unstamped +supported_file_types = (".cpp", ".hpp", ".h", ".ipynb", ".py", ".txt", ".sh", + ".bsh", "LICENSE", ".cmake") + +#add general stuff we shouldn't stamp and any exceptions here +unsupported_file_types = [ + ".onnx", ".pb", ".rst", ".jpg", ".jpeg", ".proto", ".md", ".clang", + ".weight", ".ini", ".json", ".docker", ".git", ".rules", ".yml" +] + +specificIgnores = ("digits.txt", "Dockerfile", "Jenkinsfile", "") + + +def hasKeySequence(inputfile, key_message): + result = False + if key_message in inputfile: + result = True + return result + + +#Simple just open and write stuff to each file with the license stamp +def openAndCheckFile(filename): + result = False + #open save old contents and append things here + if debug is True: + print("Open", filename, end='') + + try: + file = open(filename, 'r') + except OSError as e: + if debug is True: + print(str(e) + "....Open Error: Skipping file ") + file.close() + return + else: + with file as contents: + try: + save = contents.read() + hasAmdLic = hasKeySequence( + save, "Advanced Micro Devices, Inc. All rights reserved") + + #Check if we have a licence stamp already + if hasAmdLic is True: + if debug is True: + print("....Already Stamped: Skipping file ") + contents.close() + result = True + + except UnicodeDecodeError as eu: + if debug is True: + print(str(eu) + "...Skipping binary file ") + contents.close() + result = True + + return result + + +# Deterine if filename is desired in the fileTuple past in +def check_filename(filename, fileTuple): + supported = False + for key in fileTuple: + if key in filename: + supported = True + break + return supported + + +def main(): + unsupported_file_types.extend(specificIgnores) + + #Get a list of all the tracked files in our git repo + proc = subprocess.run("git ls-files --exclude-standard", + shell=True, + stdout=subprocess.PIPE) + fileList = proc.stdout.decode().split('\n') + + if debug is True: + print("Target file list:\n" + str(fileList)) + + unsupportedFiles = [] + unstampedFiles = [] + unknownFiles = [] + + for file in fileList: + supported = check_filename(file, supported_file_types) + if supported is True: + isStamped = openAndCheckFile(file) + if isStamped is False: + unstampedFiles.append(file) + + else: + unsupported = check_filename(file, unsupported_file_types) + if unsupported is True: + unsupportedFiles.append(file) + else: + unknownFiles.append(file) + + #Do a bunch of checks based on our file lists + if len(unstampedFiles) > 0: + print("Error: The following " + str(len(unstampedFiles)) + + " files are currently without a license:") + print(str(unstampedFiles)) + sys.exit(1) + + if len(unknownFiles) > 0: + print("Error: The following " + str(len(unknownFiles)) + + " files not handled:") + print(str(unknownFiles)) + sys.exit(2) + + sys.exit(0) + + +if __name__ == "__main__": + main() diff --git a/tools/license_stamper.py b/tools/license_stamper.py index 52ae289c3..f261c7100 100644 --- a/tools/license_stamper.py +++ b/tools/license_stamper.py @@ -206,7 +206,8 @@ def getDelimiter(filename): ".py": "#", ".txt": "#", ".bsh": "#", - ".sh": "#" + ".sh": "#", + ".cmake": "#" } listOfKeys = delimiterDict.keys() delimiter = None -- GitLab From 666155d97d30dc876cc60376544cf78708cdc84a Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 24 Jun 2022 15:32:48 -0500 Subject: [PATCH 12/32] Rename var --- test/simplify_reshapes_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simplify_reshapes_test.cpp b/test/simplify_reshapes_test.cpp index 5765e0552..13d3f401b 100644 --- a/test/simplify_reshapes_test.cpp +++ b/test/simplify_reshapes_test.cpp @@ -1208,12 +1208,12 @@ TEST_CASE(transpose_slice_single_transpose) auto sqrt1 = m1.add_instruction(migraphx::make_op("sqrt"), slice1); auto slice2 = m1.add_instruction( migraphx::make_op("slice", {{"axes", {2}}, {"starts", {12}}, {"ends", {24}}}), x); - auto transpose2 = m1.add_instruction( + auto transpose = m1.add_instruction( migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), slice2); auto slice3 = m1.add_instruction( migraphx::make_op("slice", {{"axes", {2}}, {"starts", {24}}, {"ends", {36}}}), x); auto sqrt3 = m1.add_instruction(migraphx::make_op("sqrt"), slice3); - m1.add_return({sqrt1, transpose2, sqrt3}); + m1.add_return({sqrt1, transpose, sqrt3}); } migraphx::module m2 = m1; run_pass(m1); -- GitLab From b75c83d8c8115ce6ee89cb50d043e8999ee08abb Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Fri, 24 Jun 2022 19:08:21 -0500 Subject: [PATCH 13/32] Use jit for contiguous operator (#1217) * Jit contiguous --- src/include/migraphx/ranges.hpp | 6 +- src/shape.cpp | 22 +++--- src/targets/gpu/fuse_ops.cpp | 38 ++++++++++- src/targets/gpu/jit/pointwise.cpp | 67 +++++++++++-------- .../include/migraphx/kernels/algorithm.hpp | 34 +++++++++- .../include/migraphx/kernels/pointwise.hpp | 11 ++- .../include/migraphx/kernels/shape.hpp | 58 +++++++++------- test/reduce_dims.cpp | 42 ++++++++++-- test/shape_test.cpp | 9 +++ 9 files changed, 212 insertions(+), 75 deletions(-) diff --git a/src/include/migraphx/ranges.hpp b/src/include/migraphx/ranges.hpp index e543978db..814421377 100644 --- a/src/include/migraphx/ranges.hpp +++ b/src/include/migraphx/ranges.hpp @@ -210,10 +210,10 @@ void replace(Range&& r, const T& old, const T& new_x) std::replace(r.begin(), r.end(), old, new_x); } -template -bool equal(R1&& r1, R2&& r2) +template +bool equal(R1&& r1, R2&& r2, Predicate... pred) { - return std::equal(r1.begin(), r1.end(), r2.begin(), r2.end()); + return std::equal(r1.begin(), r1.end(), r2.begin(), r2.end(), pred...); } template diff --git a/src/shape.cpp b/src/shape.cpp index 437ec914b..e50f3ee1a 100644 --- a/src/shape.cpp +++ b/src/shape.cpp @@ -61,9 +61,7 @@ struct shape_impl { assert(t != shape::tuple_type); assert(m_lens.size() == m_strides.size()); - // assert(std::any_of(m_strides.begin(), m_strides.end(), [](auto x) { return x > 0; }) and - // "At least one stride must be non-zero"); - m_standard = this->elements() == this->element_space() and + m_standard = this->elements() == this->element_space() and not skips() and std::is_sorted(m_strides.rbegin(), m_strides.rend()); } @@ -110,6 +108,15 @@ struct shape_impl m_lens.begin(), m_lens.end(), std::size_t{1}, std::multiplies()); } + // Does the shape skip over elements? + bool skips() const + { + assert(m_lens.size() == m_strides.size()); + if(elements() == 1) + return false; + return std::none_of(m_strides.begin(), m_strides.end(), [](auto x) { return x == 1; }); + } + std::shared_ptr copy() const { return std::make_shared(*this); } }; @@ -260,7 +267,8 @@ void shape::multi_copy(std::size_t i, std::size_t* start, const std::size_t* end bool shape::packed() const { - return this->sub_shapes().empty() and this->elements() == this->element_space(); + return this->sub_shapes().empty() and not impl->skips() and + this->elements() == this->element_space(); } bool shape::transposed() const @@ -285,10 +293,8 @@ bool shape::transposed() const bool shape::broadcasted() const { assert(this->lens().size() == this->strides().size()); - return std::accumulate(this->strides().begin(), - this->strides().end(), - std::size_t{1}, - std::multiplies()) == 0; + return std::any_of( + this->strides().begin(), this->strides().end(), [](auto x) { return x == 0; }); } bool shape::scalar() const diff --git a/src/targets/gpu/fuse_ops.cpp b/src/targets/gpu/fuse_ops.cpp index 27cf2f19d..b929ecc9b 100644 --- a/src/targets/gpu/fuse_ops.cpp +++ b/src/targets/gpu/fuse_ops.cpp @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -1012,9 +1013,43 @@ struct find_commutative_broadcast } }; +struct find_contiguous +{ + auto matcher() const { return match::name("gpu::contiguous"); } + + void apply(module& m, const match::matcher_result& r) const + { + auto ins = r.result; + + m.replace_instruction( + ins, + make_op("gpu::precompile_op", {{"op", to_value(make_op("contiguous"))}}), + ins->inputs()); + } +}; + +struct find_contiguous_pointwise +{ + auto matcher() const + { + return match::name("gpu::contiguous")(match::arg(0)(precompile_name("pointwise"))); + } + + void apply(module& m, const match::matcher_result& r) const + { + auto ins = r.result; + auto pw = ins->inputs().front(); + auto alloc = ins->inputs().back(); + auto args = pw->inputs(); + args.back() = alloc; + + m.replace_instruction(ins, pw->get_operator(), args, pw->module_inputs()); + } +}; + void fuse_ops::apply(module& m) const { - match::find_matches(m, find_gelu{}, find_gelu_new{fast_math}); + match::find_matches(m, find_contiguous_pointwise{}, find_gelu{}, find_gelu_new{fast_math}); run_passes(m, {dead_code_elimination{}}); match::find_matches(m, find_triadd{}); match::find_matches(m, @@ -1036,6 +1071,7 @@ void fuse_ops::apply(module& m) const find_gemm_add{}, find_gemm_pointwise{}, find_commutative_broadcast{}); + match::find_matches(m, find_contiguous{}); } } // namespace gpu diff --git a/src/targets/gpu/jit/pointwise.cpp b/src/targets/gpu/jit/pointwise.cpp index d17bdd043..04cf8745d 100644 --- a/src/targets/gpu/jit/pointwise.cpp +++ b/src/targets/gpu/jit/pointwise.cpp @@ -79,7 +79,7 @@ static std::vector get_op_names(const module& m) struct pointwise_compiler : compiler { - std::vector names() const { return {"pointwise"}; } + std::vector names() const { return {"pointwise", "contiguous"}; } static std::size_t oversubscribe_if(bool b) { @@ -114,34 +114,45 @@ struct pointwise_compiler : compiler return compile_hip_code_object(src, options); } - compiler_replace compile(context& ctx, instruction_ref ins, const operation&) const + compiler_replace compile(context& ctx, instruction_ref ins, const operation& op) const { - assert(not ins->module_inputs().empty()); - auto* pm = ins->module_inputs().front(); - run_passes(*pm, {eliminate_common_subexpression{}, dead_code_elimination{}}); - cpp_generator g; - g.fmap([](const std::string& fname) { return "migraphx::" + fname; }); - g.add_point_op("where", "${function:where}(${0}, ${1}, ${2})"); - g.add_point_op("prelu", "${function:where}(${0} < 0, ${0} * ${1}, ${0})"); - g.add_point_op("sign", - "${function:where}(${0} > 0, 1, ${function:where}(${0} < 0, -1, 0))"); - g.add_point_op("equal", "migraphx::abs(${0} == ${1})"); - g.add_point_op("less", "migraphx::abs(${0} < ${1})"); - g.add_point_op("greater", "migraphx::abs(${0} > ${1})"); - g.add_point_op("not", "migraphx::abs(not ${0})"); - // Add explict conversions - g.fresult( - [](const shape& s) { return "migraphx::convert<" + shape::cpp_type(s.type()) + ">"; }); - auto name = g.create_function( - g.generate_module(*pm).set_attributes({"__device__"}).set_generic_types(*pm)); - std::string lambda = "MIGRAPHX_LIFT(" + name + ")"; - auto op_names = get_op_names(*pm); - op_names.push_back("kernel"); - auto op_name_string = join_strings(op_names, "_"); - return replace( - compile_op(ctx, - to_shapes(ins->inputs()), - {{"lambda", lambda}, {"preamble", g.str()}, {"kernel", op_name_string}})); + if(op.name() == "contiguous") + { + return replace(compile_op( + ctx, + to_shapes(ins->inputs()), + {{"lambda", "[](auto x) { return x; }"}, {"kernel", "contiguous_kernel"}})); + } + else + { + assert(not ins->module_inputs().empty()); + auto* pm = ins->module_inputs().front(); + run_passes(*pm, {eliminate_common_subexpression{}, dead_code_elimination{}}); + cpp_generator g; + g.fmap([](const std::string& fname) { return "migraphx::" + fname; }); + g.add_point_op("where", "${function:where}(${0}, ${1}, ${2})"); + g.add_point_op("prelu", "${function:where}(${0} < 0, ${0} * ${1}, ${0})"); + g.add_point_op("sign", + "${function:where}(${0} > 0, 1, ${function:where}(${0} < 0, -1, 0))"); + g.add_point_op("equal", "migraphx::abs(${0} == ${1})"); + g.add_point_op("less", "migraphx::abs(${0} < ${1})"); + g.add_point_op("greater", "migraphx::abs(${0} > ${1})"); + g.add_point_op("not", "migraphx::abs(not ${0})"); + // Add explict conversions + g.fresult([](const shape& s) { + return "migraphx::convert<" + shape::cpp_type(s.type()) + ">"; + }); + auto name = g.create_function( + g.generate_module(*pm).set_attributes({"__device__"}).set_generic_types(*pm)); + std::string lambda = "MIGRAPHX_LIFT(" + name + ")"; + auto op_names = get_op_names(*pm); + op_names.push_back("kernel"); + auto op_name_string = join_strings(op_names, "_"); + return replace(compile_op( + ctx, + to_shapes(ins->inputs()), + {{"lambda", lambda}, {"preamble", g.str()}, {"kernel", op_name_string}})); + } } }; } // namespace gpu diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp index bc4e1145d..0f6a94672 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/algorithm.hpp @@ -49,7 +49,7 @@ constexpr T accumulate(InputIt first, InputIt last, T init, BinaryOperation op) { for(; first != last; ++first) { - init = op(std::move(init), *first); + init = op(static_cast(init), *first); } return init; } @@ -64,6 +64,20 @@ constexpr OutputIt copy(InputIt first, InputIt last, OutputIt d_first) return d_first; } +template +constexpr OutputIt copy_if(InputIt first, InputIt last, OutputIt d_first, UnaryPredicate pred) +{ + for(; first != last; ++first) + { + if(pred(*first)) + { + *d_first = *first; + ++d_first; + } + } + return d_first; +} + template constexpr Iterator is_sorted_until(Iterator first, Iterator last, Compare comp) { @@ -115,6 +129,24 @@ constexpr Iterator find(Iterator first, Iterator last, const T& value) return find_if(first, last, [&](const auto& x) { return x == value; }); } +template +constexpr bool any_of(InputIt first, InputIt last, UnaryPredicate p) +{ + return find_if(first, last, p) != last; +} + +template +constexpr bool none_of(InputIt first, InputIt last, UnaryPredicate p) +{ + return find_if(first, last, p) == last; +} + +template +constexpr bool all_of(InputIt first, InputIt last, UnaryPredicate p) +{ + return none_of(first, last, [=](auto&& x) { return not p(x); }); +} + template constexpr Iterator1 search(Iterator1 first, Iterator1 last, Iterator2 s_first, Iterator2 s_last) { diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp index 4e867d82a..8fe5c9545 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/pointwise.hpp @@ -41,8 +41,15 @@ struct implicit_conversion_op template constexpr operator vec() const { - static_assert(vec_size() == N, "Vector mismatch size"); - return __builtin_convertvector(x, vec); + if constexpr(vec_size() == 0) + { + return x; + } + else + { + static_assert(vec_size() == N, "Vector mismatch size"); + return __builtin_convertvector(x, vec); + } } template diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp index ceda21bfd..a61bb38c2 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp @@ -44,7 +44,7 @@ struct shape constexpr auto element_space() const { return _c; } - constexpr auto packed() const { return elements() == element_space(); } + constexpr auto packed() const { return not skips() and elements() == element_space(); } constexpr auto broadcasted() const { return _c; } constexpr auto transposed() const { @@ -53,16 +53,9 @@ struct shape if(shape{}.broadcasted()) { index_array s{}; - index_int j = 0; - for(index_int i = 0; i < s.size(); i++) - { - if(lstrides[i] != 0) - { - s[j] = lstrides[i]; - j++; - } - } - return not is_sorted(s.begin(), s.begin() + j, greater{}); + auto out = copy_if( + lstrides.begin(), lstrides.end(), s.begin(), [](auto x) { return x != 0; }); + return not is_sorted(s.begin(), out, greater{}); } else { @@ -70,6 +63,13 @@ struct shape } }); } + constexpr auto skips() const + { + return return_c([] { + auto lstrides = Strides{}; + return none_of(lstrides.begin(), lstrides.end(), [](auto x) { return x == 1; }); + }); + } constexpr auto standard() const { return packed() and not transposed(); } @@ -86,26 +86,34 @@ struct shape constexpr index_int index(index_int i) const { if(this->standard()) + { + MIGRAPHX_ASSERT(i == compute_index(i)); return i; + } else { - const auto rank = this->lens.size(); - index_int s = 1; - index_int result = 0; - for(index_int j = 0; j < rank; j++) - { - const index_int k = rank - j - 1; - const index_int stride = this->strides[k]; - const index_int len = this->lens[k]; - const index_int slen = s * len; - const index_int idx = (i % slen) / s; - result += stride * idx; - s = slen; - } - return result; + return compute_index(i); } } + constexpr index_int compute_index(index_int i) const + { + const auto rank = this->lens.size(); + index_int s = 1; + index_int result = 0; + for(index_int j = 0; j < rank; j++) + { + const index_int k = rank - j - 1; + const index_int stride = this->strides[k]; + const index_int len = this->lens[k]; + const index_int slen = s * len; + const index_int idx = (i % slen) / s; + result += stride * idx; + s = slen; + } + return result; + } + /// Convert single index into a multi-index constexpr index_array multi(index_int idx) const { diff --git a/test/reduce_dims.cpp b/test/reduce_dims.cpp index 5a25c7fb5..b530b1060 100644 --- a/test/reduce_dims.cpp +++ b/test/reduce_dims.cpp @@ -23,6 +23,7 @@ */ #include #include +#include #include "test.hpp" migraphx::shape make_shape(std::vector lens) @@ -35,6 +36,21 @@ migraphx::shape make_shape(std::vector lens, std::vector +bool verify_shapes(const Range1& r1, const Range2& r2) +{ + return migraphx::equal( + r1, r2, [](const auto& s1, const auto& s2) { return verify_shape(s1, s2); }); +} + TEST_CASE(same_standard) { auto is = make_shape({64, 3, 7, 7}); @@ -42,7 +58,7 @@ TEST_CASE(same_standard) std::vector ishapes = {is, is, is}; std::vector eshapes = {os, os, os}; auto rshapes = migraphx::reduce_dims(ishapes); - + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -53,7 +69,7 @@ TEST_CASE(same_broadcast1) std::vector ishapes = {is, make_shape({64, 3, 7, 7}, {0, 1, 0, 0}), is}; std::vector eshapes = {os, make_shape({64, 3, 7 * 7}, {0, 1, 0}), os}; auto rshapes = migraphx::reduce_dims(ishapes); - + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -64,7 +80,7 @@ TEST_CASE(same_broadcast2) std::vector ishapes = {is, make_shape({64, 3, 8, 7, 7}, {0, 8, 1, 0, 0}), is}; std::vector eshapes = {os, make_shape({64, 8 * 3, 7 * 7}, {0, 1, 0}), os}; auto rshapes = migraphx::reduce_dims(ishapes); - + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -75,7 +91,7 @@ TEST_CASE(same_transposed) std::vector ishapes = {is, migraphx::reorder_shape(is, {0, 1, 3, 2}), is}; std::vector eshapes = {os, migraphx::reorder_shape(os, {0, 2, 1}), os}; auto rshapes = migraphx::reduce_dims(ishapes); - + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -86,7 +102,7 @@ TEST_CASE(different_masked1) std::vector ishapes = {is, make_shape({1, 3, 1, 1}), is}; std::vector eshapes = {os, make_shape({1, 3, 1}), os}; auto rshapes = migraphx::reduce_dims(ishapes); - + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -98,7 +114,7 @@ TEST_CASE(different_masked2) is, make_shape({1, 3, 1, 1}), make_shape({64, 1, 7, 7})}; std::vector eshapes = {os, make_shape({1, 3, 1}), make_shape({64, 1, 7 * 7})}; auto rshapes = migraphx::reduce_dims(ishapes); - + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -128,7 +144,7 @@ TEST_CASE(transposed1) std::vector eshapes = { make_shape({8, 28, 4, 56 * 56}), make_shape({8, 28, 4, 56 * 56}, {351232, 3136, 87808, 1})}; auto rshapes = migraphx::reduce_dims(ishapes); - + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -137,6 +153,7 @@ TEST_CASE(non_packed_empty1) std::vector ishapes = {make_shape({1, 12}, {589824, 64})}; std::vector eshapes = {make_shape({12}, {64})}; auto rshapes = migraphx::reduce_dims(ishapes); + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -145,6 +162,7 @@ TEST_CASE(non_packed_empty2) std::vector ishapes = {make_shape({12, 1}, {64, 589824})}; std::vector eshapes = {make_shape({12}, {64})}; auto rshapes = migraphx::reduce_dims(ishapes); + EXPECT(verify_shapes(ishapes, rshapes)); EXPECT(eshapes == rshapes); } @@ -155,6 +173,16 @@ TEST_CASE(single_dim) EXPECT(ishapes == rshapes); } +TEST_CASE(step_broadcast_transpose) +{ + std::vector ishapes = {make_shape({1, 2, 2, 1}, {0, 0, 3, 6}), + make_shape({1, 2, 2, 1}, {4, 2, 1, 1})}; + std::vector eshapes = {make_shape({2, 2}, {0, 3}), make_shape({2, 2}, {2, 1})}; + auto rshapes = migraphx::reduce_dims(ishapes); + EXPECT(verify_shapes(ishapes, rshapes)); + EXPECT(eshapes == rshapes); +} + TEST_CASE(empty) { auto rshapes = migraphx::reduce_dims({}); diff --git a/test/shape_test.cpp b/test/shape_test.cpp index dbcdacc5c..658af4a27 100644 --- a/test/shape_test.cpp +++ b/test/shape_test.cpp @@ -200,6 +200,15 @@ TEST_CASE(test_shape_broadcasted5) EXPECT(s.broadcasted()); } +TEST_CASE(test_shape_step_broadcasted) +{ + migraphx::shape s{migraphx::shape::float_type, {2, 2}, {0, 3}}; + EXPECT(not s.standard()); + EXPECT(not s.packed()); + EXPECT(not s.transposed()); + EXPECT(s.broadcasted()); +} + TEST_CASE(test_shape_default_copy) { migraphx::shape s1{}; -- GitLab From 3b0a9116b30f0535a506885fba07662c3bdb4f13 Mon Sep 17 00:00:00 2001 From: Brian Pickrell <95253842+bpickrel@users.noreply.github.com> Date: Fri, 24 Jun 2022 20:44:47 -0700 Subject: [PATCH 14/32] bug fix: register the miopen_fusion op. (#1267) One-line fix to register the op miopen_fusion. This error was causing loading of compiled model files (*.mxr) to fail. --- src/targets/gpu/fuse_ops.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/targets/gpu/fuse_ops.cpp b/src/targets/gpu/fuse_ops.cpp index b929ecc9b..eb1c3ca3f 100644 --- a/src/targets/gpu/fuse_ops.cpp +++ b/src/targets/gpu/fuse_ops.cpp @@ -701,6 +701,7 @@ struct miopen_fusion return args.back(); } }; +MIGRAPHX_REGISTER_OP(miopen_fusion) struct miopen_conv_bias { -- GitLab From 3a5c43065f3551b39015ca4ce9e1f4ce55bf7c19 Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Sun, 26 Jun 2022 06:50:52 -0500 Subject: [PATCH 15/32] Get parent module in the pass manager (#1181) * Add function to get a module tree * Get parent module in the pass manager --- src/include/migraphx/module.hpp | 2 +- src/include/migraphx/pass_manager.hpp | 1 + src/include/migraphx/program.hpp | 2 ++ src/include/migraphx/ranges.hpp | 6 +++++ src/module.cpp | 11 +++++---- src/pass_manager.cpp | 34 ++++++++++++++++++++------- src/program.cpp | 17 ++++++++++++++ 7 files changed, 59 insertions(+), 14 deletions(-) diff --git a/src/include/migraphx/module.hpp b/src/include/migraphx/module.hpp index 07fa52e1c..2fb1e9df3 100644 --- a/src/include/migraphx/module.hpp +++ b/src/include/migraphx/module.hpp @@ -183,7 +183,7 @@ struct module void annotate(std::ostream& os, std::function a) const; - std::vector get_sub_modules() const; + std::vector get_sub_modules(bool shallow = false) const; module& sort(); ins_dep_map calc_implicit_deps() const; diff --git a/src/include/migraphx/pass_manager.hpp b/src/include/migraphx/pass_manager.hpp index 10546e21e..cd0e41ba1 100644 --- a/src/include/migraphx/pass_manager.hpp +++ b/src/include/migraphx/pass_manager.hpp @@ -38,6 +38,7 @@ struct module_pass_manager module_pass_manager(const module_pass_manager&) = delete; virtual module& get_module() = 0; virtual module* create_module(const std::string& name) = 0; + virtual module* get_common_parent() = 0; virtual void run_pass(const pass& p) = 0; protected: diff --git a/src/include/migraphx/program.hpp b/src/include/migraphx/program.hpp index 65b5b9cbc..33f272c52 100644 --- a/src/include/migraphx/program.hpp +++ b/src/include/migraphx/program.hpp @@ -132,6 +132,8 @@ struct program std::vector get_modules() const; std::vector get_modules(); + std::unordered_multimap get_module_tree(); + void remove_module(const std::string& name); void remove_unused_modules(); diff --git a/src/include/migraphx/ranges.hpp b/src/include/migraphx/ranges.hpp index 814421377..77536f3ef 100644 --- a/src/include/migraphx/ranges.hpp +++ b/src/include/migraphx/ranges.hpp @@ -216,6 +216,12 @@ bool equal(R1&& r1, R2&& r2, Predicate... pred) return std::equal(r1.begin(), r1.end(), r2.begin(), r2.end(), pred...); } +template +auto distance(Range&& r) +{ + return std::distance(r.begin(), r.end()); +} + template using range_value = std::decay_t().begin())>; diff --git a/src/module.cpp b/src/module.cpp index dcc841948..79614e5ba 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -819,17 +819,20 @@ void module::annotate(std::ostream& os, std::function a) }); } -std::vector module::get_sub_modules() const +std::vector module::get_sub_modules(bool shallow) const { std::vector vec_modules; for(auto ins : iterator_for(*this)) { const auto& mod_args = ins->module_inputs(); vec_modules.insert(vec_modules.end(), mod_args.begin(), mod_args.end()); - for(const auto& smod : mod_args) + if(not shallow) { - auto sub_mods = smod->get_sub_modules(); - vec_modules.insert(vec_modules.end(), sub_mods.begin(), sub_mods.end()); + for(const auto& smod : mod_args) + { + auto sub_mods = smod->get_sub_modules(); + vec_modules.insert(vec_modules.end(), sub_mods.begin(), sub_mods.end()); + } } } diff --git a/src/pass_manager.cpp b/src/pass_manager.cpp index 0dbb93aab..be47de613 100644 --- a/src/pass_manager.cpp +++ b/src/pass_manager.cpp @@ -66,14 +66,12 @@ void run_pass(program& prog, const pass& p, tracer trace) struct module_pm : module_pass_manager { - module* mod; - program* prog; - tracer* t; + module* mod = nullptr; + tracer* t = nullptr; + module* common_parent = nullptr; + program* prog = nullptr; - module_pm(module* pmod = nullptr, program* pprog = nullptr, tracer* pt = nullptr) - : mod(pmod), prog(pprog), t(pt) - { - } + module_pm(module* pmod = nullptr, tracer* pt = nullptr) : mod(pmod), t(pt) {} template void trace(Ts&&... xs) const @@ -92,6 +90,7 @@ struct module_pm : module_pass_manager assert(prog); return prog->create_module(name); } + virtual module* get_common_parent() override { return common_parent; } virtual void run_pass(const pass& p) override { assert(mod); @@ -111,7 +110,7 @@ void run_passes(module& mod, const std::vector& passes, tracer trace) trace = tracer{std::cout}; for(const auto& p : passes) { - module_pm{&mod, nullptr, &trace}.run_pass(p); + module_pm{&mod, &trace}.run_pass(p); } } @@ -119,14 +118,31 @@ void run_passes(program& prog, const std::vector& passes, tracer trace) { if(enabled(MIGRAPHX_TRACE_PASSES{})) trace = tracer{std::cout}; + std::unordered_set visited; for(const auto& p : passes) { auto mods = prog.get_modules(); + auto tree = prog.get_module_tree(); + visited.clear(); for(const auto& mod : reverse(mods)) { if(mod->bypass()) continue; - module_pm{mod, &prog, &trace}.run_pass(p); + if(not visited.insert(mod).second) + continue; + module_pm mpm{mod, &trace}; + mpm.prog = &prog; + auto parents = range(tree.equal_range(mod)); + auto nparents = distance(parents); + if(nparents == 0) + mpm.common_parent = nullptr; + else if(nparents == 1) + mpm.common_parent = parents.begin()->second; + else + // Just set common parent to main module when there is muliple parents for now + // TODO: Compute the common parent + mpm.common_parent = prog.get_main_module(); + mpm.run_pass(p); } run_pass(prog, p, trace); } diff --git a/src/program.cpp b/src/program.cpp index 3d2508caa..091e4a1ab 100644 --- a/src/program.cpp +++ b/src/program.cpp @@ -869,6 +869,23 @@ std::vector program::get_modules() return result; } +template +void generic_insert_module_tree(Module* pm, Map& m) +{ + for(auto* sm : pm->get_sub_modules(true)) + { + m.insert(std::make_pair(sm, pm)); + generic_insert_module_tree(sm, m); + } +} + +std::unordered_multimap program::get_module_tree() +{ + std::unordered_multimap result; + generic_insert_module_tree(this->get_main_module(), result); + return result; +} + template bool is_unused_module(Map& m, const std::vector& mods, const std::string& name) { -- GitLab From cb18b0b5722373c49f5c257380af206e13344735 Mon Sep 17 00:00:00 2001 From: Umang Yadav <29876643+umangyadav@users.noreply.github.com> Date: Tue, 28 Jun 2022 08:48:32 -0400 Subject: [PATCH 16/32] Custom Op example using HIP kernel (#1200) This PR only adds an example using HIP kernel. --- .../custom_op_hip_kernel/CMakeLists.txt | 37 ++++++ .../migraphx/custom_op_hip_kernel/README.md | 11 ++ .../custom_op_hip_kernel.cpp | 125 ++++++++++++++++++ 3 files changed, 173 insertions(+) create mode 100755 examples/migraphx/custom_op_hip_kernel/CMakeLists.txt create mode 100644 examples/migraphx/custom_op_hip_kernel/README.md create mode 100644 examples/migraphx/custom_op_hip_kernel/custom_op_hip_kernel.cpp diff --git a/examples/migraphx/custom_op_hip_kernel/CMakeLists.txt b/examples/migraphx/custom_op_hip_kernel/CMakeLists.txt new file mode 100755 index 000000000..d39c122ba --- /dev/null +++ b/examples/migraphx/custom_op_hip_kernel/CMakeLists.txt @@ -0,0 +1,37 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### +cmake_minimum_required(VERSION 3.5) +project (custom_hip_kernel) + +set (CMAKE_CXX_STANDARD 14) +set (EXAMPLE custom_op_hip_kernel) + +list (APPEND CMAKE_PREFIX_PATH /opt/rocm/hip /opt/rocm) +find_package (migraphx REQUIRED) +find_package (hip REQUIRED) + +message("source file: " ${EXAMPLE}.cpp " ---> bin: " ${EXAMPLE}) +add_executable(${EXAMPLE} ${EXAMPLE}.cpp) + +target_link_libraries(${EXAMPLE} migraphx::c hip::device) diff --git a/examples/migraphx/custom_op_hip_kernel/README.md b/examples/migraphx/custom_op_hip_kernel/README.md new file mode 100644 index 000000000..1bf7862ae --- /dev/null +++ b/examples/migraphx/custom_op_hip_kernel/README.md @@ -0,0 +1,11 @@ +# Custom Kernel using MIGraphX API. +This is an example of a custom operator implementation using MIGraphX's C/C++ APIs. It also demonstrates how to use this custom op in conjunction with rest of MIGraphX operators to build and run MIGraphX program on GPU. + +Kernels can be written in either HIP, MIOpen, or by using RocBLAS library. This particular example uses **HIP**. + + To build the example, ensure ROCm is installed at `/opt/rocm`. + 1. `export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH` + 2. `cd $MIGRAPHX_SRC/examples/migraphx/custom_op_hip_kernel/` + 3. `mkdir build && cd build` + 4. `CXX=/opt/rocm/llvm/bin/clang++ cmake .. && make` + 5. `./custom_op_hip_kernel` \ No newline at end of file diff --git a/examples/migraphx/custom_op_hip_kernel/custom_op_hip_kernel.cpp b/examples/migraphx/custom_op_hip_kernel/custom_op_hip_kernel.cpp new file mode 100644 index 000000000..dfdd0a593 --- /dev/null +++ b/examples/migraphx/custom_op_hip_kernel/custom_op_hip_kernel.cpp @@ -0,0 +1,125 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include // MIGraphX's C++ API +#include + +#define MIGRAPHX_HIP_ASSERT(x) (assert((x) == hipSuccess)) +/* + * Square each element in the array A and write to array C. + */ +template +__global__ void vector_square(T* C_d, const T* A_d, size_t N) +{ + size_t offset = (hipBlockIdx_x * hipBlockDim_x + hipThreadIdx_x); + size_t stride = hipBlockDim_x * hipGridDim_x; + + for(size_t i = offset; i < N; i += stride) + { + C_d[i] = A_d[i] * A_d[i]; + } +} + +struct square_custom_op final : migraphx::experimental_custom_op_base +{ + virtual std::string name() const override { return "square_custom_op"; } + virtual migraphx::argument + compute(migraphx::context ctx, migraphx::shape, migraphx::arguments inputs) const override + { + // if compile options has offload_copy = true then, parameters and outputs will be + // automatically copied to and from GPUs' memory. Here assume that `inputs` arguments are + // already in the GPU, so no need to do Malloc, Free or Memcpy. Last element in the `inputs` + // is output argument, so it should be returned from compute method. + auto* input_buffer = reinterpret_cast(inputs[0].data()); + auto* output_buffer = reinterpret_cast(inputs[1].data()); + size_t n_elements = inputs[0].get_shape().bytes() / sizeof(inputs[0].get_shape().type()); + MIGRAPHX_HIP_ASSERT(hipSetDevice(0)); + const unsigned blocks = 512; + const unsigned threads_per_block = 256; + // cppcheck-suppress UseDeviceLaunch + hipLaunchKernelGGL(vector_square, + dim3(blocks), + dim3(threads_per_block), + 0, + ctx.get_queue(), + output_buffer, + input_buffer, + n_elements); + return inputs[1]; + } + virtual migraphx::shape compute_shape(migraphx::shapes inputs) const override + { + if(inputs.size() != 2) + { + throw std::runtime_error("square_custom_op must have 2 arguments"); + } + if(inputs[0] != inputs[1]) + { + throw std::runtime_error("Inputs to the square_custom_op must have same Shape"); + } + return inputs.back(); + } +}; + +int main(int argc, const char* argv[]) +{ + square_custom_op square_op; + migraphx::register_experimental_custom_op(square_op); + migraphx::program p; + migraphx::shape s{migraphx_shape_float_type, {32, 256}}; + migraphx::module m = p.get_main_module(); + auto x = m.add_parameter("x", s); + auto neg_ins = m.add_instruction(migraphx::operation("neg"), x); + // add allocation for the custom_kernel's output buffer + auto alloc = m.add_allocation(s); + auto custom_kernel = + m.add_instruction(migraphx::operation("square_custom_op"), {neg_ins, alloc}); + auto relu_ins = m.add_instruction(migraphx::operation("relu"), {custom_kernel}); + m.add_return({relu_ins}); + migraphx::compile_options options; + // set offload copy to true for GPUs + options.set_offload_copy(); + p.compile(migraphx::target("gpu"), options); + migraphx::program_parameters pp; + std::vector x_data(s.bytes() / sizeof(s.type())); + std::iota(x_data.begin(), x_data.end(), 0); + pp.add("x", migraphx::argument(s, x_data.data())); + auto results = p.eval(pp); + auto result = results[0]; + std::vector expected_result = x_data; + std::transform(expected_result.begin(), + expected_result.end(), + expected_result.begin(), + [](auto i) { return std::pow(i, 2); }); + if(bool{result == migraphx::argument(s, expected_result.data())}) + { + std::cout << "Successfully executed custom HIP kernel example\n"; + } + else + { + std::cout << "Custom HIP kernel example failed\n"; + } + return 0; +} -- GitLab From e914254cab9b287c67c62e8c469d335716a67366 Mon Sep 17 00:00:00 2001 From: Umang Yadav <29876643+umangyadav@users.noreply.github.com> Date: Tue, 28 Jun 2022 18:17:28 -0400 Subject: [PATCH 17/32] Custom Op example using rocBLAS calls (#1211) Add an example using rocBLAS Calls --- .../custom_op_rocblas_kernel/CMakeLists.txt | 38 ++++++ .../custom_op_rocblas_kernel/README.md | 11 ++ .../custom_op_rocblas_kernel.cpp | 125 ++++++++++++++++++ 3 files changed, 174 insertions(+) create mode 100755 examples/migraphx/custom_op_rocblas_kernel/CMakeLists.txt create mode 100644 examples/migraphx/custom_op_rocblas_kernel/README.md create mode 100644 examples/migraphx/custom_op_rocblas_kernel/custom_op_rocblas_kernel.cpp diff --git a/examples/migraphx/custom_op_rocblas_kernel/CMakeLists.txt b/examples/migraphx/custom_op_rocblas_kernel/CMakeLists.txt new file mode 100755 index 000000000..c53bbd6e2 --- /dev/null +++ b/examples/migraphx/custom_op_rocblas_kernel/CMakeLists.txt @@ -0,0 +1,38 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### +cmake_minimum_required(VERSION 3.5) +project (custom_rocblas_kernel) + +set (CMAKE_CXX_STANDARD 14) +set (EXAMPLE custom_op_rocblas_kernel) + + +list (APPEND CMAKE_PREFIX_PATH /opt/rocm/hip /opt/rocm) +find_package (migraphx REQUIRED) +find_package (rocblas REQUIRED) + +message("source file: " ${EXAMPLE}.cpp " ---> bin: " ${EXAMPLE}) +add_executable(${EXAMPLE} ${EXAMPLE}.cpp) + +target_link_libraries(${EXAMPLE} migraphx::c roc::rocblas) diff --git a/examples/migraphx/custom_op_rocblas_kernel/README.md b/examples/migraphx/custom_op_rocblas_kernel/README.md new file mode 100644 index 000000000..2369f48d4 --- /dev/null +++ b/examples/migraphx/custom_op_rocblas_kernel/README.md @@ -0,0 +1,11 @@ +# Custom rocBLAS Kernel using MIGraphX API. + This is an example of a custom operator implementation using MIGraphX's C/C++ APIs. It also demonstrates how to use this custom op in conjunction with rest of MIGraphX operators to build and run MIGraphX program on GPU. + + Kernels can be written in either HIP, MIOpen, or by using RocBLAS library. This particular example uses **rocBLAS** library calls. + + To build and run the example, ensure ROCm is installed at `/opt/rocm`. + 1. `export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH` + 2. `cd $MIGRAPHX_SRC/examples/migraphx/custom_op_rocblas_kernel/` + 3. `mkdir build && cd build` + 4. `cmake .. && make` + 5. `./custom_op_rocblas_kernel` diff --git a/examples/migraphx/custom_op_rocblas_kernel/custom_op_rocblas_kernel.cpp b/examples/migraphx/custom_op_rocblas_kernel/custom_op_rocblas_kernel.cpp new file mode 100644 index 000000000..f9e1cbc82 --- /dev/null +++ b/examples/migraphx/custom_op_rocblas_kernel/custom_op_rocblas_kernel.cpp @@ -0,0 +1,125 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include +#include +#include // MIGraphX's C++ API +#include +#include + +#define MIGRAPHX_ROCBLAS_ASSERT(x) (assert((x) == rocblas_status::rocblas_status_success)) +#define MIGRAPHX_HIP_ASSERT(x) (assert((x) == hipSuccess)) + +rocblas_handle create_rocblas_handle_ptr() +{ + rocblas_handle handle; + MIGRAPHX_ROCBLAS_ASSERT(rocblas_create_handle(&handle)); + return rocblas_handle{handle}; +} + +rocblas_handle create_rocblas_handle_ptr(migraphx::context& ctx) +{ + MIGRAPHX_HIP_ASSERT(hipSetDevice(0)); + rocblas_handle rb = create_rocblas_handle_ptr(); + auto* stream = ctx.get_queue(); + MIGRAPHX_ROCBLAS_ASSERT(rocblas_set_stream(rb, stream)); + return rb; +} + +struct sscal_custom_op final : migraphx::experimental_custom_op_base +{ + virtual std::string name() const override { return "sscal_custom_op"; } + virtual migraphx::argument compute(migraphx::context ctx, + migraphx::shape output_shape, + migraphx::arguments args) const override + { + // create rocblas stream handle + auto rocblas_handle = create_rocblas_handle_ptr(ctx); + rocblas_int n = args[1].get_shape().lengths()[0]; + float* alpha = reinterpret_cast(args[0].data()); + float* vec_ptr = reinterpret_cast(args[1].data()); + MIGRAPHX_ROCBLAS_ASSERT(rocblas_sscal(rocblas_handle, n, alpha, vec_ptr, 1)); + return args[1]; + } + + virtual migraphx::shape compute_shape(migraphx::shapes inputs) const override + { + if(inputs.size() != 2) + { + throw std::runtime_error("sscal_custom_op must have 2 input arguments"); + } + if(inputs[0].lengths().size() != 1 || inputs[0].lengths()[0] != 1) + { + throw std::runtime_error("first input argument to sscal_custom_op must be a scalar"); + } + if(inputs[1].lengths().size() != 1) + { + throw std::runtime_error( + "second input argument to sscal_custom_op must be a vector with dimension one"); + } + return inputs.back(); + } +}; + +int main(int argc, const char* argv[]) +{ + // computes ReLU(neg(x) * scale) + sscal_custom_op sscal_op; + migraphx::register_experimental_custom_op(sscal_op); + migraphx::program p; + migraphx::shape x_shape{migraphx_shape_float_type, {8192}}; + migraphx::shape scale_shape{migraphx_shape_float_type, {1}}; + migraphx::module m = p.get_main_module(); + auto x = m.add_parameter("x", x_shape); + auto scale = m.add_parameter("scale", scale_shape); + auto neg_ins = m.add_instruction(migraphx::operation("neg"), {x}); + auto custom_kernel = + m.add_instruction(migraphx::operation("sscal_custom_op"), {scale, neg_ins}); + auto relu_ins = m.add_instruction(migraphx::operation("relu"), {custom_kernel}); + m.add_return({relu_ins}); + + migraphx::compile_options options; + // set offload copy to true for GPUs + options.set_offload_copy(); + p.compile(migraphx::target("gpu"), options); + migraphx::program_parameters pp; + std::vector x_data(x_shape.bytes() / sizeof(x_shape.type())); + std::vector scale_data{-1}; + std::iota(x_data.begin(), x_data.end(), 0); + pp.add("x", migraphx::argument(x_shape, x_data.data())); + pp.add("scale", migraphx::argument(scale_shape, scale_data.data())); + auto results = p.eval(pp); + auto result = results[0]; + std::vector expected_result = x_data; + if(bool{result == migraphx::argument(x_shape, expected_result.data())}) + { + std::cout << "Successfully executed custom rocBLAS kernel example\n"; + } + else + { + std::cout << "Custom rocBLAS kernel example failed\n"; + } + return 0; +} -- GitLab From 56440c4aa97e606f97d4455c912f24d42af236b5 Mon Sep 17 00:00:00 2001 From: Umang Yadav <29876643+umangyadav@users.noreply.github.com> Date: Tue, 28 Jun 2022 22:25:08 -0400 Subject: [PATCH 18/32] Custom Op example using MIOpen calls (#1208) This PR only adds an example using MIOpen Calls. --- .../custom_op_miopen_kernel/CMakeLists.txt | 37 ++++ .../custom_op_miopen_kernel/README.md | 10 + .../custom_op_miopen_kernel.cpp | 172 ++++++++++++++++++ 3 files changed, 219 insertions(+) create mode 100755 examples/migraphx/custom_op_miopen_kernel/CMakeLists.txt create mode 100644 examples/migraphx/custom_op_miopen_kernel/README.md create mode 100644 examples/migraphx/custom_op_miopen_kernel/custom_op_miopen_kernel.cpp diff --git a/examples/migraphx/custom_op_miopen_kernel/CMakeLists.txt b/examples/migraphx/custom_op_miopen_kernel/CMakeLists.txt new file mode 100755 index 000000000..e68753bab --- /dev/null +++ b/examples/migraphx/custom_op_miopen_kernel/CMakeLists.txt @@ -0,0 +1,37 @@ +##################################################################################### +# The MIT License (MIT) +# +# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. +# +# 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. +##################################################################################### +cmake_minimum_required(VERSION 3.5) +project (custom_miopen_kernel) + +set (CMAKE_CXX_STANDARD 14) +set (EXAMPLE custom_op_miopen_kernel) + +list (APPEND CMAKE_PREFIX_PATH /opt/rocm/hip /opt/rocm) +find_package (migraphx REQUIRED) +find_package (miopen REQUIRED) + +message("source file: " ${EXAMPLE}.cpp " ---> bin: " ${EXAMPLE}) +add_executable(${EXAMPLE} ${EXAMPLE}.cpp) + +target_link_libraries(${EXAMPLE} migraphx::c MIOpen) diff --git a/examples/migraphx/custom_op_miopen_kernel/README.md b/examples/migraphx/custom_op_miopen_kernel/README.md new file mode 100644 index 000000000..c47230472 --- /dev/null +++ b/examples/migraphx/custom_op_miopen_kernel/README.md @@ -0,0 +1,10 @@ +# Custom MIOpen Kernel using MIGraphX API. + This is an example of a custom operator implementation using MIGraphX's C/C++ APIs. It also demonstrates how to use this custom op in conjunction with rest of MIGraphX operators to build and run MIGraphX program on GPU. + Kernels can be written in either HIP, MIOpen, or by using RocBLAS library. This particular example uses **MIOpen** library calls. + + To build and run example, ensure ROCm is installed at `/opt/rocm`. + 1. `export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH` + 2. `cd $MIGRAPHX_SRC/examples/migraphx/custom_op_miopen_kernel/` + 3. `mkdir build && cd build` + 4. `cmake .. && make` + 5. `./custom_op_miopen_kernel` diff --git a/examples/migraphx/custom_op_miopen_kernel/custom_op_miopen_kernel.cpp b/examples/migraphx/custom_op_miopen_kernel/custom_op_miopen_kernel.cpp new file mode 100644 index 000000000..f9698faaf --- /dev/null +++ b/examples/migraphx/custom_op_miopen_kernel/custom_op_miopen_kernel.cpp @@ -0,0 +1,172 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include +#include +#include // MIGraphX's C++ API +#include +#include + +#define MIGRAPHX_MIOPEN_ASSERT(x) (assert((x) == miopenStatusSuccess)) +#define MIGRAPHX_HIP_ASSERT(x) (assert((x) == hipSuccess)) + +inline miopenTensorDescriptor_t make_miopen_tensor(const migraphx::shape& s, bool pack = false) +{ + miopenTensorDescriptor_t t; + MIGRAPHX_MIOPEN_ASSERT(miopenCreateTensorDescriptor(&t)); + // Convert to ints + auto s_lens = s.lengths(); + std::vector lens(s_lens.begin(), s_lens.end()); + auto s_strides = s.strides(); + std::vector strides(s_strides.begin(), s_strides.end()); + miopenDataType_t d; + if(s.type() == migraphx_shape_float_type) + d = miopenFloat; + else if(s.type() == migraphx_shape_half_type) + d = miopenHalf; + else if(s.type() == migraphx_shape_int32_type) + d = miopenInt32; + else if(s.type() == migraphx_shape_int8_type) + { + if(pack) + { + // update the lens and corresponding strides + d = miopenInt8x4; + lens[1] = ((lens[1] + 3) / 4) * 4; + strides[0] = strides[1] * lens[1]; + } + else + { + d = miopenInt8; + } + } + else + { + throw("MAKE_TENSOR: unsupported type"); + } + miopenSetTensorDescriptor(t, d, s_lens.size(), lens.data(), strides.data()); + return t; +} + +inline auto make_miopen_handle(migraphx::context& ctx) +{ + MIGRAPHX_HIP_ASSERT(hipSetDevice(0)); + auto* stream = ctx.get_queue(); + miopenHandle_t out; + MIGRAPHX_MIOPEN_ASSERT(miopenCreateWithStream(&out, stream)); + return out; +} + +inline auto make_activation_descriptor(miopenActivationMode_t mode, + double alpha = 0, + double beta = 0, + double gamma = 0) +{ + miopenActivationDescriptor_t ad; + MIGRAPHX_MIOPEN_ASSERT(miopenCreateActivationDescriptor(&ad)); + miopenSetActivationDescriptor(ad, mode, alpha, beta, gamma); + return ad; +} + +struct abs_custom_op final : migraphx::experimental_custom_op_base +{ + virtual std::string name() const override { return "abs_custom_op"; } + virtual migraphx::argument compute(migraphx::context ctx, + migraphx::shape output_shape, + migraphx::arguments args) const override + { + float alpha = 1; + float beta = 0; + // MIOpen kernel call takes raw buffer pointers for the TensorData. These Buffer pointers + // must be accompanied with Tensor Description e.g. shape, type, strides, dimensionality. + // Following `make_miopen_tensor` makes such tensor descriptors to pass as parameter to + // MIOpen kernel call. + auto y_desc = make_miopen_tensor(output_shape); + auto x_desc = make_miopen_tensor(args[0].get_shape()); + // create MIOpen stream handle + auto miopen_handle = make_miopen_handle(ctx); + // MIOpen has generic kernel for many different kinds of activation functions. + // Each such generic call must be accompanied with description of what kind of activation + // computation to perform + auto ad = make_activation_descriptor(miopenActivationABS, 0, 0, 0); + miopenActivationForward( + miopen_handle, ad, &alpha, x_desc, args[0].data(), &beta, y_desc, args[1].data()); + return args[1]; + } + + virtual migraphx::shape compute_shape(migraphx::shapes inputs) const override + { + if(inputs.size() != 2) + { + throw std::runtime_error("abs_custom_op must have two input arguments"); + } + if(inputs[0] != inputs[1]) + { + throw std::runtime_error("Input arguments to abs_custom_op must have same shape"); + } + return inputs.back(); + } +}; + +int main(int argc, const char* argv[]) +{ + abs_custom_op abs_op; + migraphx::register_experimental_custom_op(abs_op); + migraphx::program p; + migraphx::shape s{migraphx_shape_float_type, {32, 256}}; + migraphx::module m = p.get_main_module(); + auto x = m.add_parameter("x", s); + auto neg_ins = m.add_instruction(migraphx::operation("neg"), {x}); + // add allocation for the custom_kernel's output buffer + auto alloc = m.add_allocation(s); + auto custom_kernel = m.add_instruction(migraphx::operation("abs_custom_op"), {neg_ins, alloc}); + auto relu_ins = m.add_instruction(migraphx::operation("relu"), {custom_kernel}); + m.add_return({relu_ins}); + + migraphx::compile_options options; + // set offload copy to true for GPUs + options.set_offload_copy(); + p.compile(migraphx::target("gpu"), options); + migraphx::program_parameters prog_params; + std::vector x_data(s.bytes() / sizeof(s.type())); + std::iota(x_data.begin(), x_data.end(), 0); + prog_params.add("x", migraphx::argument(s, x_data.data())); + auto results = p.eval(prog_params); + auto result = results[0]; + std::vector expected_result = x_data; + std::transform(expected_result.begin(), + expected_result.end(), + expected_result.begin(), + [](auto i) { return std::abs(i); }); + if(bool{result == migraphx::argument(s, expected_result.data())}) + { + std::cout << "Successfully executed custom MIOpen kernel example with MIGraphX\n"; + } + else + { + std::cout << "Custom MIOpen kernel example failed\n"; + } + return 0; +} -- GitLab From ad27d0d6935e6c3c3231527c4a926fbe6f8ae33e Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Wed, 29 Jun 2022 06:56:55 -0500 Subject: [PATCH 19/32] Update driver models to use json strings (#1244) Compiles significantly faster than constructing all the objects. It also reduces recompiles as well. --- src/driver/alexnet.cpp | 339 ++- src/driver/inceptionv3.cpp | 4099 ++++++++++++-------------- src/driver/main.cpp | 3 + src/driver/resnet50.cpp | 2230 +++++++------- src/include/migraphx/module.hpp | 4 +- src/include/migraphx/stringutils.hpp | 10 +- src/module.cpp | 92 +- src/program.cpp | 11 +- 8 files changed, 3150 insertions(+), 3638 deletions(-) diff --git a/src/driver/alexnet.cpp b/src/driver/alexnet.cpp index 4dbfbbaf7..9732e7bab 100644 --- a/src/driver/alexnet.cpp +++ b/src/driver/alexnet.cpp @@ -1,3 +1,4 @@ + /* * The MIT License (MIT) * @@ -21,10 +22,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include +#include #include #include -#include +#include #include "models.hpp" namespace migraphx { @@ -34,173 +35,189 @@ inline namespace MIGRAPHX_INLINE_NS { migraphx::program alexnet(unsigned batch) // NOLINT(readability-function-size) { migraphx::program p; - auto* mm = p.get_main_module(); - auto m0 = - mm->add_parameter("0", migraphx::shape{migraphx::shape::float_type, {batch, 3, 224, 224}}); - auto mx0 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000}}, 0)); - auto mx1 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000, 4096}}, 1)); - auto mx2 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {4096}}, 2)); - auto mx3 = mm->add_literal( + migraphx::module_ref mmain = p.get_main_module(); + auto x_main_module_0 = mmain->add_literal(migraphx::abs( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1}}, 0))); + auto x_main_module_1 = mmain->add_literal(migraphx::abs( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1}}, 1))); + auto x_main_module_2 = mmain->add_literal(migraphx::abs( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1}}, 2))); + auto x_input_1 = mmain->add_parameter( + "input.1", migraphx::shape{migraphx::shape::float_type, {batch, 3, 224, 224}}); + auto x_main_module_4 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {4096, 4096}}, 3)); - auto mx4 = mm->add_literal( + auto x_main_module_5 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {4096}}, 4)); - auto mx5 = mm->add_literal( + auto x_main_module_6 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {4096, 9216}}, 5)); - auto mx6 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 6)); - auto mx7 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 7)); - auto mx8 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 8)); - auto mx9 = mm->add_literal(migraphx::generate_literal( + auto x_main_module_7 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {4096}}, 6)); + auto x_main_module_8 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000, 4096}}, 7)); + auto x_main_module_9 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000}}, 8)); + auto x_main_module_10 = mmain->add_literal(migraphx::generate_literal( migraphx::shape{migraphx::shape::float_type, {256, 384, 3, 3}}, 9)); - auto mx10 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 10)); - auto mx11 = mm->add_literal(migraphx::generate_literal( + auto x_main_module_11 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 10)); + auto x_main_module_12 = mmain->add_literal(migraphx::generate_literal( migraphx::shape{migraphx::shape::float_type, {384, 192, 3, 3}}, 11)); - auto mx12 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 12)); - auto mx13 = mm->add_literal(migraphx::generate_literal( + auto x_main_module_13 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 12)); + auto x_main_module_14 = mmain->add_literal(migraphx::generate_literal( migraphx::shape{migraphx::shape::float_type, {192, 64, 5, 5}}, 13)); - auto mx14 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 14)); - auto mx15 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 3, 11, 11}}, 15)); - migraphx::op::convolution convolution16; - convolution16.padding = {2, 2}; - convolution16.stride = {4, 4}; - convolution16.dilation = {1, 1}; - convolution16.group = 1; - auto mx16 = mm->add_instruction(convolution16, m0, mx15); - migraphx::op::broadcast broadcast17; - broadcast17.axis = 1; - broadcast17.broadcast_lens = {batch, 64, 55, 55}; - auto mx17 = mm->add_instruction(broadcast17, mx14); - migraphx::op::add add18; - auto mx18 = mm->add_instruction(add18, mx16, mx17); - migraphx::op::relu relu19; - auto mx19 = mm->add_instruction(relu19, mx18); - migraphx::op::pooling pooling20; - pooling20.mode = migraphx::op::pooling_mode::max; - pooling20.padding = {0, 0}; - pooling20.stride = {2, 2}; - pooling20.lengths = {3, 3}; - auto mx20 = mm->add_instruction(pooling20, mx19); - migraphx::op::convolution convolution21; - convolution21.padding = {2, 2}; - convolution21.stride = {1, 1}; - convolution21.dilation = {1, 1}; - convolution21.group = 1; - auto mx21 = mm->add_instruction(convolution21, mx20, mx13); - migraphx::op::broadcast broadcast22; - broadcast22.axis = 1; - broadcast22.broadcast_lens = {batch, 192, 27, 27}; - auto mx22 = mm->add_instruction(broadcast22, mx12); - migraphx::op::add add23; - auto mx23 = mm->add_instruction(add23, mx21, mx22); - migraphx::op::relu relu24; - auto mx24 = mm->add_instruction(relu24, mx23); - migraphx::op::pooling pooling25; - pooling25.mode = migraphx::op::pooling_mode::max; - pooling25.padding = {0, 0}; - pooling25.stride = {2, 2}; - pooling25.lengths = {3, 3}; - auto mx25 = mm->add_instruction(pooling25, mx24); - migraphx::op::convolution convolution26; - convolution26.padding = {1, 1}; - convolution26.stride = {1, 1}; - convolution26.dilation = {1, 1}; - convolution26.group = 1; - auto mx26 = mm->add_instruction(convolution26, mx25, mx11); - migraphx::op::broadcast broadcast27; - broadcast27.axis = 1; - broadcast27.broadcast_lens = {batch, 384, 13, 13}; - auto mx27 = mm->add_instruction(broadcast27, mx10); - migraphx::op::add add28; - auto mx28 = mm->add_instruction(add28, mx26, mx27); - migraphx::op::relu relu29; - auto mx29 = mm->add_instruction(relu29, mx28); - migraphx::op::convolution convolution30; - convolution30.padding = {1, 1}; - convolution30.stride = {1, 1}; - convolution30.dilation = {1, 1}; - convolution30.group = 1; - auto mx30 = mm->add_instruction(convolution30, mx29, mx9); - migraphx::op::broadcast broadcast31; - broadcast31.axis = 1; - broadcast31.broadcast_lens = {batch, 256, 13, 13}; - auto mx31 = mm->add_instruction(broadcast31, mx8); - migraphx::op::add add32; - auto mx32 = mm->add_instruction(add32, mx30, mx31); - migraphx::op::relu relu33; - auto mx33 = mm->add_instruction(relu33, mx32); - migraphx::op::convolution convolution34; - convolution34.padding = {1, 1}; - convolution34.stride = {1, 1}; - convolution34.dilation = {1, 1}; - convolution34.group = 1; - auto mx34 = mm->add_instruction(convolution34, mx33, mx7); - migraphx::op::broadcast broadcast35; - broadcast35.axis = 1; - broadcast35.broadcast_lens = {batch, 256, 13, 13}; - auto mx35 = mm->add_instruction(broadcast35, mx6); - migraphx::op::add add36; - auto mx36 = mm->add_instruction(add36, mx34, mx35); - migraphx::op::relu relu37; - auto mx37 = mm->add_instruction(relu37, mx36); - migraphx::op::pooling pooling38; - pooling38.mode = migraphx::op::pooling_mode::max; - pooling38.padding = {0, 0}; - pooling38.stride = {2, 2}; - pooling38.lengths = {3, 3}; - auto mx38 = mm->add_instruction(pooling38, mx37); - migraphx::op::flatten flatten39; - flatten39.axis = 1; - auto mx39 = mm->add_instruction(flatten39, mx38); - migraphx::op::identity identity40; - auto mx40 = mm->add_instruction(identity40, mx39); - migraphx::op::transpose transpose41; - transpose41.dims = {1, 0}; - auto mx41 = mm->add_instruction(transpose41, mx5); - migraphx::op::multibroadcast multibroadcast42; - multibroadcast42.output_lens = {batch, 4096}; - auto mx42 = mm->add_instruction(multibroadcast42, mx4); - float dot43_alpha = 1; - float dot43_beta = 1; - auto mx43 = migraphx::add_apply_alpha_beta( - *mm, {mx40, mx41, mx42}, migraphx::make_op("dot"), dot43_alpha, dot43_beta); - migraphx::op::relu relu44; - auto mx44 = mm->add_instruction(relu44, mx43); - migraphx::op::identity identity45; - auto mx45 = mm->add_instruction(identity45, mx44); - migraphx::op::transpose transpose46; - transpose46.dims = {1, 0}; - auto mx46 = mm->add_instruction(transpose46, mx3); - migraphx::op::multibroadcast multibroadcast47; - multibroadcast47.output_lens = {batch, 4096}; - auto mx47 = mm->add_instruction(multibroadcast47, mx2); - float dot48_alpha = 1; - float dot48_beta = 1; - auto mx48 = migraphx::add_apply_alpha_beta( - *mm, {mx45, mx46, mx47}, migraphx::make_op("dot"), dot48_alpha, dot48_beta); - migraphx::op::relu relu49; - auto mx49 = mm->add_instruction(relu49, mx48); - migraphx::op::transpose transpose50; - transpose50.dims = {1, 0}; - auto mx50 = mm->add_instruction(transpose50, mx1); - migraphx::op::multibroadcast multibroadcast51; - multibroadcast51.output_lens = {batch, 1000}; - auto mx51 = mm->add_instruction(multibroadcast51, mx0); - float dot52_alpha = 1; - float dot52_beta = 1; - migraphx::add_apply_alpha_beta( - *mm, {mx49, mx50, mx51}, migraphx::make_op("dot"), dot52_alpha, dot52_beta); + auto x_main_module_15 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 14)); + auto x_main_module_16 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 15)); + auto x_main_module_17 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 16)); + auto x_main_module_18 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 3, 11, 11}}, 17)); + auto x_main_module_19 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 18)); + auto x_main_module_20 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[2,2,2,2],padding_mode:0,stride:[4,4]}")), + x_input_1, + x_main_module_18); + auto x_main_module_21 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,55,55]}")), + x_main_module_19); + auto x_main_module_22 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_20, x_main_module_21); + auto x_main_module_23 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_22); + auto x_main_module_24 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[0,0,0,0],stride:[2,2]}")), + x_main_module_23); + auto x_main_module_25 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[2,2,2,2],padding_mode:0,stride:[1,1]}")), + x_main_module_24, + x_main_module_14); + auto x_main_module_26 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,27,27]}")), + x_main_module_15); + auto x_main_module_27 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_25, x_main_module_26); + auto x_main_module_28 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_27); + auto x_main_module_29 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[0,0,0,0],stride:[2,2]}")), + x_main_module_28); + auto x_main_module_30 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_29, + x_main_module_12); + auto x_main_module_31 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,384,13,13]}")), + x_main_module_13); + auto x_main_module_32 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_30, x_main_module_31); + auto x_main_module_33 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_32); + auto x_main_module_34 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_33, + x_main_module_10); + auto x_main_module_35 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,13,13]}")), + x_main_module_11); + auto x_main_module_36 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_34, x_main_module_35); + auto x_main_module_37 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_36); + auto x_main_module_38 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_37, + x_main_module_16); + auto x_main_module_39 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,13,13]}")), + x_main_module_17); + auto x_main_module_40 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_38, x_main_module_39); + auto x_main_module_41 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_40); + auto x_main_module_42 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[0,0,0,0],stride:[2,2]}")), + x_main_module_41); + auto x_main_module_43 = mmain->add_instruction( + migraphx::make_op("reshape", migraphx::from_json_string("{dims:[1,9216]}")), + x_main_module_42); + auto x_main_module_44 = mmain->add_instruction( + migraphx::make_op("transpose", migraphx::from_json_string("{permutation:[1,0]}")), + x_main_module_6); + auto x_main_module_45 = + mmain->add_instruction(migraphx::make_op("dot"), x_main_module_43, x_main_module_44); + auto x_main_module_46 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,4096]}")), + x_main_module_7); + auto x_main_module_47 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,4096]}")), + x_main_module_2); + auto x_main_module_48 = + mmain->add_instruction(migraphx::make_op("mul"), x_main_module_46, x_main_module_47); + auto x_main_module_49 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_45, x_main_module_48); + auto x_main_module_50 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_49); + auto x_main_module_51 = mmain->add_instruction( + migraphx::make_op("transpose", migraphx::from_json_string("{permutation:[1,0]}")), + x_main_module_4); + auto x_main_module_52 = + mmain->add_instruction(migraphx::make_op("dot"), x_main_module_50, x_main_module_51); + auto x_main_module_53 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,4096]}")), + x_main_module_5); + auto x_main_module_54 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,4096]}")), + x_main_module_1); + auto x_main_module_55 = + mmain->add_instruction(migraphx::make_op("mul"), x_main_module_53, x_main_module_54); + auto x_main_module_56 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_52, x_main_module_55); + auto x_main_module_57 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_56); + auto x_main_module_58 = mmain->add_instruction( + migraphx::make_op("transpose", migraphx::from_json_string("{permutation:[1,0]}")), + x_main_module_8); + auto x_main_module_59 = + mmain->add_instruction(migraphx::make_op("dot"), x_main_module_57, x_main_module_58); + auto x_main_module_60 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,1000]}")), + x_main_module_9); + auto x_main_module_61 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,1000]}")), + x_main_module_0); + auto x_main_module_62 = + mmain->add_instruction(migraphx::make_op("mul"), x_main_module_60, x_main_module_61); + auto x_main_module_63 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_59, x_main_module_62); + mmain->add_return({x_main_module_63}); + return p; } - } // namespace MIGRAPHX_INLINE_NS } // namespace driver } // namespace migraphx diff --git a/src/driver/inceptionv3.cpp b/src/driver/inceptionv3.cpp index 8347b25b9..77f89816c 100644 --- a/src/driver/inceptionv3.cpp +++ b/src/driver/inceptionv3.cpp @@ -1,3 +1,4 @@ + /* * The MIT License (MIT) * @@ -21,10 +22,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include +#include #include #include -#include +#include #include "models.hpp" namespace migraphx { @@ -34,2229 +35,1911 @@ inline namespace MIGRAPHX_INLINE_NS { migraphx::program inceptionv3(unsigned batch) // NOLINT(readability-function-size) { migraphx::program p; - auto* mm = p.get_main_module(); - auto m0 = - mm->add_parameter("0", migraphx::shape{migraphx::shape::float_type, {batch, 3, 299, 299}}); - auto mx0 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000}}, 0)); - auto mx1 = mm->add_literal( + migraphx::module_ref mmain = p.get_main_module(); + auto x_main_module_0 = mmain->add_literal(migraphx::abs( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1}}, 0))); + auto x_input_1 = mmain->add_parameter( + "input.1", migraphx::shape{migraphx::shape::float_type, {batch, 3, 299, 299}}); + auto x_main_module_2 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000, 2048}}, 1)); - auto mx2 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 2))); - auto mx3 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 3)); - auto mx4 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 4)); - auto mx5 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 5))); - auto mx6 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 2048, 1, 1}}, 6)); - auto mx7 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 7))); - auto mx8 = mm->add_literal( + auto x_main_module_3 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000}}, 2)); + auto x_main_module_4 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 3)); + auto x_main_module_5 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 4)); + auto x_main_module_6 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 5)); + auto x_main_module_7 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 6)); + auto x_main_module_8 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 7)); + auto x_main_module_9 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 8)); - auto mx9 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 9)); - auto mx10 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 10))); - auto mx11 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 11)); - auto mx12 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 12))); - auto mx13 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 13)); - auto mx14 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 14)); - auto mx15 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 15))); - auto mx16 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 16)); - auto mx17 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 17))); - auto mx18 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 18)); - auto mx19 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 19)); - auto mx20 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 20))); - auto mx21 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 448, 3, 3}}, 21)); - auto mx22 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 22))); - auto mx23 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 23)); - auto mx24 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 24)); - auto mx25 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 25))); - auto mx26 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {448, 2048, 1, 1}}, 26)); - auto mx27 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 27))); - auto mx28 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 28))); - auto mx29 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 29)); - auto mx30 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 30))); - auto mx31 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 31)); - auto mx32 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 32))); - auto mx33 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 33))); - auto mx34 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 34)); - auto mx35 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 35))); - auto mx36 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 36)); - auto mx37 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 37))); - auto mx38 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 38)); - auto mx39 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 39)); - auto mx40 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 40))); - auto mx41 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 2048, 1, 1}}, 41)); - auto mx42 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 42))); - auto mx43 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 43)); - auto mx44 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 44)); - auto mx45 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 45))); - auto mx46 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {320, 2048, 1, 1}}, 46)); - auto mx47 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 47))); - auto mx48 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 48)); - auto mx49 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 49)); - auto mx50 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 50))); - auto mx51 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 1280, 1, 1}}, 51)); - auto mx52 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 52))); - auto mx53 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 53)); - auto mx54 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 54)); - auto mx55 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 55))); - auto mx56 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 56)); - auto mx57 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 57))); - auto mx58 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 58)); - auto mx59 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 59)); - auto mx60 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 60))); - auto mx61 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 61)); - auto mx62 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 62))); - auto mx63 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 63)); - auto mx64 = mm->add_literal( + auto x_main_module_10 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 288, 3, 3}}, 9)); + auto x_main_module_11 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 10)); + auto x_main_module_12 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 11)); + auto x_main_module_13 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 12)); + auto x_main_module_14 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 13)); + auto x_main_module_15 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 14)); + auto x_main_module_16 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 15)); + auto x_main_module_17 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 16)); + auto x_main_module_18 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 17)); + auto x_main_module_19 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 18)); + auto x_main_module_20 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 48, 5, 5}}, 19)); + auto x_main_module_21 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 20)); + auto x_main_module_22 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {48, 288, 1, 1}}, 21)); + auto x_main_module_23 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 22)); + auto x_main_module_24 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 23)); + auto x_main_module_25 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 24)); + auto x_main_module_26 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 25)); + auto x_main_module_27 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 26)); + auto x_main_module_28 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 27)); + auto x_main_module_29 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 28)); + auto x_main_module_30 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 29)); + auto x_main_module_31 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 30)); + auto x_main_module_32 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 31)); + auto x_main_module_33 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 32)); + auto x_main_module_34 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 48, 5, 5}}, 33)); + auto x_main_module_35 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 34)); + auto x_main_module_36 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {48, 256, 1, 1}}, 35)); + auto x_main_module_37 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 36)); + auto x_main_module_38 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 37)); + auto x_main_module_39 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 38)); + auto x_main_module_40 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {32, 192, 1, 1}}, 39)); + auto x_main_module_41 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 40)); + auto x_main_module_42 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 41)); + auto x_main_module_43 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 42)); + auto x_main_module_44 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 43)); + auto x_main_module_45 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 44)); + auto x_main_module_46 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 192, 1, 1}}, 45)); + auto x_main_module_47 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 46)); + auto x_main_module_48 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 48, 5, 5}}, 47)); + auto x_main_module_49 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 48)); + auto x_main_module_50 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {48, 192, 1, 1}}, 49)); + auto x_main_module_51 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 50)); + auto x_main_module_52 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 192, 1, 1}}, 51)); + auto x_main_module_53 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 52)); + auto x_main_module_54 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 80, 3, 3}}, 53)); + auto x_main_module_55 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {80}}, 54)); + auto x_main_module_56 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {80, 64, 1, 1}}, 55)); + auto x_main_module_57 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 56)); + auto x_main_module_58 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 32, 3, 3}}, 57)); + auto x_main_module_59 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 58)); + auto x_main_module_60 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {32, 32, 3, 3}}, 59)); + auto x_main_module_61 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 60)); + auto x_main_module_62 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {32, 3, 3, 3}}, 61)); + auto x_main_module_63 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 62)); + auto x_main_module_64 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 2048, 1, 1}}, 63)); + auto x_main_module_65 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 64)); - auto mx65 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 65))); - auto mx66 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 448, 3, 3}}, 66)); - auto mx67 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 67))); - auto mx68 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 68)); - auto mx69 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 69)); - auto mx70 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 70))); - auto mx71 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {448, 1280, 1, 1}}, 71)); - auto mx72 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 72))); - auto mx73 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 73)); - auto mx74 = mm->add_literal( + auto x_main_module_66 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 65)); + auto x_main_module_67 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 66)); + auto x_main_module_68 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 67)); + auto x_main_module_69 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 68)); + auto x_main_module_70 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 448, 3, 3}}, 69)); + auto x_main_module_71 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 70)); + auto x_main_module_72 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {448, 2048, 1, 1}}, 71)); + auto x_main_module_73 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 72)); + auto x_main_module_74 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 73)); + auto x_main_module_75 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 74)); - auto mx75 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 75))); - auto mx76 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 76)); - auto mx77 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 77))); - auto mx78 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 78)); - auto mx79 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 79)); - auto mx80 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 80))); - auto mx81 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 81)); - auto mx82 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 82))); - auto mx83 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 83)); - auto mx84 = mm->add_literal( + auto x_main_module_76 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 75)); + auto x_main_module_77 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 76)); + auto x_main_module_78 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 2048, 1, 1}}, 77)); + auto x_main_module_79 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 78)); + auto x_main_module_80 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {320, 2048, 1, 1}}, 79)); + auto x_main_module_81 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 80)); + auto x_main_module_82 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 1280, 1, 1}}, 81)); + auto x_main_module_83 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 82)); + auto x_main_module_84 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 83)); + auto x_main_module_85 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 84)); - auto mx85 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 85))); - auto mx86 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 1280, 1, 1}}, 86)); - auto mx87 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 87))); - auto mx88 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 88)); - auto mx89 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 89)); - auto mx90 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 90))); - auto mx91 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {320, 1280, 1, 1}}, 91)); - auto mx92 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 92))); - auto mx93 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 93)); - auto mx94 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 94)); - auto mx95 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 95))); - auto mx96 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 3, 3}}, 96)); - auto mx97 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 97))); - auto mx98 = mm->add_literal( + auto x_main_module_86 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 85)); + auto x_main_module_87 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 86)); + auto x_main_module_88 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 448, 3, 3}}, 87)); + auto x_main_module_89 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {448}}, 88)); + auto x_main_module_90 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {448, 1280, 1, 1}}, 89)); + auto x_main_module_91 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 90)); + auto x_main_module_92 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 3, 1}}, 91)); + auto x_main_module_93 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 92)); + auto x_main_module_94 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 384, 1, 3}}, 93)); + auto x_main_module_95 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 94)); + auto x_main_module_96 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {384, 1280, 1, 1}}, 95)); + auto x_main_module_97 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 96)); + auto x_main_module_98 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {320, 1280, 1, 1}}, 97)); + auto x_main_module_99 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 98)); - auto mx99 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 99)); - auto mx100 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 100))); - auto mx101 = mm->add_literal(migraphx::generate_literal( + auto x_main_module_100 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 3, 3}}, 99)); + auto x_main_module_101 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 100)); + auto x_main_module_102 = mmain->add_literal(migraphx::generate_literal( migraphx::shape{migraphx::shape::float_type, {192, 192, 7, 1}}, 101)); - auto mx102 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 102))); - auto mx103 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 103)); - auto mx104 = mm->add_literal( + auto x_main_module_103 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 102)); + auto x_main_module_104 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 103)); + auto x_main_module_105 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 104)); - auto mx105 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 105))); - auto mx106 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 106)); - auto mx107 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 107))); - auto mx108 = mm->add_literal( + auto x_main_module_106 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 105)); + auto x_main_module_107 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 106)); + auto x_main_module_108 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {320, 192, 3, 3}}, 107)); + auto x_main_module_109 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 108)); - auto mx109 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 109)); - auto mx110 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 110))); - auto mx111 = mm->add_literal(migraphx::generate_literal( + auto x_main_module_110 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 109)); + auto x_main_module_111 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 110)); + auto x_main_module_112 = mmain->add_literal(migraphx::generate_literal( migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 111)); - auto mx112 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 112))); - auto mx113 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 113)); - auto mx114 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 114)); - auto mx115 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {320}}, 115))); - auto mx116 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {320, 192, 3, 3}}, 116)); - auto mx117 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 117))); - auto mx118 = mm->add_literal( + auto x_main_module_113 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 112)); + auto x_main_module_114 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 113)); + auto x_main_module_115 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 114)); + auto x_main_module_116 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 7, 1}}, 115)); + auto x_main_module_117 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 116)); + auto x_main_module_118 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 117)); + auto x_main_module_119 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 118)); - auto mx119 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 119)); - auto mx120 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 120))); - auto mx121 = mm->add_literal(migraphx::generate_literal( + auto x_main_module_120 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 7, 1}}, 119)); + auto x_main_module_121 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 120)); + auto x_main_module_122 = mmain->add_literal(migraphx::generate_literal( migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 121)); - auto mx134 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 134))); - auto mx135 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 135)); - auto mx136 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 136)); - auto mx137 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 137))); - auto mx138 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 138)); - auto mx139 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 139))); - auto mx140 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 140)); - auto mx141 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 141)); - auto mx142 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 142))); - auto mx143 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 143)); - auto mx144 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 144))); - auto mx145 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 145)); - auto mx146 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 146)); - auto mx147 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 147))); - auto mx148 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 7, 1}}, 148)); - auto mx149 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 149))); - auto mx150 = mm->add_literal( + auto x_main_module_123 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 122)); + auto x_main_module_124 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 7, 1}}, 123)); + auto x_main_module_125 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 124)); + auto x_main_module_126 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 125)); + auto x_main_module_127 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 126)); + auto x_main_module_128 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 127)); + auto x_main_module_129 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 128)); + auto x_main_module_130 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 129)); + auto x_main_module_131 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 130)); + auto x_main_module_132 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 131)); + auto x_main_module_133 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 132)); + auto x_main_module_134 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 160, 1, 7}}, 133)); + auto x_main_module_135 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 134)); + auto x_main_module_136 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 135)); + auto x_main_module_137 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 136)); + auto x_main_module_138 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 137)); + auto x_main_module_139 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 138)); + auto x_main_module_140 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 139)); + auto x_main_module_141 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 140)); + auto x_main_module_142 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 141)); + auto x_main_module_143 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 142)); + auto x_main_module_144 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 160, 7, 1}}, 143)); + auto x_main_module_145 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 144)); + auto x_main_module_146 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 145)); + auto x_main_module_147 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 146)); + auto x_main_module_148 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 147)); + auto x_main_module_149 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 148)); + auto x_main_module_150 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 149)); + auto x_main_module_151 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 150)); - auto mx151 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 151)); - auto mx152 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 152))); - auto mx153 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 153)); - auto mx154 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 154))); - auto mx155 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 155)); - auto mx156 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 156)); - auto mx157 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 157))); - auto mx158 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 7, 1}}, 158)); - auto mx159 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 159))); - auto mx160 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 160)); - auto mx161 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 161)); - auto mx162 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 162))); - auto mx163 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 163)); - auto mx164 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 164))); - auto mx165 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 165)); - auto mx166 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 166)); - auto mx167 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 167))); - auto mx168 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 7, 1}}, 168)); - auto mx169 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 169))); - auto mx170 = mm->add_literal( + auto x_main_module_152 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 151)); + auto x_main_module_153 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 152)); + auto x_main_module_154 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 160, 1, 7}}, 153)); + auto x_main_module_155 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 154)); + auto x_main_module_156 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 155)); + auto x_main_module_157 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 156)); + auto x_main_module_158 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 157)); + auto x_main_module_159 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 158)); + auto x_main_module_160 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 159)); + auto x_main_module_161 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 160)); + auto x_main_module_162 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 161)); + auto x_main_module_163 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 162)); + auto x_main_module_164 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 160, 7, 1}}, 163)); + auto x_main_module_165 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 164)); + auto x_main_module_166 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 165)); + auto x_main_module_167 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 166)); + auto x_main_module_168 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 167)); + auto x_main_module_169 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 168)); + auto x_main_module_170 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 169)); + auto x_main_module_171 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 170)); - auto mx171 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 171)); - auto mx172 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 172))); - auto mx173 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 192, 1, 7}}, 173)); - auto mx174 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 174))); - auto mx175 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 175)); - auto mx176 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 176)); - auto mx177 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 177))); - auto mx178 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 178)); - auto mx179 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 179))); - auto mx180 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 180)); - auto mx181 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 181)); - auto mx182 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 182))); - auto mx183 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 183)); - auto mx184 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 184))); - auto mx185 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 185)); - auto mx186 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 186)); - auto mx187 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 187))); - auto mx188 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 188)); - auto mx189 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 189))); - auto mx190 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 190)); - auto mx191 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 191)); - auto mx192 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 192))); - auto mx193 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 160, 1, 7}}, 193)); - auto mx194 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 194))); - auto mx195 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 195)); - auto mx196 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 196)); - auto mx197 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 197))); - auto mx198 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 198)); - auto mx199 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 199))); - auto mx200 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 200)); - auto mx201 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 201)); - auto mx202 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 202))); - auto mx203 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 203)); - auto mx204 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 204))); - auto mx205 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 205)); - auto mx206 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 206)); - auto mx207 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 207))); - auto mx208 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 208)); - auto mx209 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 209))); - auto mx210 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 210)); - auto mx211 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 211)); - auto mx212 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 212))); - auto mx213 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 213)); - auto mx214 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 214))); - auto mx215 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 215)); - auto mx216 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 216)); - auto mx217 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 217))); - auto mx218 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 160, 7, 1}}, 218)); - auto mx219 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 219))); - auto mx220 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 220)); - auto mx221 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 221)); - auto mx222 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 222))); - auto mx223 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 223)); - auto mx224 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 224))); - auto mx225 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 225)); - auto mx226 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 226)); - auto mx227 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 227))); - auto mx228 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 228)); - auto mx229 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 229))); - auto mx230 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 230)); - auto mx231 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 231)); - auto mx232 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 232))); - auto mx233 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 233)); - auto mx234 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 234))); - auto mx235 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 235)); - auto mx236 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 236)); - auto mx237 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 237))); - auto mx238 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 238)); - auto mx239 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 239))); - auto mx240 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 240)); - auto mx241 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 241)); - auto mx242 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 242))); - auto mx243 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 160, 1, 7}}, 243)); - auto mx244 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 244))); - auto mx245 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 245)); - auto mx246 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 246)); - auto mx247 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 247))); - auto mx248 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 248)); - auto mx249 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 249))); - auto mx250 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 250)); - auto mx251 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 251)); - auto mx252 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 252))); - auto mx253 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 253)); - auto mx254 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 254))); - auto mx255 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 255)); - auto mx256 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 256)); - auto mx257 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 257))); - auto mx258 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 7, 1}}, 258)); - auto mx259 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 259))); - auto mx260 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 260)); - auto mx261 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 261)); - auto mx262 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 262))); - auto mx263 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 263)); - auto mx264 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 264))); - auto mx265 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 265)); - auto mx266 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 266)); - auto mx267 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 267))); - auto mx268 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 160, 7, 1}}, 268)); - auto mx269 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 269))); - auto mx270 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 270)); - auto mx271 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 271)); - auto mx272 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 272))); - auto mx273 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 160, 1, 7}}, 273)); - auto mx274 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 274))); - auto mx275 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 275)); - auto mx276 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 276)); - auto mx277 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {160}}, 277))); - auto mx278 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {160, 768, 1, 1}}, 278)); - auto mx279 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 279))); - auto mx280 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 280)); - auto mx281 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 281)); - auto mx282 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 282))); - auto mx283 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 283)); - auto mx284 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 284))); - auto mx285 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 285)); - auto mx286 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 286)); - auto mx287 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 287))); - auto mx288 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 288)); - auto mx289 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 289))); - auto mx290 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 290)); - auto mx291 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 291)); - auto mx292 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 292))); - auto mx293 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 128, 1, 7}}, 293)); - auto mx294 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 294))); - auto mx295 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 295)); - auto mx296 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 296)); - auto mx297 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 297))); - auto mx298 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 7, 1}}, 298)); - auto mx299 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 299))); - auto mx300 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 300)); - auto mx301 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 301)); - auto mx302 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 302))); - auto mx303 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 1, 7}}, 303)); - auto mx304 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 304))); - auto mx305 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 305)); - auto mx306 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 306)); - auto mx307 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 307))); - auto mx308 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 7, 1}}, 308)); - auto mx309 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 309))); - auto mx310 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 310)); - auto mx311 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 311)); - auto mx312 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 312))); - auto mx313 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 768, 1, 1}}, 313)); - auto mx314 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 314))); - auto mx315 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 315)); - auto mx316 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 316)); - auto mx317 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 317))); - auto mx318 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 128, 7, 1}}, 318)); - auto mx319 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 319))); - auto mx320 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 320)); - auto mx321 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 321)); - auto mx322 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 322))); - auto mx323 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 1, 7}}, 323)); - auto mx324 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 324))); - auto mx325 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 325)); - auto mx326 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 326)); - auto mx327 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 327))); - auto mx328 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 768, 1, 1}}, 328)); - auto mx329 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 329))); - auto mx330 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 330)); - auto mx331 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 331)); - auto mx332 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 332))); - auto mx333 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 333)); - auto mx334 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 334))); - auto mx335 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 335)); - auto mx336 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 336)); - auto mx337 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 337))); - auto mx338 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 338)); - auto mx339 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 339))); - auto mx340 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 340)); - auto mx341 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 341)); - auto mx342 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 342))); - auto mx343 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 343)); - auto mx344 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 344))); - auto mx345 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 345)); - auto mx346 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 346)); - auto mx347 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 347))); - auto mx348 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 348)); - auto mx349 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 349))); - auto mx350 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 350)); - auto mx351 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 351)); - auto mx352 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {384}}, 352))); - auto mx353 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {384, 288, 3, 3}}, 353)); - auto mx354 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 354))); - auto mx355 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 355)); - auto mx356 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 356)); - auto mx357 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 357))); - auto mx358 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 358)); - auto mx359 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 359))); - auto mx360 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 360)); - auto mx361 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 361)); - auto mx362 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 362))); - auto mx363 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 363)); - auto mx364 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 364))); - auto mx365 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 365)); - auto mx366 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 366)); - auto mx367 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 367))); - auto mx368 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 368)); - auto mx369 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 369))); - auto mx370 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 370)); - auto mx371 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 371)); - auto mx372 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 372))); - auto mx373 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 373)); - auto mx374 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 374))); - auto mx375 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 375)); - auto mx376 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 376)); - auto mx377 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 377))); - auto mx378 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 48, 5, 5}}, 378)); - auto mx379 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 379))); - auto mx380 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 380)); - auto mx381 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 381)); - auto mx382 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 382))); - auto mx383 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {48, 288, 1, 1}}, 383)); - auto mx384 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 384))); - auto mx385 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 385)); - auto mx386 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 386)); - auto mx387 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 387))); - auto mx388 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 288, 1, 1}}, 388)); - auto mx389 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 389))); - auto mx390 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 390)); - auto mx391 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 391)); - auto mx392 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 392))); - auto mx393 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 393)); - auto mx394 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 394))); - auto mx395 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 395)); - auto mx396 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 396)); - auto mx397 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 397))); - auto mx398 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 398)); - auto mx399 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 399))); - auto mx400 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 400)); - auto mx401 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 401)); - auto mx402 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 402))); - auto mx403 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 403)); - auto mx404 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 404))); - auto mx405 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 405)); - auto mx406 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 406)); - auto mx407 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 407))); - auto mx408 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 408)); - auto mx409 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 409))); - auto mx410 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 410)); - auto mx411 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 411)); - auto mx412 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 412))); - auto mx413 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 48, 5, 5}}, 413)); - auto mx414 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 414))); - auto mx415 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 415)); - auto mx416 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 416)); - auto mx417 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 417))); - auto mx418 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {48, 256, 1, 1}}, 418)); - auto mx419 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 419))); - auto mx420 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 420)); - auto mx421 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 421)); - auto mx422 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 422))); - auto mx423 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 423)); - auto mx424 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 424))); - auto mx425 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 425)); - auto mx426 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 426)); - auto mx427 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 427))); - auto mx428 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {32, 192, 1, 1}}, 428)); - auto mx429 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 429))); - auto mx430 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 430)); - auto mx431 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 431)); - auto mx432 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 432))); - auto mx433 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 96, 3, 3}}, 433)); - auto mx434 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 434))); - auto mx435 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 435)); - auto mx436 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 436)); - auto mx437 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 437))); - auto mx438 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {96, 64, 3, 3}}, 438)); - auto mx439 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 439))); - auto mx440 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 440)); - auto mx441 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 441)); - auto mx442 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 442))); - auto mx443 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 192, 1, 1}}, 443)); - auto mx444 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 444))); - auto mx445 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 445)); - auto mx446 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 446)); - auto mx447 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 447))); - auto mx448 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 48, 5, 5}}, 448)); - auto mx449 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 449))); - auto mx450 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 450)); - auto mx451 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 451)); - auto mx452 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {48}}, 452))); - auto mx453 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {48, 192, 1, 1}}, 453)); - auto mx454 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 454))); - auto mx455 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 455)); - auto mx456 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 456)); - auto mx457 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 457))); - auto mx458 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 192, 1, 1}}, 458)); - auto mx459 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 459))); - auto mx460 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 460)); - auto mx461 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 461)); - auto mx462 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 462))); - auto mx463 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {192, 80, 3, 3}}, 463)); - auto mx464 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {80}}, 464))); - auto mx465 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {80}}, 465)); - auto mx466 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {80}}, 466)); - auto mx467 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {80}}, 467))); - auto mx468 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {80, 64, 1, 1}}, 468)); - auto mx469 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 469))); - auto mx470 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 470)); - auto mx471 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 471)); - auto mx472 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 472))); - auto mx473 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 32, 3, 3}}, 473)); - auto mx474 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 474))); - auto mx475 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 475)); - auto mx476 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 476)); - auto mx477 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 477))); - auto mx478 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {32, 32, 3, 3}}, 478)); - auto mx479 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 479))); - auto mx480 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 480)); - auto mx481 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 481)); - auto mx482 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {32}}, 482))); - auto mx483 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {32, 3, 3, 3}}, 483)); - migraphx::op::convolution convolution484; - convolution484.padding = {0, 0}; - convolution484.stride = {2, 2}; - convolution484.dilation = {1, 1}; - convolution484.group = 1; - auto mx484 = mm->add_instruction(convolution484, m0, mx483); - migraphx::op::batch_norm_inference batch_norm_inference485; - batch_norm_inference485.epsilon = 0.001; - batch_norm_inference485.momentum = 0.9; - auto mx485 = mm->add_instruction(batch_norm_inference485, mx484, mx482, mx481, mx480, mx479); - migraphx::op::relu relu486; - auto mx486 = mm->add_instruction(relu486, mx485); - migraphx::op::convolution convolution487; - convolution487.padding = {0, 0}; - convolution487.stride = {1, 1}; - convolution487.dilation = {1, 1}; - convolution487.group = 1; - auto mx487 = mm->add_instruction(convolution487, mx486, mx478); - migraphx::op::batch_norm_inference batch_norm_inference488; - batch_norm_inference488.epsilon = 0.001; - batch_norm_inference488.momentum = 0.9; - auto mx488 = mm->add_instruction(batch_norm_inference488, mx487, mx477, mx476, mx475, mx474); - migraphx::op::relu relu489; - auto mx489 = mm->add_instruction(relu489, mx488); - migraphx::op::convolution convolution490; - convolution490.padding = {1, 1}; - convolution490.stride = {1, 1}; - convolution490.dilation = {1, 1}; - convolution490.group = 1; - auto mx490 = mm->add_instruction(convolution490, mx489, mx473); - migraphx::op::batch_norm_inference batch_norm_inference491; - batch_norm_inference491.epsilon = 0.001; - batch_norm_inference491.momentum = 0.9; - auto mx491 = mm->add_instruction(batch_norm_inference491, mx490, mx472, mx471, mx470, mx469); - migraphx::op::relu relu492; - auto mx492 = mm->add_instruction(relu492, mx491); - migraphx::op::pooling pooling493; - pooling493.mode = migraphx::op::pooling_mode::max; - pooling493.padding = {0, 0}; - pooling493.stride = {2, 2}; - pooling493.lengths = {3, 3}; - auto mx493 = mm->add_instruction(pooling493, mx492); - migraphx::op::convolution convolution494; - convolution494.padding = {0, 0}; - convolution494.stride = {1, 1}; - convolution494.dilation = {1, 1}; - convolution494.group = 1; - auto mx494 = mm->add_instruction(convolution494, mx493, mx468); - migraphx::op::batch_norm_inference batch_norm_inference495; - batch_norm_inference495.epsilon = 0.001; - batch_norm_inference495.momentum = 0.9; - auto mx495 = mm->add_instruction(batch_norm_inference495, mx494, mx467, mx466, mx465, mx464); - migraphx::op::relu relu496; - auto mx496 = mm->add_instruction(relu496, mx495); - migraphx::op::convolution convolution497; - convolution497.padding = {0, 0}; - convolution497.stride = {1, 1}; - convolution497.dilation = {1, 1}; - convolution497.group = 1; - auto mx497 = mm->add_instruction(convolution497, mx496, mx463); - migraphx::op::batch_norm_inference batch_norm_inference498; - batch_norm_inference498.epsilon = 0.001; - batch_norm_inference498.momentum = 0.9; - auto mx498 = mm->add_instruction(batch_norm_inference498, mx497, mx462, mx461, mx460, mx459); - migraphx::op::relu relu499; - auto mx499 = mm->add_instruction(relu499, mx498); - migraphx::op::pooling pooling500; - pooling500.mode = migraphx::op::pooling_mode::max; - pooling500.padding = {0, 0}; - pooling500.stride = {2, 2}; - pooling500.lengths = {3, 3}; - auto mx500 = mm->add_instruction(pooling500, mx499); - migraphx::op::convolution convolution501; - convolution501.padding = {0, 0}; - convolution501.stride = {1, 1}; - convolution501.dilation = {1, 1}; - convolution501.group = 1; - auto mx501 = mm->add_instruction(convolution501, mx500, mx458); - migraphx::op::batch_norm_inference batch_norm_inference502; - batch_norm_inference502.epsilon = 0.001; - batch_norm_inference502.momentum = 0.9; - auto mx502 = mm->add_instruction(batch_norm_inference502, mx501, mx457, mx456, mx455, mx454); - migraphx::op::relu relu503; - auto mx503 = mm->add_instruction(relu503, mx502); - migraphx::op::convolution convolution504; - convolution504.padding = {0, 0}; - convolution504.stride = {1, 1}; - convolution504.dilation = {1, 1}; - convolution504.group = 1; - auto mx504 = mm->add_instruction(convolution504, mx500, mx453); - migraphx::op::batch_norm_inference batch_norm_inference505; - batch_norm_inference505.epsilon = 0.001; - batch_norm_inference505.momentum = 0.9; - auto mx505 = mm->add_instruction(batch_norm_inference505, mx504, mx452, mx451, mx450, mx449); - migraphx::op::relu relu506; - auto mx506 = mm->add_instruction(relu506, mx505); - migraphx::op::convolution convolution507; - convolution507.padding = {2, 2}; - convolution507.stride = {1, 1}; - convolution507.dilation = {1, 1}; - convolution507.group = 1; - auto mx507 = mm->add_instruction(convolution507, mx506, mx448); - migraphx::op::batch_norm_inference batch_norm_inference508; - batch_norm_inference508.epsilon = 0.001; - batch_norm_inference508.momentum = 0.9; - auto mx508 = mm->add_instruction(batch_norm_inference508, mx507, mx447, mx446, mx445, mx444); - migraphx::op::relu relu509; - auto mx509 = mm->add_instruction(relu509, mx508); - migraphx::op::convolution convolution510; - convolution510.padding = {0, 0}; - convolution510.stride = {1, 1}; - convolution510.dilation = {1, 1}; - convolution510.group = 1; - auto mx510 = mm->add_instruction(convolution510, mx500, mx443); - migraphx::op::batch_norm_inference batch_norm_inference511; - batch_norm_inference511.epsilon = 0.001; - batch_norm_inference511.momentum = 0.9; - auto mx511 = mm->add_instruction(batch_norm_inference511, mx510, mx442, mx441, mx440, mx439); - migraphx::op::relu relu512; - auto mx512 = mm->add_instruction(relu512, mx511); - migraphx::op::convolution convolution513; - convolution513.padding = {1, 1}; - convolution513.stride = {1, 1}; - convolution513.dilation = {1, 1}; - convolution513.group = 1; - auto mx513 = mm->add_instruction(convolution513, mx512, mx438); - migraphx::op::batch_norm_inference batch_norm_inference514; - batch_norm_inference514.epsilon = 0.001; - batch_norm_inference514.momentum = 0.9; - auto mx514 = mm->add_instruction(batch_norm_inference514, mx513, mx437, mx436, mx435, mx434); - migraphx::op::relu relu515; - auto mx515 = mm->add_instruction(relu515, mx514); - migraphx::op::convolution convolution516; - convolution516.padding = {1, 1}; - convolution516.stride = {1, 1}; - convolution516.dilation = {1, 1}; - convolution516.group = 1; - auto mx516 = mm->add_instruction(convolution516, mx515, mx433); - migraphx::op::batch_norm_inference batch_norm_inference517; - batch_norm_inference517.epsilon = 0.001; - batch_norm_inference517.momentum = 0.9; - auto mx517 = mm->add_instruction(batch_norm_inference517, mx516, mx432, mx431, mx430, mx429); - migraphx::op::relu relu518; - auto mx518 = mm->add_instruction(relu518, mx517); - migraphx::op::pooling pooling519; - pooling519.mode = migraphx::op::pooling_mode::average; - pooling519.padding = {1, 1}; - pooling519.stride = {1, 1}; - pooling519.lengths = {3, 3}; - auto mx519 = mm->add_instruction(pooling519, mx500); - migraphx::op::convolution convolution520; - convolution520.padding = {0, 0}; - convolution520.stride = {1, 1}; - convolution520.dilation = {1, 1}; - convolution520.group = 1; - auto mx520 = mm->add_instruction(convolution520, mx519, mx428); - migraphx::op::batch_norm_inference batch_norm_inference521; - batch_norm_inference521.epsilon = 0.001; - batch_norm_inference521.momentum = 0.9; - auto mx521 = mm->add_instruction(batch_norm_inference521, mx520, mx427, mx426, mx425, mx424); - migraphx::op::relu relu522; - auto mx522 = mm->add_instruction(relu522, mx521); - migraphx::op::concat concat523; - concat523.axis = 1; - auto mx523 = mm->add_instruction(concat523, mx503, mx509, mx518, mx522); - migraphx::op::convolution convolution524; - convolution524.padding = {0, 0}; - convolution524.stride = {1, 1}; - convolution524.dilation = {1, 1}; - convolution524.group = 1; - auto mx524 = mm->add_instruction(convolution524, mx523, mx423); - migraphx::op::batch_norm_inference batch_norm_inference525; - batch_norm_inference525.epsilon = 0.001; - batch_norm_inference525.momentum = 0.9; - auto mx525 = mm->add_instruction(batch_norm_inference525, mx524, mx422, mx421, mx420, mx419); - migraphx::op::relu relu526; - auto mx526 = mm->add_instruction(relu526, mx525); - migraphx::op::convolution convolution527; - convolution527.padding = {0, 0}; - convolution527.stride = {1, 1}; - convolution527.dilation = {1, 1}; - convolution527.group = 1; - auto mx527 = mm->add_instruction(convolution527, mx523, mx418); - migraphx::op::batch_norm_inference batch_norm_inference528; - batch_norm_inference528.epsilon = 0.001; - batch_norm_inference528.momentum = 0.9; - auto mx528 = mm->add_instruction(batch_norm_inference528, mx527, mx417, mx416, mx415, mx414); - migraphx::op::relu relu529; - auto mx529 = mm->add_instruction(relu529, mx528); - migraphx::op::convolution convolution530; - convolution530.padding = {2, 2}; - convolution530.stride = {1, 1}; - convolution530.dilation = {1, 1}; - convolution530.group = 1; - auto mx530 = mm->add_instruction(convolution530, mx529, mx413); - migraphx::op::batch_norm_inference batch_norm_inference531; - batch_norm_inference531.epsilon = 0.001; - batch_norm_inference531.momentum = 0.9; - auto mx531 = mm->add_instruction(batch_norm_inference531, mx530, mx412, mx411, mx410, mx409); - migraphx::op::relu relu532; - auto mx532 = mm->add_instruction(relu532, mx531); - migraphx::op::convolution convolution533; - convolution533.padding = {0, 0}; - convolution533.stride = {1, 1}; - convolution533.dilation = {1, 1}; - convolution533.group = 1; - auto mx533 = mm->add_instruction(convolution533, mx523, mx408); - migraphx::op::batch_norm_inference batch_norm_inference534; - batch_norm_inference534.epsilon = 0.001; - batch_norm_inference534.momentum = 0.9; - auto mx534 = mm->add_instruction(batch_norm_inference534, mx533, mx407, mx406, mx405, mx404); - migraphx::op::relu relu535; - auto mx535 = mm->add_instruction(relu535, mx534); - migraphx::op::convolution convolution536; - convolution536.padding = {1, 1}; - convolution536.stride = {1, 1}; - convolution536.dilation = {1, 1}; - convolution536.group = 1; - auto mx536 = mm->add_instruction(convolution536, mx535, mx403); - migraphx::op::batch_norm_inference batch_norm_inference537; - batch_norm_inference537.epsilon = 0.001; - batch_norm_inference537.momentum = 0.9; - auto mx537 = mm->add_instruction(batch_norm_inference537, mx536, mx402, mx401, mx400, mx399); - migraphx::op::relu relu538; - auto mx538 = mm->add_instruction(relu538, mx537); - migraphx::op::convolution convolution539; - convolution539.padding = {1, 1}; - convolution539.stride = {1, 1}; - convolution539.dilation = {1, 1}; - convolution539.group = 1; - auto mx539 = mm->add_instruction(convolution539, mx538, mx398); - migraphx::op::batch_norm_inference batch_norm_inference540; - batch_norm_inference540.epsilon = 0.001; - batch_norm_inference540.momentum = 0.9; - auto mx540 = mm->add_instruction(batch_norm_inference540, mx539, mx397, mx396, mx395, mx394); - migraphx::op::relu relu541; - auto mx541 = mm->add_instruction(relu541, mx540); - migraphx::op::pooling pooling542; - pooling542.mode = migraphx::op::pooling_mode::average; - pooling542.padding = {1, 1}; - pooling542.stride = {1, 1}; - pooling542.lengths = {3, 3}; - auto mx542 = mm->add_instruction(pooling542, mx523); - migraphx::op::convolution convolution543; - convolution543.padding = {0, 0}; - convolution543.stride = {1, 1}; - convolution543.dilation = {1, 1}; - convolution543.group = 1; - auto mx543 = mm->add_instruction(convolution543, mx542, mx393); - migraphx::op::batch_norm_inference batch_norm_inference544; - batch_norm_inference544.epsilon = 0.001; - batch_norm_inference544.momentum = 0.9; - auto mx544 = mm->add_instruction(batch_norm_inference544, mx543, mx392, mx391, mx390, mx389); - migraphx::op::relu relu545; - auto mx545 = mm->add_instruction(relu545, mx544); - migraphx::op::concat concat546; - concat546.axis = 1; - auto mx546 = mm->add_instruction(concat546, mx526, mx532, mx541, mx545); - migraphx::op::convolution convolution547; - convolution547.padding = {0, 0}; - convolution547.stride = {1, 1}; - convolution547.dilation = {1, 1}; - convolution547.group = 1; - auto mx547 = mm->add_instruction(convolution547, mx546, mx388); - migraphx::op::batch_norm_inference batch_norm_inference548; - batch_norm_inference548.epsilon = 0.001; - batch_norm_inference548.momentum = 0.9; - auto mx548 = mm->add_instruction(batch_norm_inference548, mx547, mx387, mx386, mx385, mx384); - migraphx::op::relu relu549; - auto mx549 = mm->add_instruction(relu549, mx548); - migraphx::op::convolution convolution550; - convolution550.padding = {0, 0}; - convolution550.stride = {1, 1}; - convolution550.dilation = {1, 1}; - convolution550.group = 1; - auto mx550 = mm->add_instruction(convolution550, mx546, mx383); - migraphx::op::batch_norm_inference batch_norm_inference551; - batch_norm_inference551.epsilon = 0.001; - batch_norm_inference551.momentum = 0.9; - auto mx551 = mm->add_instruction(batch_norm_inference551, mx550, mx382, mx381, mx380, mx379); - migraphx::op::relu relu552; - auto mx552 = mm->add_instruction(relu552, mx551); - migraphx::op::convolution convolution553; - convolution553.padding = {2, 2}; - convolution553.stride = {1, 1}; - convolution553.dilation = {1, 1}; - convolution553.group = 1; - auto mx553 = mm->add_instruction(convolution553, mx552, mx378); - migraphx::op::batch_norm_inference batch_norm_inference554; - batch_norm_inference554.epsilon = 0.001; - batch_norm_inference554.momentum = 0.9; - auto mx554 = mm->add_instruction(batch_norm_inference554, mx553, mx377, mx376, mx375, mx374); - migraphx::op::relu relu555; - auto mx555 = mm->add_instruction(relu555, mx554); - migraphx::op::convolution convolution556; - convolution556.padding = {0, 0}; - convolution556.stride = {1, 1}; - convolution556.dilation = {1, 1}; - convolution556.group = 1; - auto mx556 = mm->add_instruction(convolution556, mx546, mx373); - migraphx::op::batch_norm_inference batch_norm_inference557; - batch_norm_inference557.epsilon = 0.001; - batch_norm_inference557.momentum = 0.9; - auto mx557 = mm->add_instruction(batch_norm_inference557, mx556, mx372, mx371, mx370, mx369); - migraphx::op::relu relu558; - auto mx558 = mm->add_instruction(relu558, mx557); - migraphx::op::convolution convolution559; - convolution559.padding = {1, 1}; - convolution559.stride = {1, 1}; - convolution559.dilation = {1, 1}; - convolution559.group = 1; - auto mx559 = mm->add_instruction(convolution559, mx558, mx368); - migraphx::op::batch_norm_inference batch_norm_inference560; - batch_norm_inference560.epsilon = 0.001; - batch_norm_inference560.momentum = 0.9; - auto mx560 = mm->add_instruction(batch_norm_inference560, mx559, mx367, mx366, mx365, mx364); - migraphx::op::relu relu561; - auto mx561 = mm->add_instruction(relu561, mx560); - migraphx::op::convolution convolution562; - convolution562.padding = {1, 1}; - convolution562.stride = {1, 1}; - convolution562.dilation = {1, 1}; - convolution562.group = 1; - auto mx562 = mm->add_instruction(convolution562, mx561, mx363); - migraphx::op::batch_norm_inference batch_norm_inference563; - batch_norm_inference563.epsilon = 0.001; - batch_norm_inference563.momentum = 0.9; - auto mx563 = mm->add_instruction(batch_norm_inference563, mx562, mx362, mx361, mx360, mx359); - migraphx::op::relu relu564; - auto mx564 = mm->add_instruction(relu564, mx563); - migraphx::op::pooling pooling565; - pooling565.mode = migraphx::op::pooling_mode::average; - pooling565.padding = {1, 1}; - pooling565.stride = {1, 1}; - pooling565.lengths = {3, 3}; - auto mx565 = mm->add_instruction(pooling565, mx546); - migraphx::op::convolution convolution566; - convolution566.padding = {0, 0}; - convolution566.stride = {1, 1}; - convolution566.dilation = {1, 1}; - convolution566.group = 1; - auto mx566 = mm->add_instruction(convolution566, mx565, mx358); - migraphx::op::batch_norm_inference batch_norm_inference567; - batch_norm_inference567.epsilon = 0.001; - batch_norm_inference567.momentum = 0.9; - auto mx567 = mm->add_instruction(batch_norm_inference567, mx566, mx357, mx356, mx355, mx354); - migraphx::op::relu relu568; - auto mx568 = mm->add_instruction(relu568, mx567); - migraphx::op::concat concat569; - concat569.axis = 1; - auto mx569 = mm->add_instruction(concat569, mx549, mx555, mx564, mx568); - migraphx::op::convolution convolution570; - convolution570.padding = {0, 0}; - convolution570.stride = {2, 2}; - convolution570.dilation = {1, 1}; - convolution570.group = 1; - auto mx570 = mm->add_instruction(convolution570, mx569, mx353); - migraphx::op::batch_norm_inference batch_norm_inference571; - batch_norm_inference571.epsilon = 0.001; - batch_norm_inference571.momentum = 0.9; - auto mx571 = mm->add_instruction(batch_norm_inference571, mx570, mx352, mx351, mx350, mx349); - migraphx::op::relu relu572; - auto mx572 = mm->add_instruction(relu572, mx571); - migraphx::op::convolution convolution573; - convolution573.padding = {0, 0}; - convolution573.stride = {1, 1}; - convolution573.dilation = {1, 1}; - convolution573.group = 1; - auto mx573 = mm->add_instruction(convolution573, mx569, mx348); - migraphx::op::batch_norm_inference batch_norm_inference574; - batch_norm_inference574.epsilon = 0.001; - batch_norm_inference574.momentum = 0.9; - auto mx574 = mm->add_instruction(batch_norm_inference574, mx573, mx347, mx346, mx345, mx344); - migraphx::op::relu relu575; - auto mx575 = mm->add_instruction(relu575, mx574); - migraphx::op::convolution convolution576; - convolution576.padding = {1, 1}; - convolution576.stride = {1, 1}; - convolution576.dilation = {1, 1}; - convolution576.group = 1; - auto mx576 = mm->add_instruction(convolution576, mx575, mx343); - migraphx::op::batch_norm_inference batch_norm_inference577; - batch_norm_inference577.epsilon = 0.001; - batch_norm_inference577.momentum = 0.9; - auto mx577 = mm->add_instruction(batch_norm_inference577, mx576, mx342, mx341, mx340, mx339); - migraphx::op::relu relu578; - auto mx578 = mm->add_instruction(relu578, mx577); - migraphx::op::convolution convolution579; - convolution579.padding = {0, 0}; - convolution579.stride = {2, 2}; - convolution579.dilation = {1, 1}; - convolution579.group = 1; - auto mx579 = mm->add_instruction(convolution579, mx578, mx338); - migraphx::op::batch_norm_inference batch_norm_inference580; - batch_norm_inference580.epsilon = 0.001; - batch_norm_inference580.momentum = 0.9; - auto mx580 = mm->add_instruction(batch_norm_inference580, mx579, mx337, mx336, mx335, mx334); - migraphx::op::relu relu581; - auto mx581 = mm->add_instruction(relu581, mx580); - migraphx::op::pooling pooling582; - pooling582.mode = migraphx::op::pooling_mode::max; - pooling582.padding = {0, 0}; - pooling582.stride = {2, 2}; - pooling582.lengths = {3, 3}; - auto mx582 = mm->add_instruction(pooling582, mx569); - migraphx::op::concat concat583; - concat583.axis = 1; - auto mx583 = mm->add_instruction(concat583, mx572, mx581, mx582); - migraphx::op::convolution convolution584; - convolution584.padding = {0, 0}; - convolution584.stride = {1, 1}; - convolution584.dilation = {1, 1}; - convolution584.group = 1; - auto mx584 = mm->add_instruction(convolution584, mx583, mx333); - migraphx::op::batch_norm_inference batch_norm_inference585; - batch_norm_inference585.epsilon = 0.001; - batch_norm_inference585.momentum = 0.9; - auto mx585 = mm->add_instruction(batch_norm_inference585, mx584, mx332, mx331, mx330, mx329); - migraphx::op::relu relu586; - auto mx586 = mm->add_instruction(relu586, mx585); - migraphx::op::convolution convolution587; - convolution587.padding = {0, 0}; - convolution587.stride = {1, 1}; - convolution587.dilation = {1, 1}; - convolution587.group = 1; - auto mx587 = mm->add_instruction(convolution587, mx583, mx328); - migraphx::op::batch_norm_inference batch_norm_inference588; - batch_norm_inference588.epsilon = 0.001; - batch_norm_inference588.momentum = 0.9; - auto mx588 = mm->add_instruction(batch_norm_inference588, mx587, mx327, mx326, mx325, mx324); - migraphx::op::relu relu589; - auto mx589 = mm->add_instruction(relu589, mx588); - migraphx::op::convolution convolution590; - convolution590.padding = {0, 3}; - convolution590.stride = {1, 1}; - convolution590.dilation = {1, 1}; - convolution590.group = 1; - auto mx590 = mm->add_instruction(convolution590, mx589, mx323); - migraphx::op::batch_norm_inference batch_norm_inference591; - batch_norm_inference591.epsilon = 0.001; - batch_norm_inference591.momentum = 0.9; - auto mx591 = mm->add_instruction(batch_norm_inference591, mx590, mx322, mx321, mx320, mx319); - migraphx::op::relu relu592; - auto mx592 = mm->add_instruction(relu592, mx591); - migraphx::op::convolution convolution593; - convolution593.padding = {3, 0}; - convolution593.stride = {1, 1}; - convolution593.dilation = {1, 1}; - convolution593.group = 1; - auto mx593 = mm->add_instruction(convolution593, mx592, mx318); - migraphx::op::batch_norm_inference batch_norm_inference594; - batch_norm_inference594.epsilon = 0.001; - batch_norm_inference594.momentum = 0.9; - auto mx594 = mm->add_instruction(batch_norm_inference594, mx593, mx317, mx316, mx315, mx314); - migraphx::op::relu relu595; - auto mx595 = mm->add_instruction(relu595, mx594); - migraphx::op::convolution convolution596; - convolution596.padding = {0, 0}; - convolution596.stride = {1, 1}; - convolution596.dilation = {1, 1}; - convolution596.group = 1; - auto mx596 = mm->add_instruction(convolution596, mx583, mx313); - migraphx::op::batch_norm_inference batch_norm_inference597; - batch_norm_inference597.epsilon = 0.001; - batch_norm_inference597.momentum = 0.9; - auto mx597 = mm->add_instruction(batch_norm_inference597, mx596, mx312, mx311, mx310, mx309); - migraphx::op::relu relu598; - auto mx598 = mm->add_instruction(relu598, mx597); - migraphx::op::convolution convolution599; - convolution599.padding = {3, 0}; - convolution599.stride = {1, 1}; - convolution599.dilation = {1, 1}; - convolution599.group = 1; - auto mx599 = mm->add_instruction(convolution599, mx598, mx308); - migraphx::op::batch_norm_inference batch_norm_inference600; - batch_norm_inference600.epsilon = 0.001; - batch_norm_inference600.momentum = 0.9; - auto mx600 = mm->add_instruction(batch_norm_inference600, mx599, mx307, mx306, mx305, mx304); - migraphx::op::relu relu601; - auto mx601 = mm->add_instruction(relu601, mx600); - migraphx::op::convolution convolution602; - convolution602.padding = {0, 3}; - convolution602.stride = {1, 1}; - convolution602.dilation = {1, 1}; - convolution602.group = 1; - auto mx602 = mm->add_instruction(convolution602, mx601, mx303); - migraphx::op::batch_norm_inference batch_norm_inference603; - batch_norm_inference603.epsilon = 0.001; - batch_norm_inference603.momentum = 0.9; - auto mx603 = mm->add_instruction(batch_norm_inference603, mx602, mx302, mx301, mx300, mx299); - migraphx::op::relu relu604; - auto mx604 = mm->add_instruction(relu604, mx603); - migraphx::op::convolution convolution605; - convolution605.padding = {3, 0}; - convolution605.stride = {1, 1}; - convolution605.dilation = {1, 1}; - convolution605.group = 1; - auto mx605 = mm->add_instruction(convolution605, mx604, mx298); - migraphx::op::batch_norm_inference batch_norm_inference606; - batch_norm_inference606.epsilon = 0.001; - batch_norm_inference606.momentum = 0.9; - auto mx606 = mm->add_instruction(batch_norm_inference606, mx605, mx297, mx296, mx295, mx294); - migraphx::op::relu relu607; - auto mx607 = mm->add_instruction(relu607, mx606); - migraphx::op::convolution convolution608; - convolution608.padding = {0, 3}; - convolution608.stride = {1, 1}; - convolution608.dilation = {1, 1}; - convolution608.group = 1; - auto mx608 = mm->add_instruction(convolution608, mx607, mx293); - migraphx::op::batch_norm_inference batch_norm_inference609; - batch_norm_inference609.epsilon = 0.001; - batch_norm_inference609.momentum = 0.9; - auto mx609 = mm->add_instruction(batch_norm_inference609, mx608, mx292, mx291, mx290, mx289); - migraphx::op::relu relu610; - auto mx610 = mm->add_instruction(relu610, mx609); - migraphx::op::pooling pooling611; - pooling611.mode = migraphx::op::pooling_mode::average; - pooling611.padding = {1, 1}; - pooling611.stride = {1, 1}; - pooling611.lengths = {3, 3}; - auto mx611 = mm->add_instruction(pooling611, mx583); - migraphx::op::convolution convolution612; - convolution612.padding = {0, 0}; - convolution612.stride = {1, 1}; - convolution612.dilation = {1, 1}; - convolution612.group = 1; - auto mx612 = mm->add_instruction(convolution612, mx611, mx288); - migraphx::op::batch_norm_inference batch_norm_inference613; - batch_norm_inference613.epsilon = 0.001; - batch_norm_inference613.momentum = 0.9; - auto mx613 = mm->add_instruction(batch_norm_inference613, mx612, mx287, mx286, mx285, mx284); - migraphx::op::relu relu614; - auto mx614 = mm->add_instruction(relu614, mx613); - migraphx::op::concat concat615; - concat615.axis = 1; - auto mx615 = mm->add_instruction(concat615, mx586, mx595, mx610, mx614); - migraphx::op::convolution convolution616; - convolution616.padding = {0, 0}; - convolution616.stride = {1, 1}; - convolution616.dilation = {1, 1}; - convolution616.group = 1; - auto mx616 = mm->add_instruction(convolution616, mx615, mx283); - migraphx::op::batch_norm_inference batch_norm_inference617; - batch_norm_inference617.epsilon = 0.001; - batch_norm_inference617.momentum = 0.9; - auto mx617 = mm->add_instruction(batch_norm_inference617, mx616, mx282, mx281, mx280, mx279); - migraphx::op::relu relu618; - auto mx618 = mm->add_instruction(relu618, mx617); - migraphx::op::convolution convolution619; - convolution619.padding = {0, 0}; - convolution619.stride = {1, 1}; - convolution619.dilation = {1, 1}; - convolution619.group = 1; - auto mx619 = mm->add_instruction(convolution619, mx615, mx278); - migraphx::op::batch_norm_inference batch_norm_inference620; - batch_norm_inference620.epsilon = 0.001; - batch_norm_inference620.momentum = 0.9; - auto mx620 = mm->add_instruction(batch_norm_inference620, mx619, mx277, mx276, mx275, mx274); - migraphx::op::relu relu621; - auto mx621 = mm->add_instruction(relu621, mx620); - migraphx::op::convolution convolution622; - convolution622.padding = {0, 3}; - convolution622.stride = {1, 1}; - convolution622.dilation = {1, 1}; - convolution622.group = 1; - auto mx622 = mm->add_instruction(convolution622, mx621, mx273); - migraphx::op::batch_norm_inference batch_norm_inference623; - batch_norm_inference623.epsilon = 0.001; - batch_norm_inference623.momentum = 0.9; - auto mx623 = mm->add_instruction(batch_norm_inference623, mx622, mx272, mx271, mx270, mx269); - migraphx::op::relu relu624; - auto mx624 = mm->add_instruction(relu624, mx623); - migraphx::op::convolution convolution625; - convolution625.padding = {3, 0}; - convolution625.stride = {1, 1}; - convolution625.dilation = {1, 1}; - convolution625.group = 1; - auto mx625 = mm->add_instruction(convolution625, mx624, mx268); - migraphx::op::batch_norm_inference batch_norm_inference626; - batch_norm_inference626.epsilon = 0.001; - batch_norm_inference626.momentum = 0.9; - auto mx626 = mm->add_instruction(batch_norm_inference626, mx625, mx267, mx266, mx265, mx264); - migraphx::op::relu relu627; - auto mx627 = mm->add_instruction(relu627, mx626); - migraphx::op::convolution convolution628; - convolution628.padding = {0, 0}; - convolution628.stride = {1, 1}; - convolution628.dilation = {1, 1}; - convolution628.group = 1; - auto mx628 = mm->add_instruction(convolution628, mx615, mx263); - migraphx::op::batch_norm_inference batch_norm_inference629; - batch_norm_inference629.epsilon = 0.001; - batch_norm_inference629.momentum = 0.9; - auto mx629 = mm->add_instruction(batch_norm_inference629, mx628, mx262, mx261, mx260, mx259); - migraphx::op::relu relu630; - auto mx630 = mm->add_instruction(relu630, mx629); - migraphx::op::convolution convolution631; - convolution631.padding = {3, 0}; - convolution631.stride = {1, 1}; - convolution631.dilation = {1, 1}; - convolution631.group = 1; - auto mx631 = mm->add_instruction(convolution631, mx630, mx258); - migraphx::op::batch_norm_inference batch_norm_inference632; - batch_norm_inference632.epsilon = 0.001; - batch_norm_inference632.momentum = 0.9; - auto mx632 = mm->add_instruction(batch_norm_inference632, mx631, mx257, mx256, mx255, mx254); - migraphx::op::relu relu633; - auto mx633 = mm->add_instruction(relu633, mx632); - migraphx::op::convolution convolution634; - convolution634.padding = {0, 3}; - convolution634.stride = {1, 1}; - convolution634.dilation = {1, 1}; - convolution634.group = 1; - auto mx634 = mm->add_instruction(convolution634, mx633, mx253); - migraphx::op::batch_norm_inference batch_norm_inference635; - batch_norm_inference635.epsilon = 0.001; - batch_norm_inference635.momentum = 0.9; - auto mx635 = mm->add_instruction(batch_norm_inference635, mx634, mx252, mx251, mx250, mx249); - migraphx::op::relu relu636; - auto mx636 = mm->add_instruction(relu636, mx635); - migraphx::op::convolution convolution637; - convolution637.padding = {3, 0}; - convolution637.stride = {1, 1}; - convolution637.dilation = {1, 1}; - convolution637.group = 1; - auto mx637 = mm->add_instruction(convolution637, mx636, mx248); - migraphx::op::batch_norm_inference batch_norm_inference638; - batch_norm_inference638.epsilon = 0.001; - batch_norm_inference638.momentum = 0.9; - auto mx638 = mm->add_instruction(batch_norm_inference638, mx637, mx247, mx246, mx245, mx244); - migraphx::op::relu relu639; - auto mx639 = mm->add_instruction(relu639, mx638); - migraphx::op::convolution convolution640; - convolution640.padding = {0, 3}; - convolution640.stride = {1, 1}; - convolution640.dilation = {1, 1}; - convolution640.group = 1; - auto mx640 = mm->add_instruction(convolution640, mx639, mx243); - migraphx::op::batch_norm_inference batch_norm_inference641; - batch_norm_inference641.epsilon = 0.001; - batch_norm_inference641.momentum = 0.9; - auto mx641 = mm->add_instruction(batch_norm_inference641, mx640, mx242, mx241, mx240, mx239); - migraphx::op::relu relu642; - auto mx642 = mm->add_instruction(relu642, mx641); - migraphx::op::pooling pooling643; - pooling643.mode = migraphx::op::pooling_mode::average; - pooling643.padding = {1, 1}; - pooling643.stride = {1, 1}; - pooling643.lengths = {3, 3}; - auto mx643 = mm->add_instruction(pooling643, mx615); - migraphx::op::convolution convolution644; - convolution644.padding = {0, 0}; - convolution644.stride = {1, 1}; - convolution644.dilation = {1, 1}; - convolution644.group = 1; - auto mx644 = mm->add_instruction(convolution644, mx643, mx238); - migraphx::op::batch_norm_inference batch_norm_inference645; - batch_norm_inference645.epsilon = 0.001; - batch_norm_inference645.momentum = 0.9; - auto mx645 = mm->add_instruction(batch_norm_inference645, mx644, mx237, mx236, mx235, mx234); - migraphx::op::relu relu646; - auto mx646 = mm->add_instruction(relu646, mx645); - migraphx::op::concat concat647; - concat647.axis = 1; - auto mx647 = mm->add_instruction(concat647, mx618, mx627, mx642, mx646); - migraphx::op::convolution convolution648; - convolution648.padding = {0, 0}; - convolution648.stride = {1, 1}; - convolution648.dilation = {1, 1}; - convolution648.group = 1; - auto mx648 = mm->add_instruction(convolution648, mx647, mx233); - migraphx::op::batch_norm_inference batch_norm_inference649; - batch_norm_inference649.epsilon = 0.001; - batch_norm_inference649.momentum = 0.9; - auto mx649 = mm->add_instruction(batch_norm_inference649, mx648, mx232, mx231, mx230, mx229); - migraphx::op::relu relu650; - auto mx650 = mm->add_instruction(relu650, mx649); - migraphx::op::convolution convolution651; - convolution651.padding = {0, 0}; - convolution651.stride = {1, 1}; - convolution651.dilation = {1, 1}; - convolution651.group = 1; - auto mx651 = mm->add_instruction(convolution651, mx647, mx228); - migraphx::op::batch_norm_inference batch_norm_inference652; - batch_norm_inference652.epsilon = 0.001; - batch_norm_inference652.momentum = 0.9; - auto mx652 = mm->add_instruction(batch_norm_inference652, mx651, mx227, mx226, mx225, mx224); - migraphx::op::relu relu653; - auto mx653 = mm->add_instruction(relu653, mx652); - migraphx::op::convolution convolution654; - convolution654.padding = {0, 3}; - convolution654.stride = {1, 1}; - convolution654.dilation = {1, 1}; - convolution654.group = 1; - auto mx654 = mm->add_instruction(convolution654, mx653, mx223); - migraphx::op::batch_norm_inference batch_norm_inference655; - batch_norm_inference655.epsilon = 0.001; - batch_norm_inference655.momentum = 0.9; - auto mx655 = mm->add_instruction(batch_norm_inference655, mx654, mx222, mx221, mx220, mx219); - migraphx::op::relu relu656; - auto mx656 = mm->add_instruction(relu656, mx655); - migraphx::op::convolution convolution657; - convolution657.padding = {3, 0}; - convolution657.stride = {1, 1}; - convolution657.dilation = {1, 1}; - convolution657.group = 1; - auto mx657 = mm->add_instruction(convolution657, mx656, mx218); - migraphx::op::batch_norm_inference batch_norm_inference658; - batch_norm_inference658.epsilon = 0.001; - batch_norm_inference658.momentum = 0.9; - auto mx658 = mm->add_instruction(batch_norm_inference658, mx657, mx217, mx216, mx215, mx214); - migraphx::op::relu relu659; - auto mx659 = mm->add_instruction(relu659, mx658); - migraphx::op::convolution convolution660; - convolution660.padding = {0, 0}; - convolution660.stride = {1, 1}; - convolution660.dilation = {1, 1}; - convolution660.group = 1; - auto mx660 = mm->add_instruction(convolution660, mx647, mx213); - migraphx::op::batch_norm_inference batch_norm_inference661; - batch_norm_inference661.epsilon = 0.001; - batch_norm_inference661.momentum = 0.9; - auto mx661 = mm->add_instruction(batch_norm_inference661, mx660, mx212, mx211, mx210, mx209); - migraphx::op::relu relu662; - auto mx662 = mm->add_instruction(relu662, mx661); - migraphx::op::convolution convolution663; - convolution663.padding = {3, 0}; - convolution663.stride = {1, 1}; - convolution663.dilation = {1, 1}; - convolution663.group = 1; - auto mx663 = mm->add_instruction(convolution663, mx662, mx208); - migraphx::op::batch_norm_inference batch_norm_inference664; - batch_norm_inference664.epsilon = 0.001; - batch_norm_inference664.momentum = 0.9; - auto mx664 = mm->add_instruction(batch_norm_inference664, mx663, mx207, mx206, mx205, mx204); - migraphx::op::relu relu665; - auto mx665 = mm->add_instruction(relu665, mx664); - migraphx::op::convolution convolution666; - convolution666.padding = {0, 3}; - convolution666.stride = {1, 1}; - convolution666.dilation = {1, 1}; - convolution666.group = 1; - auto mx666 = mm->add_instruction(convolution666, mx665, mx203); - migraphx::op::batch_norm_inference batch_norm_inference667; - batch_norm_inference667.epsilon = 0.001; - batch_norm_inference667.momentum = 0.9; - auto mx667 = mm->add_instruction(batch_norm_inference667, mx666, mx202, mx201, mx200, mx199); - migraphx::op::relu relu668; - auto mx668 = mm->add_instruction(relu668, mx667); - migraphx::op::convolution convolution669; - convolution669.padding = {3, 0}; - convolution669.stride = {1, 1}; - convolution669.dilation = {1, 1}; - convolution669.group = 1; - auto mx669 = mm->add_instruction(convolution669, mx668, mx198); - migraphx::op::batch_norm_inference batch_norm_inference670; - batch_norm_inference670.epsilon = 0.001; - batch_norm_inference670.momentum = 0.9; - auto mx670 = mm->add_instruction(batch_norm_inference670, mx669, mx197, mx196, mx195, mx194); - migraphx::op::relu relu671; - auto mx671 = mm->add_instruction(relu671, mx670); - migraphx::op::convolution convolution672; - convolution672.padding = {0, 3}; - convolution672.stride = {1, 1}; - convolution672.dilation = {1, 1}; - convolution672.group = 1; - auto mx672 = mm->add_instruction(convolution672, mx671, mx193); - migraphx::op::batch_norm_inference batch_norm_inference673; - batch_norm_inference673.epsilon = 0.001; - batch_norm_inference673.momentum = 0.9; - auto mx673 = mm->add_instruction(batch_norm_inference673, mx672, mx192, mx191, mx190, mx189); - migraphx::op::relu relu674; - auto mx674 = mm->add_instruction(relu674, mx673); - migraphx::op::pooling pooling675; - pooling675.mode = migraphx::op::pooling_mode::average; - pooling675.padding = {1, 1}; - pooling675.stride = {1, 1}; - pooling675.lengths = {3, 3}; - auto mx675 = mm->add_instruction(pooling675, mx647); - migraphx::op::convolution convolution676; - convolution676.padding = {0, 0}; - convolution676.stride = {1, 1}; - convolution676.dilation = {1, 1}; - convolution676.group = 1; - auto mx676 = mm->add_instruction(convolution676, mx675, mx188); - migraphx::op::batch_norm_inference batch_norm_inference677; - batch_norm_inference677.epsilon = 0.001; - batch_norm_inference677.momentum = 0.9; - auto mx677 = mm->add_instruction(batch_norm_inference677, mx676, mx187, mx186, mx185, mx184); - migraphx::op::relu relu678; - auto mx678 = mm->add_instruction(relu678, mx677); - migraphx::op::concat concat679; - concat679.axis = 1; - auto mx679 = mm->add_instruction(concat679, mx650, mx659, mx674, mx678); - migraphx::op::convolution convolution680; - convolution680.padding = {0, 0}; - convolution680.stride = {1, 1}; - convolution680.dilation = {1, 1}; - convolution680.group = 1; - auto mx680 = mm->add_instruction(convolution680, mx679, mx183); - migraphx::op::batch_norm_inference batch_norm_inference681; - batch_norm_inference681.epsilon = 0.001; - batch_norm_inference681.momentum = 0.9; - auto mx681 = mm->add_instruction(batch_norm_inference681, mx680, mx182, mx181, mx180, mx179); - migraphx::op::relu relu682; - auto mx682 = mm->add_instruction(relu682, mx681); - migraphx::op::convolution convolution683; - convolution683.padding = {0, 0}; - convolution683.stride = {1, 1}; - convolution683.dilation = {1, 1}; - convolution683.group = 1; - auto mx683 = mm->add_instruction(convolution683, mx679, mx178); - migraphx::op::batch_norm_inference batch_norm_inference684; - batch_norm_inference684.epsilon = 0.001; - batch_norm_inference684.momentum = 0.9; - auto mx684 = mm->add_instruction(batch_norm_inference684, mx683, mx177, mx176, mx175, mx174); - migraphx::op::relu relu685; - auto mx685 = mm->add_instruction(relu685, mx684); - migraphx::op::convolution convolution686; - convolution686.padding = {0, 3}; - convolution686.stride = {1, 1}; - convolution686.dilation = {1, 1}; - convolution686.group = 1; - auto mx686 = mm->add_instruction(convolution686, mx685, mx173); - migraphx::op::batch_norm_inference batch_norm_inference687; - batch_norm_inference687.epsilon = 0.001; - batch_norm_inference687.momentum = 0.9; - auto mx687 = mm->add_instruction(batch_norm_inference687, mx686, mx172, mx171, mx170, mx169); - migraphx::op::relu relu688; - auto mx688 = mm->add_instruction(relu688, mx687); - migraphx::op::convolution convolution689; - convolution689.padding = {3, 0}; - convolution689.stride = {1, 1}; - convolution689.dilation = {1, 1}; - convolution689.group = 1; - auto mx689 = mm->add_instruction(convolution689, mx688, mx168); - migraphx::op::batch_norm_inference batch_norm_inference690; - batch_norm_inference690.epsilon = 0.001; - batch_norm_inference690.momentum = 0.9; - auto mx690 = mm->add_instruction(batch_norm_inference690, mx689, mx167, mx166, mx165, mx164); - migraphx::op::relu relu691; - auto mx691 = mm->add_instruction(relu691, mx690); - migraphx::op::convolution convolution692; - convolution692.padding = {0, 0}; - convolution692.stride = {1, 1}; - convolution692.dilation = {1, 1}; - convolution692.group = 1; - auto mx692 = mm->add_instruction(convolution692, mx679, mx163); - migraphx::op::batch_norm_inference batch_norm_inference693; - batch_norm_inference693.epsilon = 0.001; - batch_norm_inference693.momentum = 0.9; - auto mx693 = mm->add_instruction(batch_norm_inference693, mx692, mx162, mx161, mx160, mx159); - migraphx::op::relu relu694; - auto mx694 = mm->add_instruction(relu694, mx693); - migraphx::op::convolution convolution695; - convolution695.padding = {3, 0}; - convolution695.stride = {1, 1}; - convolution695.dilation = {1, 1}; - convolution695.group = 1; - auto mx695 = mm->add_instruction(convolution695, mx694, mx158); - migraphx::op::batch_norm_inference batch_norm_inference696; - batch_norm_inference696.epsilon = 0.001; - batch_norm_inference696.momentum = 0.9; - auto mx696 = mm->add_instruction(batch_norm_inference696, mx695, mx157, mx156, mx155, mx154); - migraphx::op::relu relu697; - auto mx697 = mm->add_instruction(relu697, mx696); - migraphx::op::convolution convolution698; - convolution698.padding = {0, 3}; - convolution698.stride = {1, 1}; - convolution698.dilation = {1, 1}; - convolution698.group = 1; - auto mx698 = mm->add_instruction(convolution698, mx697, mx153); - migraphx::op::batch_norm_inference batch_norm_inference699; - batch_norm_inference699.epsilon = 0.001; - batch_norm_inference699.momentum = 0.9; - auto mx699 = mm->add_instruction(batch_norm_inference699, mx698, mx152, mx151, mx150, mx149); - migraphx::op::relu relu700; - auto mx700 = mm->add_instruction(relu700, mx699); - migraphx::op::convolution convolution701; - convolution701.padding = {3, 0}; - convolution701.stride = {1, 1}; - convolution701.dilation = {1, 1}; - convolution701.group = 1; - auto mx701 = mm->add_instruction(convolution701, mx700, mx148); - migraphx::op::batch_norm_inference batch_norm_inference702; - batch_norm_inference702.epsilon = 0.001; - batch_norm_inference702.momentum = 0.9; - auto mx702 = mm->add_instruction(batch_norm_inference702, mx701, mx147, mx146, mx145, mx144); - migraphx::op::relu relu703; - auto mx703 = mm->add_instruction(relu703, mx702); - migraphx::op::convolution convolution704; - convolution704.padding = {0, 3}; - convolution704.stride = {1, 1}; - convolution704.dilation = {1, 1}; - convolution704.group = 1; - auto mx704 = mm->add_instruction(convolution704, mx703, mx143); - migraphx::op::batch_norm_inference batch_norm_inference705; - batch_norm_inference705.epsilon = 0.001; - batch_norm_inference705.momentum = 0.9; - auto mx705 = mm->add_instruction(batch_norm_inference705, mx704, mx142, mx141, mx140, mx139); - migraphx::op::relu relu706; - auto mx706 = mm->add_instruction(relu706, mx705); - migraphx::op::pooling pooling707; - pooling707.mode = migraphx::op::pooling_mode::average; - pooling707.padding = {1, 1}; - pooling707.stride = {1, 1}; - pooling707.lengths = {3, 3}; - auto mx707 = mm->add_instruction(pooling707, mx679); - migraphx::op::convolution convolution708; - convolution708.padding = {0, 0}; - convolution708.stride = {1, 1}; - convolution708.dilation = {1, 1}; - convolution708.group = 1; - auto mx708 = mm->add_instruction(convolution708, mx707, mx138); - migraphx::op::batch_norm_inference batch_norm_inference709; - batch_norm_inference709.epsilon = 0.001; - batch_norm_inference709.momentum = 0.9; - auto mx709 = mm->add_instruction(batch_norm_inference709, mx708, mx137, mx136, mx135, mx134); - migraphx::op::relu relu710; - auto mx710 = mm->add_instruction(relu710, mx709); - migraphx::op::concat concat711; - concat711.axis = 1; - auto mx711 = mm->add_instruction(concat711, mx682, mx691, mx706, mx710); - migraphx::op::convolution convolution712; - convolution712.padding = {0, 0}; - convolution712.stride = {1, 1}; - convolution712.dilation = {1, 1}; - convolution712.group = 1; - auto mx712 = mm->add_instruction(convolution712, mx711, mx121); - migraphx::op::batch_norm_inference batch_norm_inference713; - batch_norm_inference713.epsilon = 0.001; - batch_norm_inference713.momentum = 0.9; - auto mx713 = mm->add_instruction(batch_norm_inference713, mx712, mx120, mx119, mx118, mx117); - migraphx::op::relu relu714; - auto mx714 = mm->add_instruction(relu714, mx713); - migraphx::op::convolution convolution715; - convolution715.padding = {0, 0}; - convolution715.stride = {2, 2}; - convolution715.dilation = {1, 1}; - convolution715.group = 1; - auto mx715 = mm->add_instruction(convolution715, mx714, mx116); - migraphx::op::batch_norm_inference batch_norm_inference716; - batch_norm_inference716.epsilon = 0.001; - batch_norm_inference716.momentum = 0.9; - auto mx716 = mm->add_instruction(batch_norm_inference716, mx715, mx115, mx114, mx113, mx112); - migraphx::op::relu relu717; - auto mx717 = mm->add_instruction(relu717, mx716); - migraphx::op::convolution convolution718; - convolution718.padding = {0, 0}; - convolution718.stride = {1, 1}; - convolution718.dilation = {1, 1}; - convolution718.group = 1; - auto mx718 = mm->add_instruction(convolution718, mx711, mx111); - migraphx::op::batch_norm_inference batch_norm_inference719; - batch_norm_inference719.epsilon = 0.001; - batch_norm_inference719.momentum = 0.9; - auto mx719 = mm->add_instruction(batch_norm_inference719, mx718, mx110, mx109, mx108, mx107); - migraphx::op::relu relu720; - auto mx720 = mm->add_instruction(relu720, mx719); - migraphx::op::convolution convolution721; - convolution721.padding = {0, 3}; - convolution721.stride = {1, 1}; - convolution721.dilation = {1, 1}; - convolution721.group = 1; - auto mx721 = mm->add_instruction(convolution721, mx720, mx106); - migraphx::op::batch_norm_inference batch_norm_inference722; - batch_norm_inference722.epsilon = 0.001; - batch_norm_inference722.momentum = 0.9; - auto mx722 = mm->add_instruction(batch_norm_inference722, mx721, mx105, mx104, mx103, mx102); - migraphx::op::relu relu723; - auto mx723 = mm->add_instruction(relu723, mx722); - migraphx::op::convolution convolution724; - convolution724.padding = {3, 0}; - convolution724.stride = {1, 1}; - convolution724.dilation = {1, 1}; - convolution724.group = 1; - auto mx724 = mm->add_instruction(convolution724, mx723, mx101); - migraphx::op::batch_norm_inference batch_norm_inference725; - batch_norm_inference725.epsilon = 0.001; - batch_norm_inference725.momentum = 0.9; - auto mx725 = mm->add_instruction(batch_norm_inference725, mx724, mx100, mx99, mx98, mx97); - migraphx::op::relu relu726; - auto mx726 = mm->add_instruction(relu726, mx725); - migraphx::op::convolution convolution727; - convolution727.padding = {0, 0}; - convolution727.stride = {2, 2}; - convolution727.dilation = {1, 1}; - convolution727.group = 1; - auto mx727 = mm->add_instruction(convolution727, mx726, mx96); - migraphx::op::batch_norm_inference batch_norm_inference728; - batch_norm_inference728.epsilon = 0.001; - batch_norm_inference728.momentum = 0.9; - auto mx728 = mm->add_instruction(batch_norm_inference728, mx727, mx95, mx94, mx93, mx92); - migraphx::op::relu relu729; - auto mx729 = mm->add_instruction(relu729, mx728); - migraphx::op::pooling pooling730; - pooling730.mode = migraphx::op::pooling_mode::max; - pooling730.padding = {0, 0}; - pooling730.stride = {2, 2}; - pooling730.lengths = {3, 3}; - auto mx730 = mm->add_instruction(pooling730, mx711); - migraphx::op::concat concat731; - concat731.axis = 1; - auto mx731 = mm->add_instruction(concat731, mx717, mx729, mx730); - migraphx::op::convolution convolution732; - convolution732.padding = {0, 0}; - convolution732.stride = {1, 1}; - convolution732.dilation = {1, 1}; - convolution732.group = 1; - auto mx732 = mm->add_instruction(convolution732, mx731, mx91); - migraphx::op::batch_norm_inference batch_norm_inference733; - batch_norm_inference733.epsilon = 0.001; - batch_norm_inference733.momentum = 0.9; - auto mx733 = mm->add_instruction(batch_norm_inference733, mx732, mx90, mx89, mx88, mx87); - migraphx::op::relu relu734; - auto mx734 = mm->add_instruction(relu734, mx733); - migraphx::op::convolution convolution735; - convolution735.padding = {0, 0}; - convolution735.stride = {1, 1}; - convolution735.dilation = {1, 1}; - convolution735.group = 1; - auto mx735 = mm->add_instruction(convolution735, mx731, mx86); - migraphx::op::batch_norm_inference batch_norm_inference736; - batch_norm_inference736.epsilon = 0.001; - batch_norm_inference736.momentum = 0.9; - auto mx736 = mm->add_instruction(batch_norm_inference736, mx735, mx85, mx84, mx83, mx82); - migraphx::op::relu relu737; - auto mx737 = mm->add_instruction(relu737, mx736); - migraphx::op::convolution convolution738; - convolution738.padding = {0, 1}; - convolution738.stride = {1, 1}; - convolution738.dilation = {1, 1}; - convolution738.group = 1; - auto mx738 = mm->add_instruction(convolution738, mx737, mx81); - migraphx::op::batch_norm_inference batch_norm_inference739; - batch_norm_inference739.epsilon = 0.001; - batch_norm_inference739.momentum = 0.9; - auto mx739 = mm->add_instruction(batch_norm_inference739, mx738, mx80, mx79, mx78, mx77); - migraphx::op::relu relu740; - auto mx740 = mm->add_instruction(relu740, mx739); - migraphx::op::convolution convolution741; - convolution741.padding = {1, 0}; - convolution741.stride = {1, 1}; - convolution741.dilation = {1, 1}; - convolution741.group = 1; - auto mx741 = mm->add_instruction(convolution741, mx737, mx76); - migraphx::op::batch_norm_inference batch_norm_inference742; - batch_norm_inference742.epsilon = 0.001; - batch_norm_inference742.momentum = 0.9; - auto mx742 = mm->add_instruction(batch_norm_inference742, mx741, mx75, mx74, mx73, mx72); - migraphx::op::relu relu743; - auto mx743 = mm->add_instruction(relu743, mx742); - migraphx::op::concat concat744; - concat744.axis = 1; - auto mx744 = mm->add_instruction(concat744, mx740, mx743); - migraphx::op::convolution convolution745; - convolution745.padding = {0, 0}; - convolution745.stride = {1, 1}; - convolution745.dilation = {1, 1}; - convolution745.group = 1; - auto mx745 = mm->add_instruction(convolution745, mx731, mx71); - migraphx::op::batch_norm_inference batch_norm_inference746; - batch_norm_inference746.epsilon = 0.001; - batch_norm_inference746.momentum = 0.9; - auto mx746 = mm->add_instruction(batch_norm_inference746, mx745, mx70, mx69, mx68, mx67); - migraphx::op::relu relu747; - auto mx747 = mm->add_instruction(relu747, mx746); - migraphx::op::convolution convolution748; - convolution748.padding = {1, 1}; - convolution748.stride = {1, 1}; - convolution748.dilation = {1, 1}; - convolution748.group = 1; - auto mx748 = mm->add_instruction(convolution748, mx747, mx66); - migraphx::op::batch_norm_inference batch_norm_inference749; - batch_norm_inference749.epsilon = 0.001; - batch_norm_inference749.momentum = 0.9; - auto mx749 = mm->add_instruction(batch_norm_inference749, mx748, mx65, mx64, mx63, mx62); - migraphx::op::relu relu750; - auto mx750 = mm->add_instruction(relu750, mx749); - migraphx::op::convolution convolution751; - convolution751.padding = {0, 1}; - convolution751.stride = {1, 1}; - convolution751.dilation = {1, 1}; - convolution751.group = 1; - auto mx751 = mm->add_instruction(convolution751, mx750, mx61); - migraphx::op::batch_norm_inference batch_norm_inference752; - batch_norm_inference752.epsilon = 0.001; - batch_norm_inference752.momentum = 0.9; - auto mx752 = mm->add_instruction(batch_norm_inference752, mx751, mx60, mx59, mx58, mx57); - migraphx::op::relu relu753; - auto mx753 = mm->add_instruction(relu753, mx752); - migraphx::op::convolution convolution754; - convolution754.padding = {1, 0}; - convolution754.stride = {1, 1}; - convolution754.dilation = {1, 1}; - convolution754.group = 1; - auto mx754 = mm->add_instruction(convolution754, mx750, mx56); - migraphx::op::batch_norm_inference batch_norm_inference755; - batch_norm_inference755.epsilon = 0.001; - batch_norm_inference755.momentum = 0.9; - auto mx755 = mm->add_instruction(batch_norm_inference755, mx754, mx55, mx54, mx53, mx52); - migraphx::op::relu relu756; - auto mx756 = mm->add_instruction(relu756, mx755); - migraphx::op::concat concat757; - concat757.axis = 1; - auto mx757 = mm->add_instruction(concat757, mx753, mx756); - migraphx::op::pooling pooling758; - pooling758.mode = migraphx::op::pooling_mode::average; - pooling758.padding = {1, 1}; - pooling758.stride = {1, 1}; - pooling758.lengths = {3, 3}; - auto mx758 = mm->add_instruction(pooling758, mx731); - migraphx::op::convolution convolution759; - convolution759.padding = {0, 0}; - convolution759.stride = {1, 1}; - convolution759.dilation = {1, 1}; - convolution759.group = 1; - auto mx759 = mm->add_instruction(convolution759, mx758, mx51); - migraphx::op::batch_norm_inference batch_norm_inference760; - batch_norm_inference760.epsilon = 0.001; - batch_norm_inference760.momentum = 0.9; - auto mx760 = mm->add_instruction(batch_norm_inference760, mx759, mx50, mx49, mx48, mx47); - migraphx::op::relu relu761; - auto mx761 = mm->add_instruction(relu761, mx760); - migraphx::op::concat concat762; - concat762.axis = 1; - auto mx762 = mm->add_instruction(concat762, mx734, mx744, mx757, mx761); - migraphx::op::convolution convolution763; - convolution763.padding = {0, 0}; - convolution763.stride = {1, 1}; - convolution763.dilation = {1, 1}; - convolution763.group = 1; - auto mx763 = mm->add_instruction(convolution763, mx762, mx46); - migraphx::op::batch_norm_inference batch_norm_inference764; - batch_norm_inference764.epsilon = 0.001; - batch_norm_inference764.momentum = 0.9; - auto mx764 = mm->add_instruction(batch_norm_inference764, mx763, mx45, mx44, mx43, mx42); - migraphx::op::relu relu765; - auto mx765 = mm->add_instruction(relu765, mx764); - migraphx::op::convolution convolution766; - convolution766.padding = {0, 0}; - convolution766.stride = {1, 1}; - convolution766.dilation = {1, 1}; - convolution766.group = 1; - auto mx766 = mm->add_instruction(convolution766, mx762, mx41); - migraphx::op::batch_norm_inference batch_norm_inference767; - batch_norm_inference767.epsilon = 0.001; - batch_norm_inference767.momentum = 0.9; - auto mx767 = mm->add_instruction(batch_norm_inference767, mx766, mx40, mx39, mx38, mx37); - migraphx::op::relu relu768; - auto mx768 = mm->add_instruction(relu768, mx767); - migraphx::op::convolution convolution769; - convolution769.padding = {0, 1}; - convolution769.stride = {1, 1}; - convolution769.dilation = {1, 1}; - convolution769.group = 1; - auto mx769 = mm->add_instruction(convolution769, mx768, mx36); - migraphx::op::batch_norm_inference batch_norm_inference770; - batch_norm_inference770.epsilon = 0.001; - batch_norm_inference770.momentum = 0.9; - auto mx770 = mm->add_instruction(batch_norm_inference770, mx769, mx35, mx34, mx33, mx32); - migraphx::op::relu relu771; - auto mx771 = mm->add_instruction(relu771, mx770); - migraphx::op::convolution convolution772; - convolution772.padding = {1, 0}; - convolution772.stride = {1, 1}; - convolution772.dilation = {1, 1}; - convolution772.group = 1; - auto mx772 = mm->add_instruction(convolution772, mx768, mx31); - migraphx::op::batch_norm_inference batch_norm_inference773; - batch_norm_inference773.epsilon = 0.001; - batch_norm_inference773.momentum = 0.9; - auto mx773 = mm->add_instruction(batch_norm_inference773, mx772, mx30, mx29, mx28, mx27); - migraphx::op::relu relu774; - auto mx774 = mm->add_instruction(relu774, mx773); - migraphx::op::concat concat775; - concat775.axis = 1; - auto mx775 = mm->add_instruction(concat775, mx771, mx774); - migraphx::op::convolution convolution776; - convolution776.padding = {0, 0}; - convolution776.stride = {1, 1}; - convolution776.dilation = {1, 1}; - convolution776.group = 1; - auto mx776 = mm->add_instruction(convolution776, mx762, mx26); - migraphx::op::batch_norm_inference batch_norm_inference777; - batch_norm_inference777.epsilon = 0.001; - batch_norm_inference777.momentum = 0.9; - auto mx777 = mm->add_instruction(batch_norm_inference777, mx776, mx25, mx24, mx23, mx22); - migraphx::op::relu relu778; - auto mx778 = mm->add_instruction(relu778, mx777); - migraphx::op::convolution convolution779; - convolution779.padding = {1, 1}; - convolution779.stride = {1, 1}; - convolution779.dilation = {1, 1}; - convolution779.group = 1; - auto mx779 = mm->add_instruction(convolution779, mx778, mx21); - migraphx::op::batch_norm_inference batch_norm_inference780; - batch_norm_inference780.epsilon = 0.001; - batch_norm_inference780.momentum = 0.9; - auto mx780 = mm->add_instruction(batch_norm_inference780, mx779, mx20, mx19, mx18, mx17); - migraphx::op::relu relu781; - auto mx781 = mm->add_instruction(relu781, mx780); - migraphx::op::convolution convolution782; - convolution782.padding = {0, 1}; - convolution782.stride = {1, 1}; - convolution782.dilation = {1, 1}; - convolution782.group = 1; - auto mx782 = mm->add_instruction(convolution782, mx781, mx16); - migraphx::op::batch_norm_inference batch_norm_inference783; - batch_norm_inference783.epsilon = 0.001; - batch_norm_inference783.momentum = 0.9; - auto mx783 = mm->add_instruction(batch_norm_inference783, mx782, mx15, mx14, mx13, mx12); - migraphx::op::relu relu784; - auto mx784 = mm->add_instruction(relu784, mx783); - migraphx::op::convolution convolution785; - convolution785.padding = {1, 0}; - convolution785.stride = {1, 1}; - convolution785.dilation = {1, 1}; - convolution785.group = 1; - auto mx785 = mm->add_instruction(convolution785, mx781, mx11); - migraphx::op::batch_norm_inference batch_norm_inference786; - batch_norm_inference786.epsilon = 0.001; - batch_norm_inference786.momentum = 0.9; - auto mx786 = mm->add_instruction(batch_norm_inference786, mx785, mx10, mx9, mx8, mx7); - migraphx::op::relu relu787; - auto mx787 = mm->add_instruction(relu787, mx786); - migraphx::op::concat concat788; - concat788.axis = 1; - auto mx788 = mm->add_instruction(concat788, mx784, mx787); - migraphx::op::pooling pooling789; - pooling789.mode = migraphx::op::pooling_mode::average; - pooling789.padding = {1, 1}; - pooling789.stride = {1, 1}; - pooling789.lengths = {3, 3}; - auto mx789 = mm->add_instruction(pooling789, mx762); - migraphx::op::convolution convolution790; - convolution790.padding = {0, 0}; - convolution790.stride = {1, 1}; - convolution790.dilation = {1, 1}; - convolution790.group = 1; - auto mx790 = mm->add_instruction(convolution790, mx789, mx6); - migraphx::op::batch_norm_inference batch_norm_inference791; - batch_norm_inference791.epsilon = 0.001; - batch_norm_inference791.momentum = 0.9; - auto mx791 = mm->add_instruction(batch_norm_inference791, mx790, mx5, mx4, mx3, mx2); - migraphx::op::relu relu792; - auto mx792 = mm->add_instruction(relu792, mx791); - migraphx::op::concat concat793; - concat793.axis = 1; - auto mx793 = mm->add_instruction(concat793, mx765, mx775, mx788, mx792); - migraphx::op::pooling pooling794; - pooling794.mode = migraphx::op::pooling_mode::average; - pooling794.padding = {0, 0}; - pooling794.stride = {8, 8}; - pooling794.lengths = {8, 8}; - auto mx794 = mm->add_instruction(pooling794, mx793); - migraphx::op::identity identity795; - auto mx795 = mm->add_instruction(identity795, mx794); - migraphx::op::flatten flatten796; - flatten796.axis = 1; - auto mx796 = mm->add_instruction(flatten796, mx795); - migraphx::op::transpose transpose797; - transpose797.dims = {1, 0}; - auto mx797 = mm->add_instruction(transpose797, mx1); - migraphx::op::multibroadcast multibroadcast798; - multibroadcast798.output_lens = {batch, 1000}; - auto mx798 = mm->add_instruction(multibroadcast798, mx0); - float dot799_alpha = 1; - float dot799_beta = 1; - migraphx::add_apply_alpha_beta( - *mm, {mx796, mx797, mx798}, migraphx::make_op("dot"), dot799_alpha, dot799_beta); + auto x_main_module_172 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 171)); + auto x_main_module_173 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 172)); + auto x_main_module_174 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 128, 1, 7}}, 173)); + auto x_main_module_175 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 174)); + auto x_main_module_176 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 7, 1}}, 175)); + auto x_main_module_177 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 176)); + auto x_main_module_178 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 1, 7}}, 177)); + auto x_main_module_179 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 178)); + auto x_main_module_180 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 7, 1}}, 179)); + auto x_main_module_181 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 180)); + auto x_main_module_182 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 768, 1, 1}}, 181)); + auto x_main_module_183 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 182)); + auto x_main_module_184 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 128, 7, 1}}, 183)); + auto x_main_module_185 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 184)); + auto x_main_module_186 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 1, 7}}, 185)); + auto x_main_module_187 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 186)); + auto x_main_module_188 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 768, 1, 1}}, 187)); + auto x_main_module_189 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {192}}, 188)); + auto x_main_module_190 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {192, 768, 1, 1}}, 189)); + auto x_main_module_191 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {96}}, 190)); + auto x_main_module_192 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_input_1, + x_main_module_62); + auto x_main_module_193 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,32,149,149]}")), + x_main_module_61); + auto x_main_module_194 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_192, x_main_module_193); + auto x_main_module_195 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_194); + auto x_main_module_196 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_195, + x_main_module_60); + auto x_main_module_197 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,32,147,147]}")), + x_main_module_59); + auto x_main_module_198 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_196, x_main_module_197); + auto x_main_module_199 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_198); + auto x_main_module_200 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_199, + x_main_module_58); + auto x_main_module_201 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,147,147]}")), + x_main_module_57); + auto x_main_module_202 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_200, x_main_module_201); + auto x_main_module_203 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_202); + auto x_main_module_204 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[0,0,0,0],stride:[2,2]}")), + x_main_module_203); + auto x_main_module_205 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_204, + x_main_module_56); + auto x_main_module_206 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,80,73,73]}")), + x_main_module_55); + auto x_main_module_207 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_205, x_main_module_206); + auto x_main_module_208 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_207); + auto x_main_module_209 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_208, + x_main_module_54); + auto x_main_module_210 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,71,71]}")), + x_main_module_53); + auto x_main_module_211 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_209, x_main_module_210); + auto x_main_module_212 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_211); + auto x_main_module_213 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[0,0,0,0],stride:[2,2]}")), + x_main_module_212); + auto x_main_module_214 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_213, + x_main_module_52); + auto x_main_module_215 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_51); + auto x_main_module_216 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_214, x_main_module_215); + auto x_main_module_217 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_216); + auto x_main_module_218 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_213, + x_main_module_50); + auto x_main_module_219 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,48,35,35]}")), + x_main_module_49); + auto x_main_module_220 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_218, x_main_module_219); + auto x_main_module_221 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_220); + auto x_main_module_222 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[2,2,2,2],padding_mode:0,stride:[1,1]}")), + x_main_module_221, + x_main_module_48); + auto x_main_module_223 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_47); + auto x_main_module_224 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_222, x_main_module_223); + auto x_main_module_225 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_224); + auto x_main_module_226 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_213, + x_main_module_46); + auto x_main_module_227 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_45); + auto x_main_module_228 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_226, x_main_module_227); + auto x_main_module_229 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_228); + auto x_main_module_230 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_229, + x_main_module_44); + auto x_main_module_231 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,35,35]}")), + x_main_module_43); + auto x_main_module_232 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_230, x_main_module_231); + auto x_main_module_233 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_232); + auto x_main_module_234 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_233, + x_main_module_42); + auto x_main_module_235 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,35,35]}")), + x_main_module_41); + auto x_main_module_236 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_234, x_main_module_235); + auto x_main_module_237 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_236); + auto x_main_module_238 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_213); + auto x_main_module_239 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_238); + auto x_main_module_240 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_239, + x_main_module_40); + auto x_main_module_241 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,32,35,35]}")), + x_main_module_39); + auto x_main_module_242 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_240, x_main_module_241); + auto x_main_module_243 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_242); + auto x_main_module_244 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_217, + x_main_module_225, + x_main_module_237, + x_main_module_243); + auto x_main_module_245 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_244, + x_main_module_38); + auto x_main_module_246 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_37); + auto x_main_module_247 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_245, x_main_module_246); + auto x_main_module_248 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_247); + auto x_main_module_249 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_244, + x_main_module_36); + auto x_main_module_250 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,48,35,35]}")), + x_main_module_35); + auto x_main_module_251 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_249, x_main_module_250); + auto x_main_module_252 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_251); + auto x_main_module_253 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[2,2,2,2],padding_mode:0,stride:[1,1]}")), + x_main_module_252, + x_main_module_34); + auto x_main_module_254 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_33); + auto x_main_module_255 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_253, x_main_module_254); + auto x_main_module_256 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_255); + auto x_main_module_257 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_244, + x_main_module_32); + auto x_main_module_258 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_31); + auto x_main_module_259 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_257, x_main_module_258); + auto x_main_module_260 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_259); + auto x_main_module_261 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_260, + x_main_module_30); + auto x_main_module_262 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,35,35]}")), + x_main_module_29); + auto x_main_module_263 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_261, x_main_module_262); + auto x_main_module_264 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_263); + auto x_main_module_265 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_264, + x_main_module_28); + auto x_main_module_266 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,35,35]}")), + x_main_module_27); + auto x_main_module_267 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_265, x_main_module_266); + auto x_main_module_268 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_267); + auto x_main_module_269 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_244); + auto x_main_module_270 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_269); + auto x_main_module_271 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_270, + x_main_module_26); + auto x_main_module_272 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_25); + auto x_main_module_273 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_271, x_main_module_272); + auto x_main_module_274 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_273); + auto x_main_module_275 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_248, + x_main_module_256, + x_main_module_268, + x_main_module_274); + auto x_main_module_276 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_275, + x_main_module_24); + auto x_main_module_277 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_23); + auto x_main_module_278 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_276, x_main_module_277); + auto x_main_module_279 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_278); + auto x_main_module_280 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_275, + x_main_module_22); + auto x_main_module_281 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,48,35,35]}")), + x_main_module_21); + auto x_main_module_282 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_280, x_main_module_281); + auto x_main_module_283 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_282); + auto x_main_module_284 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[2,2,2,2],padding_mode:0,stride:[1,1]}")), + x_main_module_283, + x_main_module_20); + auto x_main_module_285 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_19); + auto x_main_module_286 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_284, x_main_module_285); + auto x_main_module_287 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_286); + auto x_main_module_288 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_275, + x_main_module_18); + auto x_main_module_289 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_17); + auto x_main_module_290 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_288, x_main_module_289); + auto x_main_module_291 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_290); + auto x_main_module_292 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_291, + x_main_module_16); + auto x_main_module_293 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,35,35]}")), + x_main_module_15); + auto x_main_module_294 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_292, x_main_module_293); + auto x_main_module_295 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_294); + auto x_main_module_296 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_295, + x_main_module_14); + auto x_main_module_297 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,35,35]}")), + x_main_module_13); + auto x_main_module_298 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_296, x_main_module_297); + auto x_main_module_299 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_298); + auto x_main_module_300 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_275); + auto x_main_module_301 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_300); + auto x_main_module_302 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_301, + x_main_module_12); + auto x_main_module_303 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_11); + auto x_main_module_304 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_302, x_main_module_303); + auto x_main_module_305 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_304); + auto x_main_module_306 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_279, + x_main_module_287, + x_main_module_299, + x_main_module_305); + auto x_main_module_307 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_main_module_306, + x_main_module_10); + auto x_main_module_308 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,384,17,17]}")), + x_main_module_9); + auto x_main_module_309 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_307, x_main_module_308); + auto x_main_module_310 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_309); + auto x_main_module_311 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_306, + x_main_module_8); + auto x_main_module_312 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,35,35]}")), + x_main_module_7); + auto x_main_module_313 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_311, x_main_module_312); + auto x_main_module_314 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_313); + auto x_main_module_315 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_314, + x_main_module_6); + auto x_main_module_316 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,35,35]}")), + x_main_module_5); + auto x_main_module_317 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_315, x_main_module_316); + auto x_main_module_318 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_317); + auto x_main_module_319 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_main_module_318, + x_main_module_4); + auto x_main_module_320 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,96,17,17]}")), + x_main_module_191); + auto x_main_module_321 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_319, x_main_module_320); + auto x_main_module_322 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_321); + auto x_main_module_323 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[0,0,0,0],stride:[2,2]}")), + x_main_module_306); + auto x_main_module_324 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_310, + x_main_module_322, + x_main_module_323); + auto x_main_module_325 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_324, + x_main_module_190); + auto x_main_module_326 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_189); + auto x_main_module_327 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_325, x_main_module_326); + auto x_main_module_328 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_327); + auto x_main_module_329 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_324, + x_main_module_188); + auto x_main_module_330 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,17,17]}")), + x_main_module_187); + auto x_main_module_331 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_329, x_main_module_330); + auto x_main_module_332 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_331); + auto x_main_module_333 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_332, + x_main_module_186); + auto x_main_module_334 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,17,17]}")), + x_main_module_185); + auto x_main_module_335 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_333, x_main_module_334); + auto x_main_module_336 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_335); + auto x_main_module_337 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_336, + x_main_module_184); + auto x_main_module_338 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_183); + auto x_main_module_339 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_337, x_main_module_338); + auto x_main_module_340 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_339); + auto x_main_module_341 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_324, + x_main_module_182); + auto x_main_module_342 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,17,17]}")), + x_main_module_181); + auto x_main_module_343 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_341, x_main_module_342); + auto x_main_module_344 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_343); + auto x_main_module_345 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_344, + x_main_module_180); + auto x_main_module_346 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,17,17]}")), + x_main_module_179); + auto x_main_module_347 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_345, x_main_module_346); + auto x_main_module_348 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_347); + auto x_main_module_349 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_348, + x_main_module_178); + auto x_main_module_350 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,17,17]}")), + x_main_module_177); + auto x_main_module_351 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_349, x_main_module_350); + auto x_main_module_352 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_351); + auto x_main_module_353 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_352, + x_main_module_176); + auto x_main_module_354 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,17,17]}")), + x_main_module_175); + auto x_main_module_355 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_353, x_main_module_354); + auto x_main_module_356 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_355); + auto x_main_module_357 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_356, + x_main_module_174); + auto x_main_module_358 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_173); + auto x_main_module_359 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_357, x_main_module_358); + auto x_main_module_360 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_359); + auto x_main_module_361 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_324); + auto x_main_module_362 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_361); + auto x_main_module_363 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_362, + x_main_module_172); + auto x_main_module_364 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_171); + auto x_main_module_365 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_363, x_main_module_364); + auto x_main_module_366 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_365); + auto x_main_module_367 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_328, + x_main_module_340, + x_main_module_360, + x_main_module_366); + auto x_main_module_368 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_367, + x_main_module_170); + auto x_main_module_369 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_169); + auto x_main_module_370 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_368, x_main_module_369); + auto x_main_module_371 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_370); + auto x_main_module_372 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_367, + x_main_module_168); + auto x_main_module_373 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_167); + auto x_main_module_374 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_372, x_main_module_373); + auto x_main_module_375 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_374); + auto x_main_module_376 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_375, + x_main_module_166); + auto x_main_module_377 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_165); + auto x_main_module_378 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_376, x_main_module_377); + auto x_main_module_379 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_378); + auto x_main_module_380 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_379, + x_main_module_164); + auto x_main_module_381 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_163); + auto x_main_module_382 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_380, x_main_module_381); + auto x_main_module_383 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_382); + auto x_main_module_384 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_367, + x_main_module_162); + auto x_main_module_385 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_161); + auto x_main_module_386 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_384, x_main_module_385); + auto x_main_module_387 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_386); + auto x_main_module_388 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_387, + x_main_module_160); + auto x_main_module_389 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_159); + auto x_main_module_390 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_388, x_main_module_389); + auto x_main_module_391 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_390); + auto x_main_module_392 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_391, + x_main_module_158); + auto x_main_module_393 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_157); + auto x_main_module_394 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_392, x_main_module_393); + auto x_main_module_395 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_394); + auto x_main_module_396 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_395, + x_main_module_156); + auto x_main_module_397 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_155); + auto x_main_module_398 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_396, x_main_module_397); + auto x_main_module_399 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_398); + auto x_main_module_400 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_399, + x_main_module_154); + auto x_main_module_401 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_153); + auto x_main_module_402 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_400, x_main_module_401); + auto x_main_module_403 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_402); + auto x_main_module_404 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_367); + auto x_main_module_405 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_404); + auto x_main_module_406 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_405, + x_main_module_152); + auto x_main_module_407 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_151); + auto x_main_module_408 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_406, x_main_module_407); + auto x_main_module_409 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_408); + auto x_main_module_410 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_371, + x_main_module_383, + x_main_module_403, + x_main_module_409); + auto x_main_module_411 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_410, + x_main_module_150); + auto x_main_module_412 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_149); + auto x_main_module_413 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_411, x_main_module_412); + auto x_main_module_414 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_413); + auto x_main_module_415 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_410, + x_main_module_148); + auto x_main_module_416 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_147); + auto x_main_module_417 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_415, x_main_module_416); + auto x_main_module_418 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_417); + auto x_main_module_419 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_418, + x_main_module_146); + auto x_main_module_420 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_145); + auto x_main_module_421 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_419, x_main_module_420); + auto x_main_module_422 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_421); + auto x_main_module_423 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_422, + x_main_module_144); + auto x_main_module_424 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_143); + auto x_main_module_425 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_423, x_main_module_424); + auto x_main_module_426 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_425); + auto x_main_module_427 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_410, + x_main_module_142); + auto x_main_module_428 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_141); + auto x_main_module_429 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_427, x_main_module_428); + auto x_main_module_430 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_429); + auto x_main_module_431 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_430, + x_main_module_140); + auto x_main_module_432 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_139); + auto x_main_module_433 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_431, x_main_module_432); + auto x_main_module_434 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_433); + auto x_main_module_435 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_434, + x_main_module_138); + auto x_main_module_436 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_137); + auto x_main_module_437 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_435, x_main_module_436); + auto x_main_module_438 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_437); + auto x_main_module_439 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_438, + x_main_module_136); + auto x_main_module_440 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,160,17,17]}")), + x_main_module_135); + auto x_main_module_441 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_439, x_main_module_440); + auto x_main_module_442 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_441); + auto x_main_module_443 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_442, + x_main_module_134); + auto x_main_module_444 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_133); + auto x_main_module_445 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_443, x_main_module_444); + auto x_main_module_446 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_445); + auto x_main_module_447 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_410); + auto x_main_module_448 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_447); + auto x_main_module_449 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_448, + x_main_module_132); + auto x_main_module_450 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_131); + auto x_main_module_451 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_449, x_main_module_450); + auto x_main_module_452 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_451); + auto x_main_module_453 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_414, + x_main_module_426, + x_main_module_446, + x_main_module_452); + auto x_main_module_454 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_453, + x_main_module_130); + auto x_main_module_455 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_129); + auto x_main_module_456 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_454, x_main_module_455); + auto x_main_module_457 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_456); + auto x_main_module_458 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_453, + x_main_module_128); + auto x_main_module_459 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_127); + auto x_main_module_460 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_458, x_main_module_459); + auto x_main_module_461 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_460); + auto x_main_module_462 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_461, + x_main_module_126); + auto x_main_module_463 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_125); + auto x_main_module_464 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_462, x_main_module_463); + auto x_main_module_465 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_464); + auto x_main_module_466 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_465, + x_main_module_124); + auto x_main_module_467 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_123); + auto x_main_module_468 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_466, x_main_module_467); + auto x_main_module_469 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_468); + auto x_main_module_470 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_453, + x_main_module_122); + auto x_main_module_471 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_121); + auto x_main_module_472 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_470, x_main_module_471); + auto x_main_module_473 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_472); + auto x_main_module_474 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_473, + x_main_module_120); + auto x_main_module_475 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_119); + auto x_main_module_476 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_474, x_main_module_475); + auto x_main_module_477 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_476); + auto x_main_module_478 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_477, + x_main_module_118); + auto x_main_module_479 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_117); + auto x_main_module_480 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_478, x_main_module_479); + auto x_main_module_481 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_480); + auto x_main_module_482 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_481, + x_main_module_116); + auto x_main_module_483 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_115); + auto x_main_module_484 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_482, x_main_module_483); + auto x_main_module_485 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_484); + auto x_main_module_486 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_485, + x_main_module_114); + auto x_main_module_487 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_113); + auto x_main_module_488 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_486, x_main_module_487); + auto x_main_module_489 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_488); + auto x_main_module_490 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_453); + auto x_main_module_491 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_490); + auto x_main_module_492 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_491, + x_main_module_112); + auto x_main_module_493 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_111); + auto x_main_module_494 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_492, x_main_module_493); + auto x_main_module_495 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_494); + auto x_main_module_496 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_457, + x_main_module_469, + x_main_module_489, + x_main_module_495); + auto x_main_module_497 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_496, + x_main_module_110); + auto x_main_module_498 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_109); + auto x_main_module_499 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_497, x_main_module_498); + auto x_main_module_500 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_499); + auto x_main_module_501 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_main_module_500, + x_main_module_108); + auto x_main_module_502 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,320,8,8]}")), + x_main_module_107); + auto x_main_module_503 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_501, x_main_module_502); + auto x_main_module_504 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_503); + auto x_main_module_505 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_496, + x_main_module_106); + auto x_main_module_506 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_105); + auto x_main_module_507 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_505, x_main_module_506); + auto x_main_module_508 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_507); + auto x_main_module_509 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,3,0,3],padding_mode:0,stride:[1,1]}")), + x_main_module_508, + x_main_module_104); + auto x_main_module_510 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_103); + auto x_main_module_511 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_509, x_main_module_510); + auto x_main_module_512 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_511); + auto x_main_module_513 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,0,3,0],padding_mode:0,stride:[1,1]}")), + x_main_module_512, + x_main_module_102); + auto x_main_module_514 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,192,17,17]}")), + x_main_module_101); + auto x_main_module_515 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_513, x_main_module_514); + auto x_main_module_516 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_515); + auto x_main_module_517 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_main_module_516, + x_main_module_100); + auto x_main_module_518 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,192,8,8]}")), + x_main_module_99); + auto x_main_module_519 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_517, x_main_module_518); + auto x_main_module_520 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_519); + auto x_main_module_521 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[0,0,0,0],stride:[2,2]}")), + x_main_module_496); + auto x_main_module_522 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_504, + x_main_module_520, + x_main_module_521); + auto x_main_module_523 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_522, + x_main_module_98); + auto x_main_module_524 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,320,8,8]}")), + x_main_module_97); + auto x_main_module_525 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_523, x_main_module_524); + auto x_main_module_526 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_525); + auto x_main_module_527 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_522, + x_main_module_96); + auto x_main_module_528 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_95); + auto x_main_module_529 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_527, x_main_module_528); + auto x_main_module_530 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_529); + auto x_main_module_531 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,1,0,1],padding_mode:0,stride:[1,1]}")), + x_main_module_530, + x_main_module_94); + auto x_main_module_532 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_93); + auto x_main_module_533 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_531, x_main_module_532); + auto x_main_module_534 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_533); + auto x_main_module_535 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,0,1,0],padding_mode:0,stride:[1,1]}")), + x_main_module_530, + x_main_module_92); + auto x_main_module_536 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_91); + auto x_main_module_537 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_535, x_main_module_536); + auto x_main_module_538 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_537); + auto x_main_module_539 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_534, + x_main_module_538); + auto x_main_module_540 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_522, + x_main_module_90); + auto x_main_module_541 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,448,8,8]}")), + x_main_module_89); + auto x_main_module_542 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_540, x_main_module_541); + auto x_main_module_543 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_542); + auto x_main_module_544 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_543, + x_main_module_88); + auto x_main_module_545 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_87); + auto x_main_module_546 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_544, x_main_module_545); + auto x_main_module_547 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_546); + auto x_main_module_548 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,1,0,1],padding_mode:0,stride:[1,1]}")), + x_main_module_547, + x_main_module_86); + auto x_main_module_549 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_85); + auto x_main_module_550 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_548, x_main_module_549); + auto x_main_module_551 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_550); + auto x_main_module_552 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,0,1,0],padding_mode:0,stride:[1,1]}")), + x_main_module_547, + x_main_module_84); + auto x_main_module_553 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_83); + auto x_main_module_554 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_552, x_main_module_553); + auto x_main_module_555 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_554); + auto x_main_module_556 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_551, + x_main_module_555); + auto x_main_module_557 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_522); + auto x_main_module_558 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_557); + auto x_main_module_559 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_558, + x_main_module_82); + auto x_main_module_560 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,192,8,8]}")), + x_main_module_81); + auto x_main_module_561 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_559, x_main_module_560); + auto x_main_module_562 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_561); + auto x_main_module_563 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_526, + x_main_module_539, + x_main_module_556, + x_main_module_562); + auto x_main_module_564 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_563, + x_main_module_80); + auto x_main_module_565 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,320,8,8]}")), + x_main_module_79); + auto x_main_module_566 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_564, x_main_module_565); + auto x_main_module_567 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_566); + auto x_main_module_568 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_563, + x_main_module_78); + auto x_main_module_569 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_77); + auto x_main_module_570 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_568, x_main_module_569); + auto x_main_module_571 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_570); + auto x_main_module_572 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,1,0,1],padding_mode:0,stride:[1,1]}")), + x_main_module_571, + x_main_module_76); + auto x_main_module_573 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_75); + auto x_main_module_574 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_572, x_main_module_573); + auto x_main_module_575 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_574); + auto x_main_module_576 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,0,1,0],padding_mode:0,stride:[1,1]}")), + x_main_module_571, + x_main_module_74); + auto x_main_module_577 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_73); + auto x_main_module_578 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_576, x_main_module_577); + auto x_main_module_579 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_578); + auto x_main_module_580 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_575, + x_main_module_579); + auto x_main_module_581 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_563, + x_main_module_72); + auto x_main_module_582 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,448,8,8]}")), + x_main_module_71); + auto x_main_module_583 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_581, x_main_module_582); + auto x_main_module_584 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_583); + auto x_main_module_585 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_584, + x_main_module_70); + auto x_main_module_586 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_69); + auto x_main_module_587 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_585, x_main_module_586); + auto x_main_module_588 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_587); + auto x_main_module_589 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,1,0,1],padding_mode:0,stride:[1,1]}")), + x_main_module_588, + x_main_module_68); + auto x_main_module_590 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_67); + auto x_main_module_591 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_589, x_main_module_590); + auto x_main_module_592 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_591); + auto x_main_module_593 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,0,1,0],padding_mode:0,stride:[1,1]}")), + x_main_module_588, + x_main_module_66); + auto x_main_module_594 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,384,8,8]}")), + x_main_module_65); + auto x_main_module_595 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_593, x_main_module_594); + auto x_main_module_596 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_595); + auto x_main_module_597 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_592, + x_main_module_596); + auto x_main_module_598 = mmain->add_instruction( + migraphx::make_op("pad", + migraphx::from_json_string("{mode:0,pads:[0,0,1,1,0,0,1,1],value:0.0}")), + x_main_module_563); + auto x_main_module_599 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_598); + auto x_main_module_600 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_599, + x_main_module_64); + auto x_main_module_601 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,192,8,8]}")), + x_main_module_63); + auto x_main_module_602 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_600, x_main_module_601); + auto x_main_module_603 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_602); + auto x_main_module_604 = + mmain->add_instruction(migraphx::make_op("concat", migraphx::from_json_string("{axis:1}")), + x_main_module_567, + x_main_module_580, + x_main_module_597, + x_main_module_603); + auto x_main_module_605 = + mmain->add_instruction(migraphx::make_op("identity"), x_main_module_604); + auto x_main_module_606 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[8,8],lp_order:2,mode:0,padding:[0,0,0,0],stride:[8,8]}")), + x_main_module_605); + auto x_main_module_607 = mmain->add_instruction( + migraphx::make_op("reshape", migraphx::from_json_string("{dims:[1,-1]}")), + x_main_module_606); + auto x_main_module_608 = mmain->add_instruction( + migraphx::make_op("transpose", migraphx::from_json_string("{permutation:[1,0]}")), + x_main_module_2); + auto x_main_module_609 = + mmain->add_instruction(migraphx::make_op("dot"), x_main_module_607, x_main_module_608); + auto x_main_module_610 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,1000]}")), + x_main_module_3); + auto x_main_module_611 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,1000]}")), + x_main_module_0); + auto x_main_module_612 = + mmain->add_instruction(migraphx::make_op("mul"), x_main_module_610, x_main_module_611); + auto x_main_module_613 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_609, x_main_module_612); + mmain->add_return({x_main_module_613}); return p; } - } // namespace MIGRAPHX_INLINE_NS } // namespace driver } // namespace migraphx diff --git a/src/driver/main.cpp b/src/driver/main.cpp index 32ccb7e49..ab9f7621b 100644 --- a/src/driver/main.cpp +++ b/src/driver/main.cpp @@ -210,6 +210,9 @@ struct loader auto last = std::prev(mm->end(), trim); mm->remove_instructions(last, mm->end()); } + // Remove unused variable when exporting to cpp + if(output_type == "cpp") + migraphx::run_passes(*p.get_main_module(), {migraphx::dead_code_elimination{}}); if(optimize) { migraphx::run_passes(*p.get_main_module(), diff --git a/src/driver/resnet50.cpp b/src/driver/resnet50.cpp index 33cbba644..7a8e4a33d 100644 --- a/src/driver/resnet50.cpp +++ b/src/driver/resnet50.cpp @@ -1,3 +1,4 @@ + /* * The MIT License (MIT) * @@ -21,10 +22,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include +#include #include #include -#include +#include #include "models.hpp" namespace migraphx { @@ -34,1231 +35,1026 @@ inline namespace MIGRAPHX_INLINE_NS { migraphx::program resnet50(unsigned batch) // NOLINT(readability-function-size) { migraphx::program p; - auto* mm = p.get_main_module(); - auto m0 = - mm->add_parameter("0", migraphx::shape{migraphx::shape::float_type, {batch, 3, 224, 224}}); - auto mx0 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000}}, 0)); - auto mx1 = mm->add_literal( + migraphx::module_ref mmain = p.get_main_module(); + auto x_main_module_0 = mmain->add_literal(migraphx::abs( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1}}, 0))); + auto x_input_1 = mmain->add_parameter( + "input.1", migraphx::shape{migraphx::shape::float_type, {batch, 3, 224, 224}}); + auto x_main_module_2 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000, 2048}}, 1)); - auto mx2 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 2))); - auto mx3 = mm->add_literal( + auto x_main_module_3 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1000}}, 2)); + auto x_main_module_4 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 3)); - auto mx4 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 4)); - auto mx5 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 5))); - auto mx6 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {2048, 512, 1, 1}}, 6)); - auto mx7 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 7))); - auto mx8 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 8)); - auto mx9 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 9)); - auto mx10 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 10))); - auto mx11 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 512, 3, 3}}, 11)); - auto mx12 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 12))); - auto mx13 = mm->add_literal( + auto x_main_module_5 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {2048, 512, 1, 1}}, 4)); + auto x_main_module_6 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 5)); + auto x_main_module_7 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 512, 3, 3}}, 6)); + auto x_main_module_8 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 7)); + auto x_main_module_9 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 2048, 1, 1}}, 8)); + auto x_main_module_10 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 9)); + auto x_main_module_11 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {2048, 512, 1, 1}}, 10)); + auto x_main_module_12 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 11)); + auto x_main_module_13 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 512, 3, 3}}, 12)); + auto x_main_module_14 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 13)); - auto mx14 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 14)); - auto mx15 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 15))); - auto mx16 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 2048, 1, 1}}, 16)); - auto mx17 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 17))); - auto mx18 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 18)); - auto mx19 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 19)); - auto mx20 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 20))); - auto mx21 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {2048, 512, 1, 1}}, 21)); - auto mx22 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 22))); - auto mx23 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 23)); - auto mx24 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 24)); - auto mx25 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 25))); - auto mx26 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 512, 3, 3}}, 26)); - auto mx27 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 27))); - auto mx28 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 28)); - auto mx29 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 29)); - auto mx30 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 30))); - auto mx31 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 2048, 1, 1}}, 31)); - auto mx32 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 32))); - auto mx33 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 33)); - auto mx34 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 34)); - auto mx35 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 35))); - auto mx36 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {2048, 1024, 1, 1}}, 36)); - auto mx37 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 37))); - auto mx38 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 38)); - auto mx39 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 39)); - auto mx40 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 40))); - auto mx41 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {2048, 512, 1, 1}}, 41)); - auto mx42 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 42))); - auto mx43 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 43)); - auto mx44 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 44)); - auto mx45 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 45))); - auto mx46 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 512, 3, 3}}, 46)); - auto mx47 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 47))); - auto mx48 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 48)); - auto mx49 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 49)); - auto mx50 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 50))); - auto mx51 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 1024, 1, 1}}, 51)); - auto mx52 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 52))); - auto mx53 = mm->add_literal( + auto x_main_module_15 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 2048, 1, 1}}, 14)); + auto x_main_module_16 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 15)); + auto x_main_module_17 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {2048, 1024, 1, 1}}, 16)); + auto x_main_module_18 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {2048}}, 17)); + auto x_main_module_19 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {2048, 512, 1, 1}}, 18)); + auto x_main_module_20 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 19)); + auto x_main_module_21 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 512, 3, 3}}, 20)); + auto x_main_module_22 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 21)); + auto x_main_module_23 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 1024, 1, 1}}, 22)); + auto x_main_module_24 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 23)); + auto x_main_module_25 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 24)); + auto x_main_module_26 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 25)); + auto x_main_module_27 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 26)); + auto x_main_module_28 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 27)); + auto x_main_module_29 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 28)); + auto x_main_module_30 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 29)); + auto x_main_module_31 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 30)); + auto x_main_module_32 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 31)); + auto x_main_module_33 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 32)); + auto x_main_module_34 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 33)); + auto x_main_module_35 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 34)); + auto x_main_module_36 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 35)); + auto x_main_module_37 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 36)); + auto x_main_module_38 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 37)); + auto x_main_module_39 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 38)); + auto x_main_module_40 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 39)); + auto x_main_module_41 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 40)); + auto x_main_module_42 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 41)); + auto x_main_module_43 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 42)); + auto x_main_module_44 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 43)); + auto x_main_module_45 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 44)); + auto x_main_module_46 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 45)); + auto x_main_module_47 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 46)); + auto x_main_module_48 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 47)); + auto x_main_module_49 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 48)); + auto x_main_module_50 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 49)); + auto x_main_module_51 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 50)); + auto x_main_module_52 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 51)); + auto x_main_module_53 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 52)); + auto x_main_module_54 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 53)); - auto mx54 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 54)); - auto mx55 = mm->add_literal( + auto x_main_module_55 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {1024, 512, 1, 1}}, 54)); + auto x_main_module_56 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 55)); - auto mx56 = mm->add_literal(migraphx::generate_literal( + auto x_main_module_57 = mmain->add_literal(migraphx::generate_literal( migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 56)); - auto mx57 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 57))); - auto mx58 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 58)); - auto mx59 = mm->add_literal( + auto x_main_module_58 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 57)); + auto x_main_module_59 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 58)); + auto x_main_module_60 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 59)); - auto mx60 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 60))); - auto mx61 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 61)); - auto mx62 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 62))); - auto mx63 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 63)); - auto mx64 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 64)); - auto mx65 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 65))); - auto mx66 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 66)); - auto mx67 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 67))); - auto mx68 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 68)); - auto mx69 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 69)); - auto mx70 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 70)); - auto mx71 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 71)); - auto mx72 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 72))); - auto mx73 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 73)); - auto mx74 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 74)); - auto mx75 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 75))); - auto mx76 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 76)); - auto mx77 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 77))); - auto mx78 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 78)); - auto mx79 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 79)); - auto mx80 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 80))); - auto mx81 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 81)); - auto mx82 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 82))); - auto mx83 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 83)); - auto mx84 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 84)); - auto mx85 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 85)); - auto mx86 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 86)); - auto mx87 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 87))); - auto mx88 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 88)); - auto mx89 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 89)); - auto mx90 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 90))); - auto mx91 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 91)); - auto mx92 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 92))); - auto mx93 = mm->add_literal( + auto x_main_module_61 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 512, 1, 1}}, 60)); + auto x_main_module_62 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 61)); + auto x_main_module_63 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 62)); + auto x_main_module_64 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 63)); + auto x_main_module_65 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 64)); + auto x_main_module_66 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 65)); + auto x_main_module_67 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 512, 1, 1}}, 66)); + auto x_main_module_68 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 67)); + auto x_main_module_69 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 68)); + auto x_main_module_70 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 69)); + auto x_main_module_71 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 70)); + auto x_main_module_72 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 71)); + auto x_main_module_73 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 512, 1, 1}}, 72)); + auto x_main_module_74 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 73)); + auto x_main_module_75 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 74)); + auto x_main_module_76 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 75)); + auto x_main_module_77 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 76)); + auto x_main_module_78 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 77)); + auto x_main_module_79 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 512, 1, 1}}, 78)); + auto x_main_module_80 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 79)); + auto x_main_module_81 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 256, 1, 1}}, 80)); + auto x_main_module_82 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 81)); + auto x_main_module_83 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 82)); + auto x_main_module_84 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 83)); + auto x_main_module_85 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 84)); + auto x_main_module_86 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 85)); + auto x_main_module_87 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {128, 256, 1, 1}}, 86)); + auto x_main_module_88 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 87)); + auto x_main_module_89 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 88)); + auto x_main_module_90 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 89)); + auto x_main_module_91 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 64, 3, 3}}, 90)); + auto x_main_module_92 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 91)); + auto x_main_module_93 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 92)); + auto x_main_module_94 = mmain->add_literal( migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 93)); - auto mx94 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 94)); - auto mx95 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 95))); - auto mx96 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 96)); - auto mx97 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 97))); - auto mx98 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 98)); - auto mx99 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 99)); - auto mx100 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 100)); - auto mx101 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 101)); - auto mx102 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 102))); - auto mx103 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 103)); - auto mx104 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 104)); - auto mx105 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 105))); - auto mx106 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 106)); - auto mx107 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 107))); - auto mx108 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 108)); - auto mx109 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 109)); - auto mx110 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 110))); - auto mx111 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 111)); - auto mx112 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 112))); - auto mx113 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 113)); - auto mx114 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 114)); - auto mx115 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 115)); - auto mx116 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 116)); - auto mx117 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 117))); - auto mx118 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 118)); - auto mx119 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 119)); - auto mx120 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 120))); - auto mx121 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 121)); - auto mx122 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 122))); - auto mx123 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 123)); - auto mx124 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 124)); - auto mx125 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 125))); - auto mx126 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 1024, 1, 1}}, 126)); - auto mx127 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 127))); - auto mx128 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 128)); - auto mx129 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 129)); - auto mx130 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 130)); - auto mx131 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {1024, 512, 1, 1}}, 131)); - auto mx132 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 132))); - auto mx133 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 133)); - auto mx134 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 134)); - auto mx135 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {1024}}, 135)); - auto mx136 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {1024, 256, 1, 1}}, 136)); - auto mx137 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 137))); - auto mx138 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 138)); - auto mx139 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 139)); - auto mx140 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 140))); - auto mx141 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 256, 3, 3}}, 141)); - auto mx142 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 142))); - auto mx143 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 143)); - auto mx144 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 144)); - auto mx145 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 145))); - auto mx146 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 512, 1, 1}}, 146)); - auto mx147 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 147))); - auto mx148 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 148)); - auto mx149 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 149)); - auto mx150 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 150)); - auto mx151 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 151)); - auto mx152 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 152))); - auto mx153 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 153)); - auto mx154 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 154)); - auto mx155 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 155))); - auto mx156 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 156)); - auto mx157 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 157))); - auto mx158 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 158)); - auto mx159 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 159)); - auto mx160 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 160))); - auto mx161 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 512, 1, 1}}, 161)); - auto mx162 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 162))); - auto mx163 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 163)); - auto mx164 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 164)); - auto mx165 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 165)); - auto mx166 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 166)); - auto mx167 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 167))); - auto mx168 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 168)); - auto mx169 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 169)); - auto mx170 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 170))); - auto mx171 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 171)); - auto mx172 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 172))); - auto mx173 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 173)); - auto mx174 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 174)); - auto mx175 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 175))); - auto mx176 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 512, 1, 1}}, 176)); - auto mx177 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 177))); - auto mx178 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 178)); - auto mx179 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 179)); - auto mx180 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 180)); - auto mx181 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 181)); - auto mx182 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 182))); - auto mx183 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 183)); - auto mx184 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 184)); - auto mx185 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 185))); - auto mx186 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 186)); - auto mx187 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 187))); - auto mx188 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 188)); - auto mx189 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 189)); - auto mx190 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 190))); - auto mx191 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 512, 1, 1}}, 191)); - auto mx192 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 192))); - auto mx193 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 193)); - auto mx194 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 194)); - auto mx195 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 195)); - auto mx196 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 256, 1, 1}}, 196)); - auto mx197 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 197))); - auto mx198 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 198)); - auto mx199 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 199)); - auto mx200 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {512}}, 200)); - auto mx201 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {512, 128, 1, 1}}, 201)); - auto mx202 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 202))); - auto mx203 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 203)); - auto mx204 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 204)); - auto mx205 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 205))); - auto mx206 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 128, 3, 3}}, 206)); - auto mx207 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 207))); - auto mx208 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 208)); - auto mx209 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 209)); - auto mx210 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {128}}, 210))); - auto mx211 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {128, 256, 1, 1}}, 211)); - auto mx212 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 212))); - auto mx213 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 213)); - auto mx214 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 214)); - auto mx215 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 215)); - auto mx216 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 216)); - auto mx217 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 217))); - auto mx218 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 218)); - auto mx219 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 219)); - auto mx220 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 220))); - auto mx221 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 64, 3, 3}}, 221)); - auto mx222 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 222))); - auto mx223 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 223)); - auto mx224 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 224)); - auto mx225 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 225))); - auto mx226 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 226)); - auto mx227 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 227))); - auto mx228 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 228)); - auto mx229 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 229)); - auto mx230 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 230)); - auto mx231 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 231)); - auto mx232 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 232))); - auto mx233 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 233)); - auto mx234 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 234)); - auto mx235 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 235))); - auto mx236 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 64, 3, 3}}, 236)); - auto mx237 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 237))); - auto mx238 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 238)); - auto mx239 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 239)); - auto mx240 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 240))); - auto mx241 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 241)); - auto mx242 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 242))); - auto mx243 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 243)); - auto mx244 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 244)); - auto mx245 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 245)); - auto mx246 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 246)); - auto mx247 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 247))); - auto mx248 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 248)); - auto mx249 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 249)); - auto mx250 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 250)); - auto mx251 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 251)); - auto mx252 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 252))); - auto mx253 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 253)); - auto mx254 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 254)); - auto mx255 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 255))); - auto mx256 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 64, 3, 3}}, 256)); - auto mx257 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 257))); - auto mx258 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 258)); - auto mx259 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 259)); - auto mx260 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 260))); - auto mx261 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 64, 1, 1}}, 261)); - auto mx262 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 262))); - auto mx263 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 263)); - auto mx264 = mm->add_literal( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 264)); - auto mx265 = mm->add_literal(migraphx::abs( - migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 265))); - auto mx266 = mm->add_literal(migraphx::generate_literal( - migraphx::shape{migraphx::shape::float_type, {64, 3, 7, 7}}, 266)); - migraphx::op::convolution convolution267; - convolution267.padding = {3, 3}; - convolution267.stride = {2, 2}; - convolution267.dilation = {1, 1}; - convolution267.group = 1; - auto mx267 = mm->add_instruction(convolution267, m0, mx266); - migraphx::op::batch_norm_inference batch_norm_inference268; - batch_norm_inference268.epsilon = 1e-05; - batch_norm_inference268.momentum = 0.9; - auto mx268 = mm->add_instruction(batch_norm_inference268, mx267, mx265, mx264, mx263, mx262); - migraphx::op::relu relu269; - auto mx269 = mm->add_instruction(relu269, mx268); - migraphx::op::pooling pooling270; - pooling270.mode = migraphx::op::pooling_mode::max; - pooling270.padding = {1, 1}; - pooling270.stride = {2, 2}; - pooling270.lengths = {3, 3}; - auto mx270 = mm->add_instruction(pooling270, mx269); - migraphx::op::convolution convolution271; - convolution271.padding = {0, 0}; - convolution271.stride = {1, 1}; - convolution271.dilation = {1, 1}; - convolution271.group = 1; - auto mx271 = mm->add_instruction(convolution271, mx270, mx261); - migraphx::op::batch_norm_inference batch_norm_inference272; - batch_norm_inference272.epsilon = 1e-05; - batch_norm_inference272.momentum = 0.9; - auto mx272 = mm->add_instruction(batch_norm_inference272, mx271, mx260, mx259, mx258, mx257); - migraphx::op::relu relu273; - auto mx273 = mm->add_instruction(relu273, mx272); - migraphx::op::convolution convolution274; - convolution274.padding = {1, 1}; - convolution274.stride = {1, 1}; - convolution274.dilation = {1, 1}; - convolution274.group = 1; - auto mx274 = mm->add_instruction(convolution274, mx273, mx256); - migraphx::op::batch_norm_inference batch_norm_inference275; - batch_norm_inference275.epsilon = 1e-05; - batch_norm_inference275.momentum = 0.9; - auto mx275 = mm->add_instruction(batch_norm_inference275, mx274, mx255, mx254, mx253, mx252); - migraphx::op::relu relu276; - auto mx276 = mm->add_instruction(relu276, mx275); - migraphx::op::convolution convolution277; - convolution277.padding = {0, 0}; - convolution277.stride = {1, 1}; - convolution277.dilation = {1, 1}; - convolution277.group = 1; - auto mx277 = mm->add_instruction(convolution277, mx276, mx251); - migraphx::op::batch_norm_inference batch_norm_inference278; - batch_norm_inference278.epsilon = 1e-05; - batch_norm_inference278.momentum = 0.9; - auto mx278 = mm->add_instruction(batch_norm_inference278, mx277, mx250, mx249, mx248, mx247); - migraphx::op::convolution convolution279; - convolution279.padding = {0, 0}; - convolution279.stride = {1, 1}; - convolution279.dilation = {1, 1}; - convolution279.group = 1; - auto mx279 = mm->add_instruction(convolution279, mx270, mx246); - migraphx::op::batch_norm_inference batch_norm_inference280; - batch_norm_inference280.epsilon = 1e-05; - batch_norm_inference280.momentum = 0.9; - auto mx280 = mm->add_instruction(batch_norm_inference280, mx279, mx245, mx244, mx243, mx242); - migraphx::op::add add281; - auto mx281 = mm->add_instruction(add281, mx278, mx280); - migraphx::op::relu relu282; - auto mx282 = mm->add_instruction(relu282, mx281); - migraphx::op::convolution convolution283; - convolution283.padding = {0, 0}; - convolution283.stride = {1, 1}; - convolution283.dilation = {1, 1}; - convolution283.group = 1; - auto mx283 = mm->add_instruction(convolution283, mx282, mx241); - migraphx::op::batch_norm_inference batch_norm_inference284; - batch_norm_inference284.epsilon = 1e-05; - batch_norm_inference284.momentum = 0.9; - auto mx284 = mm->add_instruction(batch_norm_inference284, mx283, mx240, mx239, mx238, mx237); - migraphx::op::relu relu285; - auto mx285 = mm->add_instruction(relu285, mx284); - migraphx::op::convolution convolution286; - convolution286.padding = {1, 1}; - convolution286.stride = {1, 1}; - convolution286.dilation = {1, 1}; - convolution286.group = 1; - auto mx286 = mm->add_instruction(convolution286, mx285, mx236); - migraphx::op::batch_norm_inference batch_norm_inference287; - batch_norm_inference287.epsilon = 1e-05; - batch_norm_inference287.momentum = 0.9; - auto mx287 = mm->add_instruction(batch_norm_inference287, mx286, mx235, mx234, mx233, mx232); - migraphx::op::relu relu288; - auto mx288 = mm->add_instruction(relu288, mx287); - migraphx::op::convolution convolution289; - convolution289.padding = {0, 0}; - convolution289.stride = {1, 1}; - convolution289.dilation = {1, 1}; - convolution289.group = 1; - auto mx289 = mm->add_instruction(convolution289, mx288, mx231); - migraphx::op::batch_norm_inference batch_norm_inference290; - batch_norm_inference290.epsilon = 1e-05; - batch_norm_inference290.momentum = 0.9; - auto mx290 = mm->add_instruction(batch_norm_inference290, mx289, mx230, mx229, mx228, mx227); - migraphx::op::add add291; - auto mx291 = mm->add_instruction(add291, mx290, mx282); - migraphx::op::relu relu292; - auto mx292 = mm->add_instruction(relu292, mx291); - migraphx::op::convolution convolution293; - convolution293.padding = {0, 0}; - convolution293.stride = {1, 1}; - convolution293.dilation = {1, 1}; - convolution293.group = 1; - auto mx293 = mm->add_instruction(convolution293, mx292, mx226); - migraphx::op::batch_norm_inference batch_norm_inference294; - batch_norm_inference294.epsilon = 1e-05; - batch_norm_inference294.momentum = 0.9; - auto mx294 = mm->add_instruction(batch_norm_inference294, mx293, mx225, mx224, mx223, mx222); - migraphx::op::relu relu295; - auto mx295 = mm->add_instruction(relu295, mx294); - migraphx::op::convolution convolution296; - convolution296.padding = {1, 1}; - convolution296.stride = {1, 1}; - convolution296.dilation = {1, 1}; - convolution296.group = 1; - auto mx296 = mm->add_instruction(convolution296, mx295, mx221); - migraphx::op::batch_norm_inference batch_norm_inference297; - batch_norm_inference297.epsilon = 1e-05; - batch_norm_inference297.momentum = 0.9; - auto mx297 = mm->add_instruction(batch_norm_inference297, mx296, mx220, mx219, mx218, mx217); - migraphx::op::relu relu298; - auto mx298 = mm->add_instruction(relu298, mx297); - migraphx::op::convolution convolution299; - convolution299.padding = {0, 0}; - convolution299.stride = {1, 1}; - convolution299.dilation = {1, 1}; - convolution299.group = 1; - auto mx299 = mm->add_instruction(convolution299, mx298, mx216); - migraphx::op::batch_norm_inference batch_norm_inference300; - batch_norm_inference300.epsilon = 1e-05; - batch_norm_inference300.momentum = 0.9; - auto mx300 = mm->add_instruction(batch_norm_inference300, mx299, mx215, mx214, mx213, mx212); - migraphx::op::add add301; - auto mx301 = mm->add_instruction(add301, mx300, mx292); - migraphx::op::relu relu302; - auto mx302 = mm->add_instruction(relu302, mx301); - migraphx::op::convolution convolution303; - convolution303.padding = {0, 0}; - convolution303.stride = {1, 1}; - convolution303.dilation = {1, 1}; - convolution303.group = 1; - auto mx303 = mm->add_instruction(convolution303, mx302, mx211); - migraphx::op::batch_norm_inference batch_norm_inference304; - batch_norm_inference304.epsilon = 1e-05; - batch_norm_inference304.momentum = 0.9; - auto mx304 = mm->add_instruction(batch_norm_inference304, mx303, mx210, mx209, mx208, mx207); - migraphx::op::relu relu305; - auto mx305 = mm->add_instruction(relu305, mx304); - migraphx::op::convolution convolution306; - convolution306.padding = {1, 1}; - convolution306.stride = {2, 2}; - convolution306.dilation = {1, 1}; - convolution306.group = 1; - auto mx306 = mm->add_instruction(convolution306, mx305, mx206); - migraphx::op::batch_norm_inference batch_norm_inference307; - batch_norm_inference307.epsilon = 1e-05; - batch_norm_inference307.momentum = 0.9; - auto mx307 = mm->add_instruction(batch_norm_inference307, mx306, mx205, mx204, mx203, mx202); - migraphx::op::relu relu308; - auto mx308 = mm->add_instruction(relu308, mx307); - migraphx::op::convolution convolution309; - convolution309.padding = {0, 0}; - convolution309.stride = {1, 1}; - convolution309.dilation = {1, 1}; - convolution309.group = 1; - auto mx309 = mm->add_instruction(convolution309, mx308, mx201); - migraphx::op::batch_norm_inference batch_norm_inference310; - batch_norm_inference310.epsilon = 1e-05; - batch_norm_inference310.momentum = 0.9; - auto mx310 = mm->add_instruction(batch_norm_inference310, mx309, mx200, mx199, mx198, mx197); - migraphx::op::convolution convolution311; - convolution311.padding = {0, 0}; - convolution311.stride = {2, 2}; - convolution311.dilation = {1, 1}; - convolution311.group = 1; - auto mx311 = mm->add_instruction(convolution311, mx302, mx196); - migraphx::op::batch_norm_inference batch_norm_inference312; - batch_norm_inference312.epsilon = 1e-05; - batch_norm_inference312.momentum = 0.9; - auto mx312 = mm->add_instruction(batch_norm_inference312, mx311, mx195, mx194, mx193, mx192); - migraphx::op::add add313; - auto mx313 = mm->add_instruction(add313, mx310, mx312); - migraphx::op::relu relu314; - auto mx314 = mm->add_instruction(relu314, mx313); - migraphx::op::convolution convolution315; - convolution315.padding = {0, 0}; - convolution315.stride = {1, 1}; - convolution315.dilation = {1, 1}; - convolution315.group = 1; - auto mx315 = mm->add_instruction(convolution315, mx314, mx191); - migraphx::op::batch_norm_inference batch_norm_inference316; - batch_norm_inference316.epsilon = 1e-05; - batch_norm_inference316.momentum = 0.9; - auto mx316 = mm->add_instruction(batch_norm_inference316, mx315, mx190, mx189, mx188, mx187); - migraphx::op::relu relu317; - auto mx317 = mm->add_instruction(relu317, mx316); - migraphx::op::convolution convolution318; - convolution318.padding = {1, 1}; - convolution318.stride = {1, 1}; - convolution318.dilation = {1, 1}; - convolution318.group = 1; - auto mx318 = mm->add_instruction(convolution318, mx317, mx186); - migraphx::op::batch_norm_inference batch_norm_inference319; - batch_norm_inference319.epsilon = 1e-05; - batch_norm_inference319.momentum = 0.9; - auto mx319 = mm->add_instruction(batch_norm_inference319, mx318, mx185, mx184, mx183, mx182); - migraphx::op::relu relu320; - auto mx320 = mm->add_instruction(relu320, mx319); - migraphx::op::convolution convolution321; - convolution321.padding = {0, 0}; - convolution321.stride = {1, 1}; - convolution321.dilation = {1, 1}; - convolution321.group = 1; - auto mx321 = mm->add_instruction(convolution321, mx320, mx181); - migraphx::op::batch_norm_inference batch_norm_inference322; - batch_norm_inference322.epsilon = 1e-05; - batch_norm_inference322.momentum = 0.9; - auto mx322 = mm->add_instruction(batch_norm_inference322, mx321, mx180, mx179, mx178, mx177); - migraphx::op::add add323; - auto mx323 = mm->add_instruction(add323, mx322, mx314); - migraphx::op::relu relu324; - auto mx324 = mm->add_instruction(relu324, mx323); - migraphx::op::convolution convolution325; - convolution325.padding = {0, 0}; - convolution325.stride = {1, 1}; - convolution325.dilation = {1, 1}; - convolution325.group = 1; - auto mx325 = mm->add_instruction(convolution325, mx324, mx176); - migraphx::op::batch_norm_inference batch_norm_inference326; - batch_norm_inference326.epsilon = 1e-05; - batch_norm_inference326.momentum = 0.9; - auto mx326 = mm->add_instruction(batch_norm_inference326, mx325, mx175, mx174, mx173, mx172); - migraphx::op::relu relu327; - auto mx327 = mm->add_instruction(relu327, mx326); - migraphx::op::convolution convolution328; - convolution328.padding = {1, 1}; - convolution328.stride = {1, 1}; - convolution328.dilation = {1, 1}; - convolution328.group = 1; - auto mx328 = mm->add_instruction(convolution328, mx327, mx171); - migraphx::op::batch_norm_inference batch_norm_inference329; - batch_norm_inference329.epsilon = 1e-05; - batch_norm_inference329.momentum = 0.9; - auto mx329 = mm->add_instruction(batch_norm_inference329, mx328, mx170, mx169, mx168, mx167); - migraphx::op::relu relu330; - auto mx330 = mm->add_instruction(relu330, mx329); - migraphx::op::convolution convolution331; - convolution331.padding = {0, 0}; - convolution331.stride = {1, 1}; - convolution331.dilation = {1, 1}; - convolution331.group = 1; - auto mx331 = mm->add_instruction(convolution331, mx330, mx166); - migraphx::op::batch_norm_inference batch_norm_inference332; - batch_norm_inference332.epsilon = 1e-05; - batch_norm_inference332.momentum = 0.9; - auto mx332 = mm->add_instruction(batch_norm_inference332, mx331, mx165, mx164, mx163, mx162); - migraphx::op::add add333; - auto mx333 = mm->add_instruction(add333, mx332, mx324); - migraphx::op::relu relu334; - auto mx334 = mm->add_instruction(relu334, mx333); - migraphx::op::convolution convolution335; - convolution335.padding = {0, 0}; - convolution335.stride = {1, 1}; - convolution335.dilation = {1, 1}; - convolution335.group = 1; - auto mx335 = mm->add_instruction(convolution335, mx334, mx161); - migraphx::op::batch_norm_inference batch_norm_inference336; - batch_norm_inference336.epsilon = 1e-05; - batch_norm_inference336.momentum = 0.9; - auto mx336 = mm->add_instruction(batch_norm_inference336, mx335, mx160, mx159, mx158, mx157); - migraphx::op::relu relu337; - auto mx337 = mm->add_instruction(relu337, mx336); - migraphx::op::convolution convolution338; - convolution338.padding = {1, 1}; - convolution338.stride = {1, 1}; - convolution338.dilation = {1, 1}; - convolution338.group = 1; - auto mx338 = mm->add_instruction(convolution338, mx337, mx156); - migraphx::op::batch_norm_inference batch_norm_inference339; - batch_norm_inference339.epsilon = 1e-05; - batch_norm_inference339.momentum = 0.9; - auto mx339 = mm->add_instruction(batch_norm_inference339, mx338, mx155, mx154, mx153, mx152); - migraphx::op::relu relu340; - auto mx340 = mm->add_instruction(relu340, mx339); - migraphx::op::convolution convolution341; - convolution341.padding = {0, 0}; - convolution341.stride = {1, 1}; - convolution341.dilation = {1, 1}; - convolution341.group = 1; - auto mx341 = mm->add_instruction(convolution341, mx340, mx151); - migraphx::op::batch_norm_inference batch_norm_inference342; - batch_norm_inference342.epsilon = 1e-05; - batch_norm_inference342.momentum = 0.9; - auto mx342 = mm->add_instruction(batch_norm_inference342, mx341, mx150, mx149, mx148, mx147); - migraphx::op::add add343; - auto mx343 = mm->add_instruction(add343, mx342, mx334); - migraphx::op::relu relu344; - auto mx344 = mm->add_instruction(relu344, mx343); - migraphx::op::convolution convolution345; - convolution345.padding = {0, 0}; - convolution345.stride = {1, 1}; - convolution345.dilation = {1, 1}; - convolution345.group = 1; - auto mx345 = mm->add_instruction(convolution345, mx344, mx146); - migraphx::op::batch_norm_inference batch_norm_inference346; - batch_norm_inference346.epsilon = 1e-05; - batch_norm_inference346.momentum = 0.9; - auto mx346 = mm->add_instruction(batch_norm_inference346, mx345, mx145, mx144, mx143, mx142); - migraphx::op::relu relu347; - auto mx347 = mm->add_instruction(relu347, mx346); - migraphx::op::convolution convolution348; - convolution348.padding = {1, 1}; - convolution348.stride = {2, 2}; - convolution348.dilation = {1, 1}; - convolution348.group = 1; - auto mx348 = mm->add_instruction(convolution348, mx347, mx141); - migraphx::op::batch_norm_inference batch_norm_inference349; - batch_norm_inference349.epsilon = 1e-05; - batch_norm_inference349.momentum = 0.9; - auto mx349 = mm->add_instruction(batch_norm_inference349, mx348, mx140, mx139, mx138, mx137); - migraphx::op::relu relu350; - auto mx350 = mm->add_instruction(relu350, mx349); - migraphx::op::convolution convolution351; - convolution351.padding = {0, 0}; - convolution351.stride = {1, 1}; - convolution351.dilation = {1, 1}; - convolution351.group = 1; - auto mx351 = mm->add_instruction(convolution351, mx350, mx136); - migraphx::op::batch_norm_inference batch_norm_inference352; - batch_norm_inference352.epsilon = 1e-05; - batch_norm_inference352.momentum = 0.9; - auto mx352 = mm->add_instruction(batch_norm_inference352, mx351, mx135, mx134, mx133, mx132); - migraphx::op::convolution convolution353; - convolution353.padding = {0, 0}; - convolution353.stride = {2, 2}; - convolution353.dilation = {1, 1}; - convolution353.group = 1; - auto mx353 = mm->add_instruction(convolution353, mx344, mx131); - migraphx::op::batch_norm_inference batch_norm_inference354; - batch_norm_inference354.epsilon = 1e-05; - batch_norm_inference354.momentum = 0.9; - auto mx354 = mm->add_instruction(batch_norm_inference354, mx353, mx130, mx129, mx128, mx127); - migraphx::op::add add355; - auto mx355 = mm->add_instruction(add355, mx352, mx354); - migraphx::op::relu relu356; - auto mx356 = mm->add_instruction(relu356, mx355); - migraphx::op::convolution convolution357; - convolution357.padding = {0, 0}; - convolution357.stride = {1, 1}; - convolution357.dilation = {1, 1}; - convolution357.group = 1; - auto mx357 = mm->add_instruction(convolution357, mx356, mx126); - migraphx::op::batch_norm_inference batch_norm_inference358; - batch_norm_inference358.epsilon = 1e-05; - batch_norm_inference358.momentum = 0.9; - auto mx358 = mm->add_instruction(batch_norm_inference358, mx357, mx125, mx124, mx123, mx122); - migraphx::op::relu relu359; - auto mx359 = mm->add_instruction(relu359, mx358); - migraphx::op::convolution convolution360; - convolution360.padding = {1, 1}; - convolution360.stride = {1, 1}; - convolution360.dilation = {1, 1}; - convolution360.group = 1; - auto mx360 = mm->add_instruction(convolution360, mx359, mx121); - migraphx::op::batch_norm_inference batch_norm_inference361; - batch_norm_inference361.epsilon = 1e-05; - batch_norm_inference361.momentum = 0.9; - auto mx361 = mm->add_instruction(batch_norm_inference361, mx360, mx120, mx119, mx118, mx117); - migraphx::op::relu relu362; - auto mx362 = mm->add_instruction(relu362, mx361); - migraphx::op::convolution convolution363; - convolution363.padding = {0, 0}; - convolution363.stride = {1, 1}; - convolution363.dilation = {1, 1}; - convolution363.group = 1; - auto mx363 = mm->add_instruction(convolution363, mx362, mx116); - migraphx::op::batch_norm_inference batch_norm_inference364; - batch_norm_inference364.epsilon = 1e-05; - batch_norm_inference364.momentum = 0.9; - auto mx364 = mm->add_instruction(batch_norm_inference364, mx363, mx115, mx114, mx113, mx112); - migraphx::op::add add365; - auto mx365 = mm->add_instruction(add365, mx364, mx356); - migraphx::op::relu relu366; - auto mx366 = mm->add_instruction(relu366, mx365); - migraphx::op::convolution convolution367; - convolution367.padding = {0, 0}; - convolution367.stride = {1, 1}; - convolution367.dilation = {1, 1}; - convolution367.group = 1; - auto mx367 = mm->add_instruction(convolution367, mx366, mx111); - migraphx::op::batch_norm_inference batch_norm_inference368; - batch_norm_inference368.epsilon = 1e-05; - batch_norm_inference368.momentum = 0.9; - auto mx368 = mm->add_instruction(batch_norm_inference368, mx367, mx110, mx109, mx108, mx107); - migraphx::op::relu relu369; - auto mx369 = mm->add_instruction(relu369, mx368); - migraphx::op::convolution convolution370; - convolution370.padding = {1, 1}; - convolution370.stride = {1, 1}; - convolution370.dilation = {1, 1}; - convolution370.group = 1; - auto mx370 = mm->add_instruction(convolution370, mx369, mx106); - migraphx::op::batch_norm_inference batch_norm_inference371; - batch_norm_inference371.epsilon = 1e-05; - batch_norm_inference371.momentum = 0.9; - auto mx371 = mm->add_instruction(batch_norm_inference371, mx370, mx105, mx104, mx103, mx102); - migraphx::op::relu relu372; - auto mx372 = mm->add_instruction(relu372, mx371); - migraphx::op::convolution convolution373; - convolution373.padding = {0, 0}; - convolution373.stride = {1, 1}; - convolution373.dilation = {1, 1}; - convolution373.group = 1; - auto mx373 = mm->add_instruction(convolution373, mx372, mx101); - migraphx::op::batch_norm_inference batch_norm_inference374; - batch_norm_inference374.epsilon = 1e-05; - batch_norm_inference374.momentum = 0.9; - auto mx374 = mm->add_instruction(batch_norm_inference374, mx373, mx100, mx99, mx98, mx97); - migraphx::op::add add375; - auto mx375 = mm->add_instruction(add375, mx374, mx366); - migraphx::op::relu relu376; - auto mx376 = mm->add_instruction(relu376, mx375); - migraphx::op::convolution convolution377; - convolution377.padding = {0, 0}; - convolution377.stride = {1, 1}; - convolution377.dilation = {1, 1}; - convolution377.group = 1; - auto mx377 = mm->add_instruction(convolution377, mx376, mx96); - migraphx::op::batch_norm_inference batch_norm_inference378; - batch_norm_inference378.epsilon = 1e-05; - batch_norm_inference378.momentum = 0.9; - auto mx378 = mm->add_instruction(batch_norm_inference378, mx377, mx95, mx94, mx93, mx92); - migraphx::op::relu relu379; - auto mx379 = mm->add_instruction(relu379, mx378); - migraphx::op::convolution convolution380; - convolution380.padding = {1, 1}; - convolution380.stride = {1, 1}; - convolution380.dilation = {1, 1}; - convolution380.group = 1; - auto mx380 = mm->add_instruction(convolution380, mx379, mx91); - migraphx::op::batch_norm_inference batch_norm_inference381; - batch_norm_inference381.epsilon = 1e-05; - batch_norm_inference381.momentum = 0.9; - auto mx381 = mm->add_instruction(batch_norm_inference381, mx380, mx90, mx89, mx88, mx87); - migraphx::op::relu relu382; - auto mx382 = mm->add_instruction(relu382, mx381); - migraphx::op::convolution convolution383; - convolution383.padding = {0, 0}; - convolution383.stride = {1, 1}; - convolution383.dilation = {1, 1}; - convolution383.group = 1; - auto mx383 = mm->add_instruction(convolution383, mx382, mx86); - migraphx::op::batch_norm_inference batch_norm_inference384; - batch_norm_inference384.epsilon = 1e-05; - batch_norm_inference384.momentum = 0.9; - auto mx384 = mm->add_instruction(batch_norm_inference384, mx383, mx85, mx84, mx83, mx82); - migraphx::op::add add385; - auto mx385 = mm->add_instruction(add385, mx384, mx376); - migraphx::op::relu relu386; - auto mx386 = mm->add_instruction(relu386, mx385); - migraphx::op::convolution convolution387; - convolution387.padding = {0, 0}; - convolution387.stride = {1, 1}; - convolution387.dilation = {1, 1}; - convolution387.group = 1; - auto mx387 = mm->add_instruction(convolution387, mx386, mx81); - migraphx::op::batch_norm_inference batch_norm_inference388; - batch_norm_inference388.epsilon = 1e-05; - batch_norm_inference388.momentum = 0.9; - auto mx388 = mm->add_instruction(batch_norm_inference388, mx387, mx80, mx79, mx78, mx77); - migraphx::op::relu relu389; - auto mx389 = mm->add_instruction(relu389, mx388); - migraphx::op::convolution convolution390; - convolution390.padding = {1, 1}; - convolution390.stride = {1, 1}; - convolution390.dilation = {1, 1}; - convolution390.group = 1; - auto mx390 = mm->add_instruction(convolution390, mx389, mx76); - migraphx::op::batch_norm_inference batch_norm_inference391; - batch_norm_inference391.epsilon = 1e-05; - batch_norm_inference391.momentum = 0.9; - auto mx391 = mm->add_instruction(batch_norm_inference391, mx390, mx75, mx74, mx73, mx72); - migraphx::op::relu relu392; - auto mx392 = mm->add_instruction(relu392, mx391); - migraphx::op::convolution convolution393; - convolution393.padding = {0, 0}; - convolution393.stride = {1, 1}; - convolution393.dilation = {1, 1}; - convolution393.group = 1; - auto mx393 = mm->add_instruction(convolution393, mx392, mx71); - migraphx::op::batch_norm_inference batch_norm_inference394; - batch_norm_inference394.epsilon = 1e-05; - batch_norm_inference394.momentum = 0.9; - auto mx394 = mm->add_instruction(batch_norm_inference394, mx393, mx70, mx69, mx68, mx67); - migraphx::op::add add395; - auto mx395 = mm->add_instruction(add395, mx394, mx386); - migraphx::op::relu relu396; - auto mx396 = mm->add_instruction(relu396, mx395); - migraphx::op::convolution convolution397; - convolution397.padding = {0, 0}; - convolution397.stride = {1, 1}; - convolution397.dilation = {1, 1}; - convolution397.group = 1; - auto mx397 = mm->add_instruction(convolution397, mx396, mx66); - migraphx::op::batch_norm_inference batch_norm_inference398; - batch_norm_inference398.epsilon = 1e-05; - batch_norm_inference398.momentum = 0.9; - auto mx398 = mm->add_instruction(batch_norm_inference398, mx397, mx65, mx64, mx63, mx62); - migraphx::op::relu relu399; - auto mx399 = mm->add_instruction(relu399, mx398); - migraphx::op::convolution convolution400; - convolution400.padding = {1, 1}; - convolution400.stride = {1, 1}; - convolution400.dilation = {1, 1}; - convolution400.group = 1; - auto mx400 = mm->add_instruction(convolution400, mx399, mx61); - migraphx::op::batch_norm_inference batch_norm_inference401; - batch_norm_inference401.epsilon = 1e-05; - batch_norm_inference401.momentum = 0.9; - auto mx401 = mm->add_instruction(batch_norm_inference401, mx400, mx60, mx59, mx58, mx57); - migraphx::op::relu relu402; - auto mx402 = mm->add_instruction(relu402, mx401); - migraphx::op::convolution convolution403; - convolution403.padding = {0, 0}; - convolution403.stride = {1, 1}; - convolution403.dilation = {1, 1}; - convolution403.group = 1; - auto mx403 = mm->add_instruction(convolution403, mx402, mx56); - migraphx::op::batch_norm_inference batch_norm_inference404; - batch_norm_inference404.epsilon = 1e-05; - batch_norm_inference404.momentum = 0.9; - auto mx404 = mm->add_instruction(batch_norm_inference404, mx403, mx55, mx54, mx53, mx52); - migraphx::op::add add405; - auto mx405 = mm->add_instruction(add405, mx404, mx396); - migraphx::op::relu relu406; - auto mx406 = mm->add_instruction(relu406, mx405); - migraphx::op::convolution convolution407; - convolution407.padding = {0, 0}; - convolution407.stride = {1, 1}; - convolution407.dilation = {1, 1}; - convolution407.group = 1; - auto mx407 = mm->add_instruction(convolution407, mx406, mx51); - migraphx::op::batch_norm_inference batch_norm_inference408; - batch_norm_inference408.epsilon = 1e-05; - batch_norm_inference408.momentum = 0.9; - auto mx408 = mm->add_instruction(batch_norm_inference408, mx407, mx50, mx49, mx48, mx47); - migraphx::op::relu relu409; - auto mx409 = mm->add_instruction(relu409, mx408); - migraphx::op::convolution convolution410; - convolution410.padding = {1, 1}; - convolution410.stride = {2, 2}; - convolution410.dilation = {1, 1}; - convolution410.group = 1; - auto mx410 = mm->add_instruction(convolution410, mx409, mx46); - migraphx::op::batch_norm_inference batch_norm_inference411; - batch_norm_inference411.epsilon = 1e-05; - batch_norm_inference411.momentum = 0.9; - auto mx411 = mm->add_instruction(batch_norm_inference411, mx410, mx45, mx44, mx43, mx42); - migraphx::op::relu relu412; - auto mx412 = mm->add_instruction(relu412, mx411); - migraphx::op::convolution convolution413; - convolution413.padding = {0, 0}; - convolution413.stride = {1, 1}; - convolution413.dilation = {1, 1}; - convolution413.group = 1; - auto mx413 = mm->add_instruction(convolution413, mx412, mx41); - migraphx::op::batch_norm_inference batch_norm_inference414; - batch_norm_inference414.epsilon = 1e-05; - batch_norm_inference414.momentum = 0.9; - auto mx414 = mm->add_instruction(batch_norm_inference414, mx413, mx40, mx39, mx38, mx37); - migraphx::op::convolution convolution415; - convolution415.padding = {0, 0}; - convolution415.stride = {2, 2}; - convolution415.dilation = {1, 1}; - convolution415.group = 1; - auto mx415 = mm->add_instruction(convolution415, mx406, mx36); - migraphx::op::batch_norm_inference batch_norm_inference416; - batch_norm_inference416.epsilon = 1e-05; - batch_norm_inference416.momentum = 0.9; - auto mx416 = mm->add_instruction(batch_norm_inference416, mx415, mx35, mx34, mx33, mx32); - migraphx::op::add add417; - auto mx417 = mm->add_instruction(add417, mx414, mx416); - migraphx::op::relu relu418; - auto mx418 = mm->add_instruction(relu418, mx417); - migraphx::op::convolution convolution419; - convolution419.padding = {0, 0}; - convolution419.stride = {1, 1}; - convolution419.dilation = {1, 1}; - convolution419.group = 1; - auto mx419 = mm->add_instruction(convolution419, mx418, mx31); - migraphx::op::batch_norm_inference batch_norm_inference420; - batch_norm_inference420.epsilon = 1e-05; - batch_norm_inference420.momentum = 0.9; - auto mx420 = mm->add_instruction(batch_norm_inference420, mx419, mx30, mx29, mx28, mx27); - migraphx::op::relu relu421; - auto mx421 = mm->add_instruction(relu421, mx420); - migraphx::op::convolution convolution422; - convolution422.padding = {1, 1}; - convolution422.stride = {1, 1}; - convolution422.dilation = {1, 1}; - convolution422.group = 1; - auto mx422 = mm->add_instruction(convolution422, mx421, mx26); - migraphx::op::batch_norm_inference batch_norm_inference423; - batch_norm_inference423.epsilon = 1e-05; - batch_norm_inference423.momentum = 0.9; - auto mx423 = mm->add_instruction(batch_norm_inference423, mx422, mx25, mx24, mx23, mx22); - migraphx::op::relu relu424; - auto mx424 = mm->add_instruction(relu424, mx423); - migraphx::op::convolution convolution425; - convolution425.padding = {0, 0}; - convolution425.stride = {1, 1}; - convolution425.dilation = {1, 1}; - convolution425.group = 1; - auto mx425 = mm->add_instruction(convolution425, mx424, mx21); - migraphx::op::batch_norm_inference batch_norm_inference426; - batch_norm_inference426.epsilon = 1e-05; - batch_norm_inference426.momentum = 0.9; - auto mx426 = mm->add_instruction(batch_norm_inference426, mx425, mx20, mx19, mx18, mx17); - migraphx::op::add add427; - auto mx427 = mm->add_instruction(add427, mx426, mx418); - migraphx::op::relu relu428; - auto mx428 = mm->add_instruction(relu428, mx427); - migraphx::op::convolution convolution429; - convolution429.padding = {0, 0}; - convolution429.stride = {1, 1}; - convolution429.dilation = {1, 1}; - convolution429.group = 1; - auto mx429 = mm->add_instruction(convolution429, mx428, mx16); - migraphx::op::batch_norm_inference batch_norm_inference430; - batch_norm_inference430.epsilon = 1e-05; - batch_norm_inference430.momentum = 0.9; - auto mx430 = mm->add_instruction(batch_norm_inference430, mx429, mx15, mx14, mx13, mx12); - migraphx::op::relu relu431; - auto mx431 = mm->add_instruction(relu431, mx430); - migraphx::op::convolution convolution432; - convolution432.padding = {1, 1}; - convolution432.stride = {1, 1}; - convolution432.dilation = {1, 1}; - convolution432.group = 1; - auto mx432 = mm->add_instruction(convolution432, mx431, mx11); - migraphx::op::batch_norm_inference batch_norm_inference433; - batch_norm_inference433.epsilon = 1e-05; - batch_norm_inference433.momentum = 0.9; - auto mx433 = mm->add_instruction(batch_norm_inference433, mx432, mx10, mx9, mx8, mx7); - migraphx::op::relu relu434; - auto mx434 = mm->add_instruction(relu434, mx433); - migraphx::op::convolution convolution435; - convolution435.padding = {0, 0}; - convolution435.stride = {1, 1}; - convolution435.dilation = {1, 1}; - convolution435.group = 1; - auto mx435 = mm->add_instruction(convolution435, mx434, mx6); - migraphx::op::batch_norm_inference batch_norm_inference436; - batch_norm_inference436.epsilon = 1e-05; - batch_norm_inference436.momentum = 0.9; - auto mx436 = mm->add_instruction(batch_norm_inference436, mx435, mx5, mx4, mx3, mx2); - migraphx::op::add add437; - auto mx437 = mm->add_instruction(add437, mx436, mx428); - migraphx::op::relu relu438; - auto mx438 = mm->add_instruction(relu438, mx437); - migraphx::op::pooling pooling439; - pooling439.mode = migraphx::op::pooling_mode::average; - pooling439.padding = {0, 0}; - pooling439.stride = {1, 1}; - pooling439.lengths = {7, 7}; - auto mx439 = mm->add_instruction(pooling439, mx438); - migraphx::op::flatten flatten440; - flatten440.axis = 1; - auto mx440 = mm->add_instruction(flatten440, mx439); - migraphx::op::transpose transpose441; - transpose441.dims = {1, 0}; - auto mx441 = mm->add_instruction(transpose441, mx1); - migraphx::op::multibroadcast multibroadcast442; - multibroadcast442.output_lens = {batch, 1000}; - auto mx442 = mm->add_instruction(multibroadcast442, mx0); - float dot443_alpha = 1; - float dot443_beta = 1; - migraphx::add_apply_alpha_beta( - *mm, {mx440, mx441, mx442}, migraphx::make_op("dot"), dot443_alpha, dot443_beta); + auto x_main_module_95 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 94)); + auto x_main_module_96 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 95)); + auto x_main_module_97 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 64, 3, 3}}, 96)); + auto x_main_module_98 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 97)); + auto x_main_module_99 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 256, 1, 1}}, 98)); + auto x_main_module_100 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 99)); + auto x_main_module_101 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 100)); + auto x_main_module_102 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {256}}, 101)); + auto x_main_module_103 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {256, 64, 1, 1}}, 102)); + auto x_main_module_104 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 103)); + auto x_main_module_105 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 64, 3, 3}}, 104)); + auto x_main_module_106 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 105)); + auto x_main_module_107 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 64, 1, 1}}, 106)); + auto x_main_module_108 = mmain->add_literal( + migraphx::generate_literal(migraphx::shape{migraphx::shape::float_type, {64}}, 107)); + auto x_main_module_109 = mmain->add_literal(migraphx::generate_literal( + migraphx::shape{migraphx::shape::float_type, {64, 3, 7, 7}}, 108)); + auto x_main_module_110 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[3,3,3,3],padding_mode:0,stride:[2,2]}")), + x_input_1, + x_main_module_109); + auto x_main_module_111 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,112,112]}")), + x_main_module_108); + auto x_main_module_112 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_110, x_main_module_111); + auto x_main_module_113 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_112); + auto x_main_module_114 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[3,3],lp_order:2,mode:1,padding:[1,1,1,1],stride:[2,2]}")), + x_main_module_113); + auto x_main_module_115 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_114, + x_main_module_107); + auto x_main_module_116 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,56,56]}")), + x_main_module_106); + auto x_main_module_117 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_115, x_main_module_116); + auto x_main_module_118 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_117); + auto x_main_module_119 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_118, + x_main_module_105); + auto x_main_module_120 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,56,56]}")), + x_main_module_104); + auto x_main_module_121 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_119, x_main_module_120); + auto x_main_module_122 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_121); + auto x_main_module_123 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_122, + x_main_module_103); + auto x_main_module_124 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,56,56]}")), + x_main_module_102); + auto x_main_module_125 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_123, x_main_module_124); + auto x_main_module_126 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_114, + x_main_module_101); + auto x_main_module_127 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,56,56]}")), + x_main_module_100); + auto x_main_module_128 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_126, x_main_module_127); + auto x_main_module_129 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_125, x_main_module_128); + auto x_main_module_130 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_129); + auto x_main_module_131 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_130, + x_main_module_99); + auto x_main_module_132 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,56,56]}")), + x_main_module_98); + auto x_main_module_133 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_131, x_main_module_132); + auto x_main_module_134 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_133); + auto x_main_module_135 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_134, + x_main_module_97); + auto x_main_module_136 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,56,56]}")), + x_main_module_96); + auto x_main_module_137 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_135, x_main_module_136); + auto x_main_module_138 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_137); + auto x_main_module_139 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_138, + x_main_module_95); + auto x_main_module_140 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,56,56]}")), + x_main_module_94); + auto x_main_module_141 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_139, x_main_module_140); + auto x_main_module_142 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_141, x_main_module_130); + auto x_main_module_143 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_142); + auto x_main_module_144 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_143, + x_main_module_93); + auto x_main_module_145 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,56,56]}")), + x_main_module_92); + auto x_main_module_146 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_144, x_main_module_145); + auto x_main_module_147 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_146); + auto x_main_module_148 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_147, + x_main_module_91); + auto x_main_module_149 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,64,56,56]}")), + x_main_module_90); + auto x_main_module_150 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_148, x_main_module_149); + auto x_main_module_151 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_150); + auto x_main_module_152 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_151, + x_main_module_89); + auto x_main_module_153 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,56,56]}")), + x_main_module_88); + auto x_main_module_154 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_152, x_main_module_153); + auto x_main_module_155 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_154, x_main_module_143); + auto x_main_module_156 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_155); + auto x_main_module_157 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_156, + x_main_module_87); + auto x_main_module_158 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,56,56]}")), + x_main_module_86); + auto x_main_module_159 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_157, x_main_module_158); + auto x_main_module_160 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_159); + auto x_main_module_161 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[2,2]}")), + x_main_module_160, + x_main_module_85); + auto x_main_module_162 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,28,28]}")), + x_main_module_84); + auto x_main_module_163 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_161, x_main_module_162); + auto x_main_module_164 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_163); + auto x_main_module_165 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_164, + x_main_module_83); + auto x_main_module_166 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,512,28,28]}")), + x_main_module_82); + auto x_main_module_167 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_165, x_main_module_166); + auto x_main_module_168 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_main_module_156, + x_main_module_81); + auto x_main_module_169 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,512,28,28]}")), + x_main_module_80); + auto x_main_module_170 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_168, x_main_module_169); + auto x_main_module_171 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_167, x_main_module_170); + auto x_main_module_172 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_171); + auto x_main_module_173 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_172, + x_main_module_79); + auto x_main_module_174 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,28,28]}")), + x_main_module_78); + auto x_main_module_175 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_173, x_main_module_174); + auto x_main_module_176 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_175); + auto x_main_module_177 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_176, + x_main_module_77); + auto x_main_module_178 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,28,28]}")), + x_main_module_76); + auto x_main_module_179 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_177, x_main_module_178); + auto x_main_module_180 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_179); + auto x_main_module_181 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_180, + x_main_module_75); + auto x_main_module_182 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,512,28,28]}")), + x_main_module_74); + auto x_main_module_183 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_181, x_main_module_182); + auto x_main_module_184 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_183, x_main_module_172); + auto x_main_module_185 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_184); + auto x_main_module_186 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_185, + x_main_module_73); + auto x_main_module_187 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,28,28]}")), + x_main_module_72); + auto x_main_module_188 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_186, x_main_module_187); + auto x_main_module_189 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_188); + auto x_main_module_190 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_189, + x_main_module_71); + auto x_main_module_191 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,28,28]}")), + x_main_module_70); + auto x_main_module_192 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_190, x_main_module_191); + auto x_main_module_193 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_192); + auto x_main_module_194 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_193, + x_main_module_69); + auto x_main_module_195 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,512,28,28]}")), + x_main_module_68); + auto x_main_module_196 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_194, x_main_module_195); + auto x_main_module_197 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_196, x_main_module_185); + auto x_main_module_198 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_197); + auto x_main_module_199 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_198, + x_main_module_67); + auto x_main_module_200 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,28,28]}")), + x_main_module_66); + auto x_main_module_201 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_199, x_main_module_200); + auto x_main_module_202 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_201); + auto x_main_module_203 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_202, + x_main_module_65); + auto x_main_module_204 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,128,28,28]}")), + x_main_module_64); + auto x_main_module_205 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_203, x_main_module_204); + auto x_main_module_206 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_205); + auto x_main_module_207 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_206, + x_main_module_63); + auto x_main_module_208 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,512,28,28]}")), + x_main_module_62); + auto x_main_module_209 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_207, x_main_module_208); + auto x_main_module_210 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_209, x_main_module_198); + auto x_main_module_211 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_210); + auto x_main_module_212 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_211, + x_main_module_61); + auto x_main_module_213 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,28,28]}")), + x_main_module_60); + auto x_main_module_214 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_212, x_main_module_213); + auto x_main_module_215 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_214); + auto x_main_module_216 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[2,2]}")), + x_main_module_215, + x_main_module_59); + auto x_main_module_217 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_58); + auto x_main_module_218 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_216, x_main_module_217); + auto x_main_module_219 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_218); + auto x_main_module_220 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_219, + x_main_module_57); + auto x_main_module_221 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,1024,14,14]}")), + x_main_module_56); + auto x_main_module_222 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_220, x_main_module_221); + auto x_main_module_223 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_main_module_211, + x_main_module_55); + auto x_main_module_224 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,1024,14,14]}")), + x_main_module_54); + auto x_main_module_225 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_223, x_main_module_224); + auto x_main_module_226 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_222, x_main_module_225); + auto x_main_module_227 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_226); + auto x_main_module_228 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_227, + x_main_module_53); + auto x_main_module_229 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_52); + auto x_main_module_230 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_228, x_main_module_229); + auto x_main_module_231 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_230); + auto x_main_module_232 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_231, + x_main_module_51); + auto x_main_module_233 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_50); + auto x_main_module_234 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_232, x_main_module_233); + auto x_main_module_235 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_234); + auto x_main_module_236 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_235, + x_main_module_49); + auto x_main_module_237 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,1024,14,14]}")), + x_main_module_48); + auto x_main_module_238 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_236, x_main_module_237); + auto x_main_module_239 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_238, x_main_module_227); + auto x_main_module_240 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_239); + auto x_main_module_241 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_240, + x_main_module_47); + auto x_main_module_242 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_46); + auto x_main_module_243 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_241, x_main_module_242); + auto x_main_module_244 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_243); + auto x_main_module_245 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_244, + x_main_module_45); + auto x_main_module_246 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_44); + auto x_main_module_247 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_245, x_main_module_246); + auto x_main_module_248 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_247); + auto x_main_module_249 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_248, + x_main_module_43); + auto x_main_module_250 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,1024,14,14]}")), + x_main_module_42); + auto x_main_module_251 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_249, x_main_module_250); + auto x_main_module_252 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_251, x_main_module_240); + auto x_main_module_253 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_252); + auto x_main_module_254 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_253, + x_main_module_41); + auto x_main_module_255 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_40); + auto x_main_module_256 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_254, x_main_module_255); + auto x_main_module_257 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_256); + auto x_main_module_258 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_257, + x_main_module_39); + auto x_main_module_259 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_38); + auto x_main_module_260 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_258, x_main_module_259); + auto x_main_module_261 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_260); + auto x_main_module_262 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_261, + x_main_module_37); + auto x_main_module_263 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,1024,14,14]}")), + x_main_module_36); + auto x_main_module_264 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_262, x_main_module_263); + auto x_main_module_265 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_264, x_main_module_253); + auto x_main_module_266 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_265); + auto x_main_module_267 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_266, + x_main_module_35); + auto x_main_module_268 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_34); + auto x_main_module_269 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_267, x_main_module_268); + auto x_main_module_270 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_269); + auto x_main_module_271 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_270, + x_main_module_33); + auto x_main_module_272 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_32); + auto x_main_module_273 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_271, x_main_module_272); + auto x_main_module_274 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_273); + auto x_main_module_275 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_274, + x_main_module_31); + auto x_main_module_276 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,1024,14,14]}")), + x_main_module_30); + auto x_main_module_277 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_275, x_main_module_276); + auto x_main_module_278 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_277, x_main_module_266); + auto x_main_module_279 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_278); + auto x_main_module_280 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_279, + x_main_module_29); + auto x_main_module_281 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_28); + auto x_main_module_282 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_280, x_main_module_281); + auto x_main_module_283 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_282); + auto x_main_module_284 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_283, + x_main_module_27); + auto x_main_module_285 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,256,14,14]}")), + x_main_module_26); + auto x_main_module_286 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_284, x_main_module_285); + auto x_main_module_287 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_286); + auto x_main_module_288 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_287, + x_main_module_25); + auto x_main_module_289 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,1024,14,14]}")), + x_main_module_24); + auto x_main_module_290 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_288, x_main_module_289); + auto x_main_module_291 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_290, x_main_module_279); + auto x_main_module_292 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_291); + auto x_main_module_293 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_292, + x_main_module_23); + auto x_main_module_294 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,512,14,14]}")), + x_main_module_22); + auto x_main_module_295 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_293, x_main_module_294); + auto x_main_module_296 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_295); + auto x_main_module_297 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[2,2]}")), + x_main_module_296, + x_main_module_21); + auto x_main_module_298 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,512,7,7]}")), + x_main_module_20); + auto x_main_module_299 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_297, x_main_module_298); + auto x_main_module_300 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_299); + auto x_main_module_301 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_300, + x_main_module_19); + auto x_main_module_302 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,2048,7,7]}")), + x_main_module_18); + auto x_main_module_303 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_301, x_main_module_302); + auto x_main_module_304 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[2,2]}")), + x_main_module_292, + x_main_module_17); + auto x_main_module_305 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,2048,7,7]}")), + x_main_module_16); + auto x_main_module_306 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_304, x_main_module_305); + auto x_main_module_307 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_303, x_main_module_306); + auto x_main_module_308 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_307); + auto x_main_module_309 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_308, + x_main_module_15); + auto x_main_module_310 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,512,7,7]}")), + x_main_module_14); + auto x_main_module_311 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_309, x_main_module_310); + auto x_main_module_312 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_311); + auto x_main_module_313 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_312, + x_main_module_13); + auto x_main_module_314 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,512,7,7]}")), + x_main_module_12); + auto x_main_module_315 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_313, x_main_module_314); + auto x_main_module_316 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_315); + auto x_main_module_317 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_316, + x_main_module_11); + auto x_main_module_318 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,2048,7,7]}")), + x_main_module_10); + auto x_main_module_319 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_317, x_main_module_318); + auto x_main_module_320 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_319, x_main_module_308); + auto x_main_module_321 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_320); + auto x_main_module_322 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_321, + x_main_module_9); + auto x_main_module_323 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,512,7,7]}")), + x_main_module_8); + auto x_main_module_324 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_322, x_main_module_323); + auto x_main_module_325 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_324); + auto x_main_module_326 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[1,1,1,1],padding_mode:0,stride:[1,1]}")), + x_main_module_325, + x_main_module_7); + auto x_main_module_327 = mmain->add_instruction( + migraphx::make_op("broadcast", migraphx::from_json_string("{axis:1,out_lens:[1,512,7,7]}")), + x_main_module_6); + auto x_main_module_328 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_326, x_main_module_327); + auto x_main_module_329 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_328); + auto x_main_module_330 = mmain->add_instruction( + migraphx::make_op( + "convolution", + migraphx::from_json_string( + "{dilation:[1,1],group:1,padding:[0,0,0,0],padding_mode:0,stride:[1,1]}")), + x_main_module_329, + x_main_module_5); + auto x_main_module_331 = mmain->add_instruction( + migraphx::make_op("broadcast", + migraphx::from_json_string("{axis:1,out_lens:[1,2048,7,7]}")), + x_main_module_4); + auto x_main_module_332 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_330, x_main_module_331); + auto x_main_module_333 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_332, x_main_module_321); + auto x_main_module_334 = mmain->add_instruction(migraphx::make_op("relu"), x_main_module_333); + auto x_main_module_335 = mmain->add_instruction( + migraphx::make_op( + "pooling", + migraphx::from_json_string( + "{ceil_mode:0,lengths:[7,7],lp_order:2,mode:0,padding:[0,0,0,0],stride:[1,1]}")), + x_main_module_334); + auto x_main_module_336 = mmain->add_instruction( + migraphx::make_op("reshape", migraphx::from_json_string("{dims:[1,-1]}")), + x_main_module_335); + auto x_main_module_337 = mmain->add_instruction( + migraphx::make_op("transpose", migraphx::from_json_string("{permutation:[1,0]}")), + x_main_module_2); + auto x_main_module_338 = + mmain->add_instruction(migraphx::make_op("dot"), x_main_module_336, x_main_module_337); + auto x_main_module_339 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,1000]}")), + x_main_module_3); + auto x_main_module_340 = mmain->add_instruction( + migraphx::make_op("multibroadcast", migraphx::from_json_string("{out_lens:[1,1000]}")), + x_main_module_0); + auto x_main_module_341 = + mmain->add_instruction(migraphx::make_op("mul"), x_main_module_339, x_main_module_340); + auto x_main_module_342 = + mmain->add_instruction(migraphx::make_op("add"), x_main_module_338, x_main_module_341); + mmain->add_return({x_main_module_342}); + return p; } - } // namespace MIGRAPHX_INLINE_NS } // namespace driver } // namespace migraphx diff --git a/src/include/migraphx/module.hpp b/src/include/migraphx/module.hpp index 2fb1e9df3..6759733df 100644 --- a/src/include/migraphx/module.hpp +++ b/src/include/migraphx/module.hpp @@ -179,7 +179,9 @@ struct module void print_cpp(std::ostream& os) const; std::unordered_map - print_cpp(std::ostream& os, std::unordered_map names) const; + print_cpp(std::ostream& os, + const std::string& mname, + std::unordered_map names) const; void annotate(std::ostream& os, std::function a) const; diff --git a/src/include/migraphx/stringutils.hpp b/src/include/migraphx/stringutils.hpp index cefb45437..45dd9917e 100644 --- a/src/include/migraphx/stringutils.hpp +++ b/src/include/migraphx/stringutils.hpp @@ -44,8 +44,8 @@ auto with_char(F f) return [=](unsigned char c) -> bool { return f(c); }; } -inline std::string -replace_string(std::string subject, const std::string& search, const std::string& replace) +inline void +replace_string_inplace(std::string& subject, const std::string& search, const std::string& replace) { size_t pos = 0; while((pos = subject.find(search, pos)) != std::string::npos) @@ -53,6 +53,12 @@ replace_string(std::string subject, const std::string& search, const std::string subject.replace(pos, search.length(), replace); pos += replace.length(); } +} + +inline std::string +replace_string(std::string subject, const std::string& search, const std::string& replace) +{ + replace_string_inplace(subject, search, replace); return subject; } diff --git a/src/module.cpp b/src/module.cpp index 79614e5ba..16b3f3599 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -706,44 +707,33 @@ void module::print_graph(std::ostream& os, bool brief) const os << "}" << std::endl; } -static std::string cpp_var_name(const std::string& name) +static std::string to_c_id(const std::string& name, char rep = '_') { - return "m" + replace_string(name, "@", "x"); + std::string id = transform_string(name, [&](auto c) { + if(with_char(::isalnum)(c) or c == '_') + return c; + return rep; + }); + while(contains(id, "__")) + replace_string_inplace(id, "__", "_"); + return id; } -static std::string cpp_op_var(const std::string& name, instruction_ref ins) +static std::string cpp_var_name(const std::string& name) { - return replace_string(name, "@", ins->name()); + return to_c_id("x_" + replace_string(name, ":", "_module_")); } -static void print_op_attributes(std::ostream& os, const std::string& name, const operation& op) +static void print_make_op(std::ostream& os, const operation& op) { - std::string x = to_string(op); - if(contains(x, "[")) + os << "migraphx::make_op(" << enclose_name(op.name()); + auto v = op.to_value(); + if(not v.empty()) { - auto start = x.find('['); - auto end = x.find(']'); - std::string attribute_text = x.substr(start + 1, end - start - 1); - std::vector attributes; - for(auto&& attribute : split_string(attribute_text, ',')) - { - if(contains(attribute, '=')) - attributes.push_back(attribute); - else - attributes.back() += "," + attribute; - } - for(auto&& attribute : attributes) - { - auto p = split_string(attribute, '='); - auto key = p.front(); - auto value = p.back(); - if(contains({"bn_mode", "padding_mode"}, key)) - continue; - if(key == "mode") - value = enclose_name(trim(value)); - os << name << "." << key << " = " << value << ";" << std::endl; - } + os << ", " + << "migraphx::from_json_string(" << enclose_name(to_json_string(v)) << ")"; } + os << ")"; } static void print_cpp_shape(std::ostream& os, const migraphx::shape& s) @@ -756,22 +746,25 @@ static void print_cpp_shape(std::ostream& os, const migraphx::shape& s) } std::unordered_map -module::print_cpp(std::ostream& os, std::unordered_map names) const +module::print_cpp(std::ostream& os, + const std::string& mname, + std::unordered_map names) const { - os << "migraphx::module p;" << std::endl; - unsigned long seed = 0; + // cppcheck-suppress variableScope + unsigned long seed = names.size(); + auto last = std::prev(this->end()); names = this->print( [&](auto ins, auto ins_names) { - auto op = cpp_op_var(ins_names.at(ins), ins); - if(ins->name().front() != '@') - { - os << "migraphx::op::" << ins->name() << " " << op << ";" << std::endl; - print_op_attributes(os, op, ins->get_operator()); - } - os << "auto " << cpp_var_name(ins_names.at(ins)) << " = "; + std::vector input_vars; + std::transform(ins->inputs().begin(), + ins->inputs().end(), + std::back_inserter(input_vars), + [&](auto input) { return cpp_var_name(ins_names.at(input)); }); + if(ins != last) + os << "auto " << cpp_var_name(ins_names.at(ins)) << " = "; if(ins->name() == "@literal") { - os << "p.add_literal("; + os << mname << "->add_literal("; bool use_abs = false; ins->get_literal().visit([&](auto v) { use_abs = std::none_of(v.begin(), v.end(), [](auto x) { return x < 0; }); @@ -789,17 +782,22 @@ module::print_cpp(std::ostream& os, std::unordered_mapname() == "@param") { std::string name = any_cast(ins->get_operator()).parameter; - os << "p.add_parameter(" << enclose_name(name) << ","; + os << mname << "->add_parameter(" << enclose_name(name) << ","; print_cpp_shape(os, ins->get_shape()); os << ");" << std::endl; } + else if(ins->name() == "@return") + { + os << mname << "->add_return({"; + os << join_strings(input_vars, ", "); + os << "});" << std::endl; + } else { - os << "p.add_instruction(" << op; - for(auto input : ins->inputs()) - { - os << ", " << cpp_var_name(ins_names.at(input)); - } + assert(ins->name().front() != '@'); + os << mname << "->add_instruction("; + print_make_op(os, ins->get_operator()); + os << ", " << join_strings(input_vars, ", "); os << ");" << std::endl; } }, @@ -808,7 +806,7 @@ module::print_cpp(std::ostream& os, std::unordered_mapprint_cpp(os, {}); } +void module::print_cpp(std::ostream& os) const { this->print_cpp(os, this->name(), {}); } void module::annotate(std::ostream& os, std::function a) const { diff --git a/src/program.cpp b/src/program.cpp index 091e4a1ab..f16b9c1b1 100644 --- a/src/program.cpp +++ b/src/program.cpp @@ -790,10 +790,17 @@ void program::print_cpp(std::ostream& os) const { auto vec_modules = this->get_modules(); std::unordered_map names; + os << "migraphx::program p;\n"; for(auto& mod : vec_modules) { - os << "module: \"" << mod->name() << "\"" << std::endl; - names = mod->print_cpp(os, names); + std::string var_name = "m" + mod->name(); + os << "migraphx::module_ref " << var_name << " = "; + if(mod->name() == "main") + os << "p.get_main_module();"; + else + os << "p.create_module(\"" << mod->name() << "\");"; + os << std::endl; + names = mod->print_cpp(os, var_name, names); os << std::endl; } } -- GitLab From ad73abbccb10b0501719a97dd810a23130ec2f74 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Wed, 29 Jun 2022 10:07:19 -0500 Subject: [PATCH 20/32] NMS refactor, enable nonstandard shape (#1257) Allows PyTorch converted version of SSD-resnet34 to work --- src/include/migraphx/iota_iterator.hpp | 3 +- src/include/migraphx/op/nonmaxsuppression.hpp | 214 ++++++++++-------- test/ref_ops_test.cpp | 74 ++++++ 3 files changed, 191 insertions(+), 100 deletions(-) diff --git a/src/include/migraphx/iota_iterator.hpp b/src/include/migraphx/iota_iterator.hpp index 879b49828..fe07d0e46 100644 --- a/src/include/migraphx/iota_iterator.hpp +++ b/src/include/migraphx/iota_iterator.hpp @@ -81,8 +81,9 @@ struct basic_iota_iterator index--; return it; } - // TODO: operator-> reference operator*() const { return f(index); } + pointer operator->() const { return &f(index); } + reference operator[](int n) const { return f(index + n); } }; template diff --git a/src/include/migraphx/op/nonmaxsuppression.hpp b/src/include/migraphx/op/nonmaxsuppression.hpp index 11bced41a..e01d1235e 100644 --- a/src/include/migraphx/op/nonmaxsuppression.hpp +++ b/src/include/migraphx/op/nonmaxsuppression.hpp @@ -56,14 +56,21 @@ struct nonmaxsuppression shape compute_shape(std::vector inputs) const { // requires at least 2 inputs - check_shapes{inputs, *this}.standard(); check_shapes{{inputs.at(0), inputs.at(1)}, *this}.only_dims(3); auto lens = inputs.front().lens(); // check input shape if(lens[1] != inputs.at(1).lens()[2]) { - MIGRAPHX_THROW("NonMaxSuppression: dimension mismatch between first and second input!"); + MIGRAPHX_THROW( + "NonMaxSuppression: spatial dimension mismatch between boxes and scores input"); + } + + // check batch sizes + if(lens[0] != inputs.at(1).lens()[0]) + { + MIGRAPHX_THROW( + "NonMaxSuppression: number of batches mismatch between boxes and scores input"); } std::vector out_lens(2); @@ -74,8 +81,8 @@ struct nonmaxsuppression struct box { - std::array x; - std::array y; + std::array x; + std::array y; void sort() { @@ -83,9 +90,9 @@ struct nonmaxsuppression std::sort(y.begin(), y.end()); } - std::array& operator[](std::size_t i) { return i == 0 ? x : y; } + std::array& operator[](std::size_t i) { return i == 0 ? x : y; } - float area() const + double area() const { assert(std::is_sorted(x.begin(), x.end())); assert(std::is_sorted(y.begin(), y.end())); @@ -94,29 +101,29 @@ struct nonmaxsuppression }; template - box batch_box(const T* boxes, std::size_t bidx) const + box batch_box(T boxes, std::size_t box_idx) const { box result{}; - const T* start = boxes + 4 * bidx; + auto start = boxes + 4 * box_idx; if(center_point_box) { - float half_width = start[2] / 2.0f; - float half_height = start[3] / 2.0f; - float x_center = start[0]; - float y_center = start[1]; - result.x = {x_center - half_width, x_center + half_width}; - result.y = {y_center - half_height, y_center + half_height}; + double half_width = start[2] / 2.0; + double half_height = start[3] / 2.0; + double x_center = start[0]; + double y_center = start[1]; + result.x = {x_center - half_width, x_center + half_width}; + result.y = {y_center - half_height, y_center + half_height}; } else { - result.x = {start[1], start[3]}; - result.y = {start[0], start[2]}; + result.x = {static_cast(start[1]), static_cast(start[3])}; + result.y = {static_cast(start[0]), static_cast(start[2])}; } return result; } - inline bool suppress_by_iou(box b1, box b2, float iou_threshold) const + inline bool suppress_by_iou(box b1, box b2, double iou_threshold) const { b1.sort(); b2.sort(); @@ -128,7 +135,7 @@ struct nonmaxsuppression intersection[i][1] = std::min(b1[i][1], b2[i][1]); } - std::vector> bbox = {intersection.x, intersection.y}; + std::vector> bbox = {intersection.x, intersection.y}; if(std::any_of(bbox.begin(), bbox.end(), [](auto bx) { return not std::is_sorted(bx.begin(), bx.end()); })) @@ -136,115 +143,124 @@ struct nonmaxsuppression return false; } - const float area1 = b1.area(); - const float area2 = b2.area(); - const float intersection_area = intersection.area(); - const float union_area = area1 + area2 - intersection_area; + const double area1 = b1.area(); + const double area2 = b2.area(); + const double intersection_area = intersection.area(); + const double union_area = area1 + area2 - intersection_area; if(area1 <= .0f or area2 <= .0f or union_area <= .0f) { return false; } - const float intersection_over_union = intersection_area / union_area; + const double intersection_over_union = intersection_area / union_area; return intersection_over_union > iou_threshold; } - argument compute(const shape& output_shape, std::vector args) const + // filter boxes below score_threshold + template + std::priority_queue> + filter_boxes_by_score(T scores_start, std::size_t num_boxes, double score_threshold) const { - argument result{output_shape}; - - result.visit([&](auto out) { std::fill(out.begin(), out.end(), 0); }); - - std::size_t max_output_boxes_per_class = 0; - float iou_threshold = 0.0f; - float score_threshold = 0.0f; - - if(args.size() > 2) - { - max_output_boxes_per_class = args.at(2).at(); - } - // max_output_boxes_per_class is 0, no output - if(max_output_boxes_per_class == 0) - { - return result; - } - - if(args.size() > 3) - { - iou_threshold = args.at(3).at(); - } - - if(args.size() > 4) - { - score_threshold = args.at(4).at(); - } - - const auto& lens = args.at(1).get_shape().lens(); - auto batch_num = lens[0]; - auto class_num = lens[1]; - auto box_num = args.at(0).get_shape().lens()[1]; + std::priority_queue> boxes_heap; + auto insert_to_boxes_heap = + make_function_output_iterator([&](const auto& x) { boxes_heap.push(x); }); + int64_t box_idx = 0; + transform_if( + scores_start, + scores_start + num_boxes, + insert_to_boxes_heap, + [&](auto sc) { + box_idx++; + return sc >= score_threshold; + }, + [&](auto sc) { return std::make_pair(sc, box_idx - 1); }); + return boxes_heap; + } - std::vector> selected_boxes_inside_class; + template + void compute_nms(Output output, + Boxes boxes, + Scores scores, + const shape& output_shape, + std::size_t max_output_boxes_per_class, + double iou_threshold, + double score_threshold) const + { + std::fill(output.begin(), output.end(), 0); + const auto& lens = scores.get_shape().lens(); + const auto num_batches = lens[0]; + const auto num_classes = lens[1]; + const auto num_boxes = lens[2]; + // boxes of a class with NMS applied [score, index] + std::vector> selected_boxes_inside_class; std::vector selected_indices; selected_boxes_inside_class.reserve(output_shape.elements()); - - auto scores = make_view(args.at(1).get_shape(), args.at(1).cast()); - const float* boxes = args.at(0).cast(); - shape comp_s{shape::float_type, {batch_num, class_num}}; + // iterate over batches and classes + shape comp_s{shape::double_type, {num_batches, num_classes}}; shape_for_each(comp_s, [&](auto idx) { - auto bidx = idx[0]; - auto cidx = idx[1]; - - std::size_t score_offset = (bidx * class_num + cidx) * box_num; - const float* batch_boxes = boxes + bidx * box_num * 4; - std::priority_queue> sorted_boxes; - auto insert_to_sorted_boxes = - make_function_output_iterator([&](const auto& x) { sorted_boxes.push(x); }); - - int64_t box_idx = 0; - transform_if( - scores.begin() + score_offset, - scores.begin() + score_offset + box_num, - insert_to_sorted_boxes, - [&](auto sc) { - box_idx++; - return sc >= score_threshold; - }, - [&](auto sc) { return std::make_pair(sc, box_idx - 1); }); - + auto batch_idx = idx[0]; + auto class_idx = idx[1]; + // index offset for this class + auto scores_start = scores.begin() + (batch_idx * num_classes + class_idx) * num_boxes; + // iterator to first value of this batch + auto batch_boxes_start = boxes.begin() + batch_idx * num_boxes * 4; + auto boxes_heap = filter_boxes_by_score(scores_start, num_boxes, score_threshold); selected_boxes_inside_class.clear(); // Get the next box with top score, filter by iou_threshold - while(!sorted_boxes.empty() && + while(!boxes_heap.empty() && selected_boxes_inside_class.size() < max_output_boxes_per_class) { - const std::pair& next_top_score = sorted_boxes.top(); - - // Check with existing selected boxes for this class, suppress if exceed the IOU - // (Intersection Over Union) threshold - bool not_selected = std::any_of( - selected_boxes_inside_class.begin(), - selected_boxes_inside_class.end(), - [&](auto selected_index) { - return this->suppress_by_iou(batch_box(batch_boxes, next_top_score.second), - batch_box(batch_boxes, selected_index.second), - iou_threshold); - }); + // Check with existing selected boxes for this class, remove box if it + // exceeds the IOU (Intersection Over Union) threshold + const auto next_top_score = boxes_heap.top(); + bool not_selected = + std::any_of(selected_boxes_inside_class.begin(), + selected_boxes_inside_class.end(), + [&](auto selected_index) { + return this->suppress_by_iou( + batch_box(batch_boxes_start, next_top_score.second), + batch_box(batch_boxes_start, selected_index.second), + iou_threshold); + }); if(not not_selected) { selected_boxes_inside_class.push_back(next_top_score); - selected_indices.push_back(bidx); - selected_indices.push_back(cidx); + selected_indices.push_back(batch_idx); + selected_indices.push_back(class_idx); selected_indices.push_back(next_top_score.second); } - sorted_boxes.pop(); + boxes_heap.pop(); } }); + std::copy(selected_indices.begin(), selected_indices.end(), output.begin()); + } + + argument compute(const shape& output_shape, std::vector args) const + { + argument result{output_shape}; - result.visit([&](auto out) { - std::copy(selected_indices.begin(), selected_indices.end(), out.begin()); + std::size_t max_output_boxes_per_class = + (args.size() > 2) ? (args.at(2).at()) : 0; + if(max_output_boxes_per_class == 0) + { + return result; + } + double iou_threshold = (args.size() > 3) ? (args.at(3).at()) : 0.0f; + double score_threshold = (args.size() > 4) ? (args.at(4).at()) : 0.0f; + + result.visit([&](auto output) { + visit_all(args[0], args[1])([&](auto boxes, auto scores) { + compute_nms(output, + boxes, + scores, + output_shape, + max_output_boxes_per_class, + iou_threshold, + score_threshold); + }); }); return result; diff --git a/test/ref_ops_test.cpp b/test/ref_ops_test.cpp index 9b784fed6..366f8b389 100644 --- a/test/ref_ops_test.cpp +++ b/test/ref_ops_test.cpp @@ -3187,6 +3187,80 @@ TEST_CASE(nms_test) EXPECT(migraphx::verify_range(result, gold)); } +TEST_CASE(nms_transpose1_test) +{ + migraphx::program p; + auto* mm = p.get_main_module(); + migraphx::shape boxes_s{migraphx::shape::float_type, {1, 4, 6}}; + std::vector boxes_vec = { + 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.6, 0.4, 10.5, 10.6, 100.5, + 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, + }; + + migraphx::shape scores_s{migraphx::shape::float_type, {1, 1, 6}}; + std::vector scores_vec = {0.9, 0.75, 0.6, 0.95, 0.5, 0.3}; + + auto t_boxes_l = mm->add_literal(migraphx::literal(boxes_s, boxes_vec)); + auto scores_l = mm->add_literal(migraphx::literal(scores_s, scores_vec)); + auto max_out_l = mm->add_literal(int64_t{4}); + auto iou_threshold = mm->add_literal(0.5f); + auto score_threshold = mm->add_literal(0.0f); + + auto transpose_boxes = mm->add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 1}}}), t_boxes_l); + auto r = mm->add_instruction(migraphx::make_op("nonmaxsuppression", {{"center_point_box", 1}}), + transpose_boxes, + scores_l, + max_out_l, + iou_threshold, + score_threshold); + mm->add_return({r}); + + p.compile(migraphx::ref::target{}); + auto output = p.eval({}).back(); + std::vector result; + output.visit([&](auto out) { result.assign(out.begin(), out.end()); }); + std::vector gold = {0, 0, 3, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + EXPECT(migraphx::verify_range(result, gold)); +} + +TEST_CASE(nms_transpose2_test) +{ + migraphx::program p; + auto* mm = p.get_main_module(); + migraphx::shape boxes_s{migraphx::shape::float_type, {4, 1, 6}}; + std::vector boxes_vec = { + 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.6, 0.4, 10.5, 10.6, 100.5, + 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, + }; + + migraphx::shape scores_s{migraphx::shape::float_type, {1, 1, 6}}; + std::vector scores_vec = {0.9, 0.75, 0.6, 0.95, 0.5, 0.3}; + + auto t_boxes_l = mm->add_literal(migraphx::literal(boxes_s, boxes_vec)); + auto scores_l = mm->add_literal(migraphx::literal(scores_s, scores_vec)); + auto max_out_l = mm->add_literal(int64_t{4}); + auto iou_threshold = mm->add_literal(0.5f); + auto score_threshold = mm->add_literal(0.0f); + + auto transpose_boxes = mm->add_instruction( + migraphx::make_op("transpose", {{"permutation", {1, 2, 0}}}), t_boxes_l); + auto r = mm->add_instruction(migraphx::make_op("nonmaxsuppression", {{"center_point_box", 1}}), + transpose_boxes, + scores_l, + max_out_l, + iou_threshold, + score_threshold); + mm->add_return({r}); + + p.compile(migraphx::ref::target{}); + auto output = p.eval({}).back(); + std::vector result; + output.visit([&](auto out) { result.assign(out.begin(), out.end()); }); + std::vector gold = {0, 0, 3, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + EXPECT(migraphx::verify_range(result, gold)); +} + TEST_CASE(nonzero_test) { migraphx::program p; -- GitLab From 9f74ddedf6afe2c98bc8c85ea8f1dad61469d244 Mon Sep 17 00:00:00 2001 From: Chris Austen Date: Wed, 29 Jun 2022 14:40:57 -0400 Subject: [PATCH 21/32] Invalid parameter for yolov4 example (#1275) should be --fp16 , not --fp16ref --- examples/vision/python_yolov4/yolov4_inference.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vision/python_yolov4/yolov4_inference.ipynb b/examples/vision/python_yolov4/yolov4_inference.ipynb index 207e10478..19a250045 100644 --- a/examples/vision/python_yolov4/yolov4_inference.ipynb +++ b/examples/vision/python_yolov4/yolov4_inference.ipynb @@ -80,7 +80,7 @@ "outputs": [], "source": [ "if not os.path.exists(\"yolov4_fp16.mxr\"):\n", - " !/opt/rocm/bin/migraphx-driver compile ./utilities/yolov4.onnx --gpu --enable-offload-copy --fp16ref --binary -o yolov4_fp16.mxr\n", + " !/opt/rocm/bin/migraphx-driver compile ./utilities/yolov4.onnx --gpu --enable-offload-copy --fp16 --binary -o yolov4_fp16.mxr\n", "if not os.path.exists(\"yolov4.mxr\"):\n", " !/opt/rocm/bin/migraphx-driver compile ./utilities/yolov4.onnx --gpu --enable-offload-copy --binary -o yolov4.mxr" ] -- GitLab From 2783c6494854e5fd3e70b87fd6f64256a4cd37de Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Wed, 29 Jun 2022 21:18:18 -0500 Subject: [PATCH 22/32] Add method to insert multiple instructions (#1178) This is an extension to insert_module_instructions, but instead of just inserting from a module, it can insert a range or a vector of instructions. --- src/fuse_pointwise.cpp | 2 +- src/include/migraphx/module.hpp | 30 ++++++- src/inline_module.cpp | 2 +- src/module.cpp | 140 ++++++++++++++++++++++---------- test/module_test.cpp | 90 ++++++++++++++++++++ 5 files changed, 215 insertions(+), 49 deletions(-) diff --git a/src/fuse_pointwise.cpp b/src/fuse_pointwise.cpp index 0fd3aa649..2b46d80b8 100644 --- a/src/fuse_pointwise.cpp +++ b/src/fuse_pointwise.cpp @@ -142,7 +142,7 @@ static std::vector append_pointwise_module(instruction_ref ins, input_map[input] = map_ins[param]; } } - pm->replace_return(pm->insert_module_instructions(last, xm, map_ins)); + pm->replace_return(pm->insert_instructions(last, xm, map_ins)); return inputs; } diff --git a/src/include/migraphx/module.hpp b/src/include/migraphx/module.hpp index 6759733df..542968aee 100644 --- a/src/include/migraphx/module.hpp +++ b/src/include/migraphx/module.hpp @@ -120,9 +120,33 @@ struct module instruction_ref move_instructions(instruction_ref src, instruction_ref dst); std::vector - insert_module_instructions(instruction_ref ins, - module_ref m, - std::unordered_map map_ins = {}); + add_instructions(const std::vector& instructions, + std::unordered_map map_ins = {}); + + std::vector + add_instructions(module_ref m, + std::unordered_map map_ins = {}); + + std::vector + add_instructions(instruction_ref start, + instruction_ref last, + std::unordered_map map_ins = {}); + + std::vector + insert_instructions(instruction_ref ins, + const std::vector& instructions, + std::unordered_map map_ins = {}); + + std::vector + insert_instructions(instruction_ref ins, + module_ref m, + std::unordered_map map_ins = {}); + + std::vector + insert_instructions(instruction_ref ins, + instruction_ref start, + instruction_ref last, + std::unordered_map map_ins = {}); template instruction_ref add_literal(Ts&&... xs) diff --git a/src/inline_module.cpp b/src/inline_module.cpp index 88027daae..775c4f80c 100644 --- a/src/inline_module.cpp +++ b/src/inline_module.cpp @@ -35,7 +35,7 @@ static void inline_submodule(module& m, instruction_ref ins, bool cond) { const auto& mod_inputs = ins->module_inputs(); module_ref smod = cond ? mod_inputs.at(0) : mod_inputs.at(1); - auto mod_outputs = m.insert_module_instructions(ins, smod); + auto mod_outputs = m.insert_instructions(ins, smod); auto ins_outputs = ins->outputs(); assert(mod_outputs.size() >= ins_outputs.size()); diff --git a/src/module.cpp b/src/module.cpp index 16b3f3599..146589c4a 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -197,6 +197,62 @@ void module::assign(const module& m) } } +template +static std::vector +insert_generic_instructions(module& m, + instruction_ref ins, + Range&& instructions, + std::unordered_map map_ins) +{ + assert(m.has_instruction(ins) or is_end(ins, m.end())); + std::vector mod_outputs; + instruction_ref last; + for(instruction_ref sins : instructions) + { + last = sins; + if(contains(map_ins, sins)) + continue; + instruction_ref copy_ins; + if(sins->name() == "@literal") + { + auto l = sins->get_literal(); + copy_ins = m.add_literal(l); + } + else if(sins->name() == "@param") + { + auto&& name = any_cast(sins->get_operator()).parameter; + auto s = sins->get_shape(); + copy_ins = m.add_parameter(name, s); + } + else if(sins->name() == "@outline") + { + auto s = sins->get_shape(); + copy_ins = m.add_outline(s); + } + else + { + auto mod_args = sins->module_inputs(); + auto inputs = sins->inputs(); + std::vector copy_inputs(inputs.size()); + std::transform(inputs.begin(), inputs.end(), copy_inputs.begin(), [&](auto i) { + return contains(map_ins, i) ? map_ins[i] : i; + }); + + if(sins->name() == "@return") + { + mod_outputs = copy_inputs; + break; + } + + copy_ins = m.insert_instruction(ins, sins->get_operator(), copy_inputs, mod_args); + } + map_ins[sins] = copy_ins; + } + if(mod_outputs.empty() and instructions.begin() != instructions.end()) + mod_outputs = {map_ins.at(last)}; + return mod_outputs; +} + instruction_ref module::add_instruction(const operation& op, std::vector args) { return insert_instruction(impl->instructions.end(), op, std::move(args)); @@ -335,53 +391,49 @@ instruction_ref module::move_instructions(instruction_ref src, instruction_ref d return src; } -std::vector module::insert_module_instructions( - instruction_ref ins, module_ref m, std::unordered_map map_ins) +std::vector +module::add_instructions(const std::vector& instructions, + std::unordered_map map_ins) { - std::vector mod_outputs; - for(auto sins : iterator_for(*m)) - { - if(contains(map_ins, sins)) - continue; - instruction_ref copy_ins; - if(sins->name() == "@literal") - { - auto l = sins->get_literal(); - copy_ins = this->add_literal(l); - } - else if(sins->name() == "@param") - { - auto&& name = any_cast(sins->get_operator()).parameter; - auto s = sins->get_shape(); - copy_ins = this->add_parameter(name, s); - } - else if(sins->name() == "@outline") - { - auto s = sins->get_shape(); - copy_ins = this->add_outline(s); - } - else - { - auto mod_args = sins->module_inputs(); - auto inputs = sins->inputs(); - std::vector copy_inputs(inputs.size()); - std::transform(inputs.begin(), inputs.end(), copy_inputs.begin(), [&](auto i) { - return contains(map_ins, i) ? map_ins[i] : i; - }); + return this->insert_instructions(this->end(), instructions, std::move(map_ins)); +} - if(sins->name() == "@return") - { - mod_outputs = copy_inputs; - break; - } +std::vector +module::add_instructions(module_ref m, std::unordered_map map_ins) +{ + return this->insert_instructions(this->end(), m, std::move(map_ins)); +} - copy_ins = this->insert_instruction(ins, sins->get_operator(), copy_inputs, mod_args); - } - map_ins[sins] = copy_ins; - } - if(mod_outputs.empty()) - mod_outputs = {map_ins.at(std::prev(m->end()))}; - return mod_outputs; +std::vector +module::add_instructions(instruction_ref start, + instruction_ref last, + std::unordered_map map_ins) +{ + return this->insert_instructions(this->end(), start, last, std::move(map_ins)); +} + +std::vector +module::insert_instructions(instruction_ref ins, + const std::vector& instructions, + std::unordered_map map_ins) +{ + return insert_generic_instructions(*this, ins, instructions, std::move(map_ins)); +} + +std::vector module::insert_instructions( + instruction_ref ins, module_ref m, std::unordered_map map_ins) +{ + return insert_generic_instructions(*this, ins, iterator_for(*m), std::move(map_ins)); +} + +std::vector +module::insert_instructions(instruction_ref ins, + instruction_ref start, + instruction_ref last, + std::unordered_map map_ins) +{ + auto r = range(start, last); + return insert_generic_instructions(*this, ins, iterator_for(r), std::move(map_ins)); } instruction_ref module::add_literal(literal l) diff --git a/test/module_test.cpp b/test/module_test.cpp index 825177721..1fd720489 100644 --- a/test/module_test.cpp +++ b/test/module_test.cpp @@ -300,6 +300,96 @@ TEST_CASE(parameter_name_order) EXPECT(param_names == names1); } +TEST_CASE(insert_instructions_module) +{ + migraphx::shape s{migraphx::shape::int32_type, {1}}; + migraphx::module m1("m1"); + auto x1 = m1.add_parameter("x1", s); + auto sqrt = m1.add_instruction(migraphx::make_op("sqrt"), {x1}); + m1.add_instruction(migraphx::make_op("add"), {sqrt, x1}); + + migraphx::module m2("m2"); + auto x2 = m2.add_parameter("x2", s); + m2.add_instruction(migraphx::make_op("sqrt"), {x2}); + + m1.insert_instructions(sqrt, &m2, {{x2, x1}}); + + EXPECT(std::prev(sqrt)->name() == "sqrt"); + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "sqrt"; }) == + 2); + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "@param"; }) == + 1); + EXPECT(contains(m1.get_parameter_shapes(), "x1")); + EXPECT(not contains(m1.get_parameter_shapes(), "x2")); +} + +TEST_CASE(add_instructions_module) +{ + migraphx::shape s{migraphx::shape::int32_type, {1}}; + migraphx::module m1("m1"); + auto x1 = m1.add_parameter("x1", s); + m1.add_instruction(migraphx::make_op("sqrt"), {x1}); + + migraphx::module m2("m2"); + auto x2 = m2.add_parameter("x2", s); + m2.add_instruction(migraphx::make_op("sqrt"), {x2}); + + m1.add_instructions(&m2, {{x2, x1}}); + + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "sqrt"; }) == + 2); + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "@param"; }) == + 1); + EXPECT(contains(m1.get_parameter_shapes(), "x1")); + EXPECT(not contains(m1.get_parameter_shapes(), "x2")); +} + +TEST_CASE(add_instructions_range) +{ + migraphx::shape s{migraphx::shape::int32_type, {1}}; + migraphx::module m1("m1"); + auto x1 = m1.add_parameter("x1", s); + m1.add_instruction(migraphx::make_op("sqrt"), {x1}); + + migraphx::module m2("m2"); + auto x2 = m2.add_parameter("x2", s); + auto sqrt2 = m2.add_instruction(migraphx::make_op("sqrt"), {x2}); + + m1.add_instructions(sqrt2, m2.end(), {{x2, x1}}); + EXPECT(std::any_of( + m1.begin(), m1.end(), [&](auto&& ins) { return migraphx::contains(ins.inputs(), x1); })); + + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "sqrt"; }) == + 2); + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "@param"; }) == + 1); + EXPECT(contains(m1.get_parameter_shapes(), "x1")); + EXPECT(not contains(m1.get_parameter_shapes(), "x2")); +} + +TEST_CASE(add_instructions_vector) +{ + migraphx::shape s{migraphx::shape::int32_type, {1}}; + migraphx::module m1("m1"); + auto x1 = m1.add_parameter("x1", s); + m1.add_instruction(migraphx::make_op("sqrt"), {x1}); + + migraphx::module m2("m2"); + auto x2 = m2.add_parameter("x2", s); + auto sqrt2 = m2.add_instruction(migraphx::make_op("sqrt"), {x2}); + + m1.add_instructions({sqrt2}, {{x2, x1}}); + EXPECT(std::any_of( + m1.begin(), m1.end(), [&](auto&& ins) { return migraphx::contains(ins.inputs(), x1); })); + + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "sqrt"; }) == + 2); + EXPECT(std::count_if(m1.begin(), m1.end(), [](auto&& ins) { return ins.name() == "@param"; }) == + 1); + EXPECT(contains(m1.get_parameter_shapes(), "x1")); + EXPECT(not contains(m1.get_parameter_shapes(), "x2")); +} + struct check_for_pass_op { bool* found = nullptr; -- GitLab From ca8a54fe732e725f0e22ebc09187bd71faf131a5 Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Sun, 3 Jul 2022 12:04:13 -0500 Subject: [PATCH 23/32] Add mlir fusion (#1251) * Add mlir c api * Formatting * Create a type attribute * Formatting * Parse module * Formatting * Add mlir dump function * Add test case * Formatting * Fix tidy issues * Update mlit version * Update to newer mlir * Format * Move mlir to the gpu and update the test * Formatting * Fix bug when appending module * Format * Remove old cmake flag * Update message * Add return * Format * Add mlir_compile * Format * Register dialect * Handle unsinged integers * Dont provide output for return instruction * Format * Add code to insert memrefs * Format * Add mlir verification * Formatting * Enable pointwise_fusion * Disable eliminate_data_type * Set kernal name * Format * Fix device name * Formatting * Fix output arg * Format * Updates * Upate hash * Add fuse_mlir pass * Format * Add fuse mlir * Format * Update mlir * Sort parameter names * Format * Reenable disabled passes * Remove old mlir conv * Remove asym default padding * Add more verbose tracing * Format * Fix compilation errors * Format * Whitelist operators * Format * Add namespace * Format * Update triple * Format * Use func dialect * Format * Use func.return * Format * Upgrade mlir version * Add comment * Handle symetrical padding * Format * Cleanup debug output * Format * List failed tests * Move mlir compile to jit pipeline * Format * Update version * Add source locations * Format * Correctly add module * Format * Update failed tests * Fix failures when mlir is disabled * Format * Update mlir version * Check type for fp32 * Format * Remove failed test * Update mlir in driver * Tidy fixes * Foramt * Tidy fixes * Format * Fix const * Remove from requirements * Fix cmake version * Fix tidy warning * Use another ifdef * Fix tidy * Other tidy fix * Format * Update hash * Add missing license files * Format * Format * Fix fnction name --- Dockerfile | 2 +- src/include/migraphx/matcher.hpp | 24 +- src/include/migraphx/module.hpp | 6 +- src/include/migraphx/module_ref.hpp | 3 +- src/include/migraphx/ranges.hpp | 6 + src/include/migraphx/shape.hpp | 4 + src/module.cpp | 9 +- src/targets/gpu/CMakeLists.txt | 25 +- src/targets/gpu/code_object_op.cpp | 2 +- src/targets/gpu/fuse_mlir.cpp | 139 ++++ src/targets/gpu/fuse_ops.cpp | 11 +- .../include/migraphx/gpu/code_object_op.hpp | 19 +- .../gpu/{mlir_conv.hpp => fuse_mlir.hpp} | 19 +- src/targets/gpu/include/migraphx/gpu/mlir.hpp | 50 ++ src/targets/gpu/jit/mlir.cpp | 58 ++ src/targets/gpu/mlir.cpp | 647 ++++++++++++++++++ src/targets/gpu/mlir_conv.cpp | 315 --------- src/targets/gpu/target.cpp | 5 +- test/gpu/mlir.cpp | 194 ++++++ 19 files changed, 1170 insertions(+), 368 deletions(-) create mode 100644 src/targets/gpu/fuse_mlir.cpp rename src/targets/gpu/include/migraphx/gpu/{mlir_conv.hpp => fuse_mlir.hpp} (82%) create mode 100644 src/targets/gpu/include/migraphx/gpu/mlir.hpp create mode 100644 src/targets/gpu/jit/mlir.cpp create mode 100644 src/targets/gpu/mlir.cpp delete mode 100644 src/targets/gpu/mlir_conv.cpp create mode 100644 test/gpu/mlir.cpp diff --git a/Dockerfile b/Dockerfile index a974f089c..05f86a529 100755 --- a/Dockerfile +++ b/Dockerfile @@ -86,7 +86,7 @@ RUN git clone --single-branch --branch ${ONNXRUNTIME_BRANCH} --recursive ${ONNXR ADD tools/build_and_test_onnxrt.sh /onnxruntime/build_and_test_onnxrt.sh -RUN PATH=/opt/cmake/bin:$PATH cget -p /usr/local install ROCmSoftwarePlatform/llvm-project-mlir@02078ce236ad90e3aec04c0c770ef5bfc99e49c2 +RUN cget -p /usr/local install ROCmSoftwarePlatform/llvm-project-mlir@26a4b3cfc0a1a15181490f24ae461608fef1b04e -DBUILD_MIXR_TARGET=On ENV MIOPEN_FIND_DB_PATH=/tmp/miopen/find-db ENV MIOPEN_USER_DB_PATH=/tmp/miopen/user-db diff --git a/src/include/migraphx/matcher.hpp b/src/include/migraphx/matcher.hpp index 3ed2ef55d..42df604cf 100644 --- a/src/include/migraphx/matcher.hpp +++ b/src/include/migraphx/matcher.hpp @@ -349,25 +349,27 @@ match::matcher_result find_match(module& modl, M&& m) MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_TRACE_MATCHES) /// Find matches for an instruction in the module -template -void find_matches(module& mod, instruction_ref ins, Ms&&... ms) +template +void find_matches(Mod& mod, instruction_ref ins, Ms&&... ms) { #if !defined(__GNUC__) || defined(__clang__) || __GNUC__ > 5 const #endif - bool trace = enabled(MIGRAPHX_TRACE_MATCHES{}); - bool match = false; + int trace = value_of(MIGRAPHX_TRACE_MATCHES{}); + bool match = false; each_args( [&](auto&& m) { if(match) return; - auto r = match_instruction(mod, ins, m.matcher()); - if(r.result == mod.end()) + if(trace > 1) + std::cout << "Match: " << get_type_name(m) << std::endl; + auto r = match_instruction(get_module(mod), ins, m.matcher()); + if(r.result == get_module(mod).end()) return; - if(trace) + if(trace > 0) { std::cout << "Matched by " << get_type_name(m) << std::endl; - mod.debug_print(ins); + get_module(mod).debug_print(ins); } m.apply(mod, r); match = true; @@ -376,10 +378,10 @@ void find_matches(module& mod, instruction_ref ins, Ms&&... ms) } /// Find matches in a module -template -void find_matches(module& mod, Ms&&... ms) +template +void find_matches(Mod& mod, Ms&&... ms) { - for(auto ins : iterator_for(mod)) + for(auto ins : iterator_for(get_module(mod))) { find_matches(mod, ins, ms...); } diff --git a/src/include/migraphx/module.hpp b/src/include/migraphx/module.hpp index 542968aee..c1725b93c 100644 --- a/src/include/migraphx/module.hpp +++ b/src/include/migraphx/module.hpp @@ -124,7 +124,7 @@ struct module std::unordered_map map_ins = {}); std::vector - add_instructions(module_ref m, + add_instructions(const_module_ref m, std::unordered_map map_ins = {}); std::vector @@ -139,7 +139,7 @@ struct module std::vector insert_instructions(instruction_ref ins, - module_ref m, + const_module_ref m, std::unordered_map map_ins = {}); std::vector @@ -227,6 +227,8 @@ struct module std::unique_ptr impl; }; +inline module& get_module(module& m) { return m; } + } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx diff --git a/src/include/migraphx/module_ref.hpp b/src/include/migraphx/module_ref.hpp index 3beb421e3..807a39b72 100644 --- a/src/include/migraphx/module_ref.hpp +++ b/src/include/migraphx/module_ref.hpp @@ -32,7 +32,8 @@ namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { struct module; -using module_ref = module*; +using module_ref = module*; +using const_module_ref = const module*; } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx diff --git a/src/include/migraphx/ranges.hpp b/src/include/migraphx/ranges.hpp index 77536f3ef..33b59170f 100644 --- a/src/include/migraphx/ranges.hpp +++ b/src/include/migraphx/ranges.hpp @@ -198,6 +198,12 @@ void transform(Range&& r, Iterator it, F f) std::transform(r.begin(), r.end(), it, f); } +template +void transform(Range1&& r1, Range2&& r2, Iterator it, F f) +{ + std::transform(r1.begin(), r1.end(), r2.begin(), it, f); +} + template auto reverse(Range& r) { diff --git a/src/include/migraphx/shape.hpp b/src/include/migraphx/shape.hpp index eb27a8a6c..eab1b9ab9 100644 --- a/src/include/migraphx/shape.hpp +++ b/src/include/migraphx/shape.hpp @@ -191,6 +191,10 @@ struct shape std::size_t size(std::size_t n = 1) const { return sizeof(type) * n; } + auto is_integral() const { return std::is_integral{}; } + auto is_signed() const { return std::is_signed{}; } + auto is_unsigned() const { return std::is_unsigned{}; } + template type* from(U* buffer, std::size_t n = 0) const { diff --git a/src/module.cpp b/src/module.cpp index 146589c4a..27288a568 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -399,7 +399,8 @@ module::add_instructions(const std::vector& instructions, } std::vector -module::add_instructions(module_ref m, std::unordered_map map_ins) +module::add_instructions(const_module_ref m, + std::unordered_map map_ins) { return this->insert_instructions(this->end(), m, std::move(map_ins)); } @@ -420,8 +421,10 @@ module::insert_instructions(instruction_ref ins, return insert_generic_instructions(*this, ins, instructions, std::move(map_ins)); } -std::vector module::insert_instructions( - instruction_ref ins, module_ref m, std::unordered_map map_ins) +std::vector +module::insert_instructions(instruction_ref ins, + const_module_ref m, + std::unordered_map map_ins) { return insert_generic_instructions(*this, ins, iterator_for(*m), std::move(map_ins)); } diff --git a/src/targets/gpu/CMakeLists.txt b/src/targets/gpu/CMakeLists.txt index 33f5625f8..6a1dbc226 100755 --- a/src/targets/gpu/CMakeLists.txt +++ b/src/targets/gpu/CMakeLists.txt @@ -164,6 +164,7 @@ add_library(migraphx_gpu deconvolution.cpp device_name.cpp elu.cpp + fuse_mlir.cpp fuse_ops.cpp gather.cpp gemm_impl.cpp @@ -176,7 +177,7 @@ add_library(migraphx_gpu loop.cpp lrn.cpp leaky_relu.cpp - mlir_conv.cpp + mlir.cpp multinomial.cpp nonzero.cpp pack_args.cpp @@ -320,16 +321,26 @@ message(STATUS "extractkernel: ${MIGRAPHX_EXTRACT_KERNEL}") set(MIGRAPHX_ENABLE_MLIR OFF CACHE BOOL "") if(MIGRAPHX_ENABLE_MLIR) - find_library(LIBMLIRMIOPEN MLIRMIOpenThin REQUIRED) + find_library(MLIRAPI_LIBRARY MLIRMIOpen + PATH_SUFFIXES + # Workaournd broken mlir install + lib/ lib/lib) # REQUIRED is not supported before cmake 3.18 - if(NOT LIBMLIRMIOPEN) - message(FATAL_ERROR "libMLIRMIOpenThin not found") + if(NOT MLIRAPI_LIBRARY) + message(FATAL_ERROR "libMLIRMIOpen not found") else() - message(STATUS "Build with libMLIRMIOpenThin: " ${LIBMLIRMIOPEN}) + message(STATUS "Build with libMLIRMIOpen: " ${MLIRAPI_LIBRARY}) endif() - target_compile_definitions(migraphx_gpu PRIVATE "-DMIGRAPHX_MLIR_MIOPEN_SUPPORT") - target_link_libraries(migraphx_gpu PUBLIC ${LIBMLIRMIOPEN}) + find_path(MLIRAPI_HEADERS NAMES mlir-c/Dialect/MIGraphX.h) + # Workaround MLIR broken installation + find_path(MLIRAPI_HEADERS2 NAMES mlir-c/Registration.h + PATH_SUFFIXES + include/external/include external/include) + + target_compile_definitions(migraphx_gpu PRIVATE "-DMIGRAPHX_MLIR") + target_include_directories(migraphx_gpu SYSTEM PRIVATE ${MLIRAPI_HEADERS} ${MLIRAPI_HEADERS2}) + target_link_libraries(migraphx_gpu PUBLIC ${MLIRAPI_LIBRARY}) endif() set(MIGRAPHX_USE_HIPRTC OFF CACHE BOOL "") diff --git a/src/targets/gpu/code_object_op.cpp b/src/targets/gpu/code_object_op.cpp index b5fd34ee7..10c698ef4 100644 --- a/src/targets/gpu/code_object_op.cpp +++ b/src/targets/gpu/code_object_op.cpp @@ -52,7 +52,7 @@ code_object_op::compute(context& ctx, const shape&, const std::vector& std::transform( args.begin(), args.end(), kargs.begin(), [](const argument& a) { return a.data(); }); k.launch(ctx.get_stream().get(), global, local, std::move(kargs)); - return args.back(); + return args[get_output_arg(args.size())]; } void code_object_op::finalize(context&, const shape&, const std::vector&) { diff --git a/src/targets/gpu/fuse_mlir.cpp b/src/targets/gpu/fuse_mlir.cpp new file mode 100644 index 000000000..bfdb64a5d --- /dev/null +++ b/src/targets/gpu/fuse_mlir.cpp @@ -0,0 +1,139 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include +#include +#include +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { + +struct module; + +namespace gpu { + +#ifdef MIGRAPHX_MLIR +struct mlir_conv +{ + operation op = make_op("convolution"); + + template + static auto reflect(Self& self, F f) + { + return pack(f(self.op, "op")); + } + + std::string name() const { return "gpu::mlir_conv"; } + shape compute_shape(std::vector inputs, const std::vector& mods) const + { + check_shapes{inputs, *this}.standard(); + if(mods.size() != 1) + MIGRAPHX_THROW("should have one submodule."); + if(inputs.size() < 2) + MIGRAPHX_THROW("should have at least two inputs."); + auto n = inputs.size(); + return op.compute_shape({inputs[n - 2], inputs[n - 1]}); + } +}; +MIGRAPHX_REGISTER_OP(mlir_conv); + +namespace { +struct find_conv_pointwise +{ + // Find a convolution followed by a pointwise operation. + auto matcher() const + { + auto convolution = + match::skip(match::name("contiguous"))(match::name("convolution").bind("convolution")); + return match::name("pointwise")(match::any_of[match::inputs()](convolution.bind("x"))); + } + + void apply(module_pass_manager& mpm, const match::matcher_result& r) const + { + auto ins = r.result; + auto conv_ins = r.instructions["convolution"]; + auto x_ins = r.instructions["x"]; // input after contiguous + auto* pm = ins->module_inputs().front(); + auto names = pm->get_parameter_names(); + // Whitelist pointwise operators + if(std::any_of(pm->begin(), pm->end(), [](const auto& i) { + return not contains({"@literal", "@param", "@return", "convolution", "add", "relu"}, + i.name()); + })) + return; + // Only fuse with fp32 for now + if(std::any_of(ins->inputs().begin(), ins->inputs().end(), [&](auto i) { + return i->get_shape().type() != shape::type_t::float_type; + })) + return; + std::sort(names.begin(), names.end()); + module_ref mm = mpm.create_module("mlir_" + pm->name()); + mm->set_bypass(); + std::unordered_map param_map; + auto x = mm->add_parameter("x" + std::to_string(names.size()), + conv_ins->inputs().at(0)->get_shape()); + auto w = mm->add_parameter("x" + std::to_string(names.size() + 1), + conv_ins->inputs().at(1)->get_shape()); + auto conv = mm->add_instruction(conv_ins->get_operator(), {x, w}); + std::transform(names.begin(), + names.end(), + ins->inputs().begin(), + std::inserter(param_map, param_map.end()), + [&](auto name, auto input) { + if(input == x_ins) + return std::make_pair(pm->get_parameter(name), conv); + return std::make_pair(pm->get_parameter(name), + mm->add_parameter(name, input->get_shape())); + }); + mm->add_return(mm->insert_instructions(mm->end(), pm, param_map)); + + std::vector inputs; + std::copy_if(ins->inputs().begin(), + ins->inputs().end(), + std::back_inserter(inputs), + [&](auto input) { return input != conv_ins; }); + inputs.insert(inputs.end(), conv_ins->inputs().begin(), conv_ins->inputs().end()); + mpm.get_module().replace_instruction( + ins, mlir_conv{conv_ins->get_operator()}, inputs, {mm}); + } +}; +} // namespace + +#endif + +void fuse_mlir::apply(module_pass_manager& mpm) const +{ +#ifdef MIGRAPHX_MLIR + match::find_matches(mpm, find_conv_pointwise{}); +#else + (void)mpm; +#endif +} + +} // namespace gpu + +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx diff --git a/src/targets/gpu/fuse_ops.cpp b/src/targets/gpu/fuse_ops.cpp index eb1c3ca3f..7efd9170a 100644 --- a/src/targets/gpu/fuse_ops.cpp +++ b/src/targets/gpu/fuse_ops.cpp @@ -336,6 +336,7 @@ void move_standard_front(std::vector& args) auto gpu_name(const std::string& s) { return match::name("gpu::" + s); } +namespace { struct find_layernorm { auto matcher() const { return match::layernorm(&gpu_name); } @@ -836,15 +837,6 @@ inline auto precompile_name(std::string s) // NOLINT }); } -template -auto conv_bias_pointwise(Ms... ms) -{ - return precompile_name("pointwise")( - match::either_arg(0, 1)(bias_shape(match::used_once()).bind("bias"), - fusable_conv(match::used_once()).bind("conv")), - ms...); -} - struct find_conv_bias { context* ctx = nullptr; @@ -1013,6 +1005,7 @@ struct find_commutative_broadcast m.replace_instruction(ins, ins->get_operator(), args); } }; +} // namespace struct find_contiguous { diff --git a/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp b/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp index a50b0144b..cdedd9cfb 100644 --- a/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp +++ b/src/targets/gpu/include/migraphx/gpu/code_object_op.hpp @@ -38,12 +38,13 @@ struct context; struct code_object_op { - value::binary code_object; - std::string symbol_name; - std::size_t global; - std::size_t local; - std::vector expected_inputs; - shape output; + value::binary code_object{}; + std::string symbol_name = ""; + std::size_t global = 0; + std::size_t local = 0; + std::vector expected_inputs{}; + shape output{}; + std::int64_t output_arg = -1; kernel k{}; template @@ -66,9 +67,13 @@ struct code_object_op argument compute(context& ctx, const shape& output_shape, const std::vector& args) const; void finalize(context&, const shape&, const std::vector&); + std::int64_t get_output_arg(std::size_t n) const + { + return output_arg < 0 ? n + output_arg : output_arg; + } std::ptrdiff_t output_alias(const std::vector& shapes) const { - return shapes.size() - 1; + return get_output_arg(shapes.size()); } friend std::ostream& operator<<(std::ostream& os, const code_object_op& op) diff --git a/src/targets/gpu/include/migraphx/gpu/mlir_conv.hpp b/src/targets/gpu/include/migraphx/gpu/fuse_mlir.hpp similarity index 82% rename from src/targets/gpu/include/migraphx/gpu/mlir_conv.hpp rename to src/targets/gpu/include/migraphx/gpu/fuse_mlir.hpp index 65ff2620f..331795f5b 100644 --- a/src/targets/gpu/include/migraphx/gpu/mlir_conv.hpp +++ b/src/targets/gpu/include/migraphx/gpu/fuse_mlir.hpp @@ -21,8 +21,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#ifndef MIGRAPHX_GUARD_RTGLIB_MIOPEN_MLIR_CONV_HPP -#define MIGRAPHX_GUARD_RTGLIB_MIOPEN_MLIR_CONV_HPP +#ifndef MIGRAPHX_GUARD_GPU_FUSE_MLIR_HPP +#define MIGRAPHX_GUARD_GPU_FUSE_MLIR_HPP #include #include @@ -30,18 +30,19 @@ namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { -struct module; +struct module_pass_manager; namespace gpu { -struct mlir_conv + +struct fuse_mlir { - context* ctx; - std::string name() const { return "mlir::convolution"; } - void apply(module& m) const; + context* ctx = nullptr; + std::string name() const { return "gpu::fuse_mlir"; } + void apply(module_pass_manager& mpm) const; }; } // namespace gpu + } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx - -#endif +#endif // MIGRAPHX_GUARD_GPU_FUSE_MLIR_HPP diff --git a/src/targets/gpu/include/migraphx/gpu/mlir.hpp b/src/targets/gpu/include/migraphx/gpu/mlir.hpp new file mode 100644 index 000000000..785470382 --- /dev/null +++ b/src/targets/gpu/include/migraphx/gpu/mlir.hpp @@ -0,0 +1,50 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_RTGLIB_GPU_MLIR_HPP +#define MIGRAPHX_GUARD_RTGLIB_GPU_MLIR_HPP + +#include +#include +#include +#include +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { +struct module; +namespace gpu { + +std::string dump_mlir(const module& m); +code_object_op compile_mlir(const context& ctx, const module& m); + +instruction_ref insert_mlir(module& m, + instruction_ref ins, + code_object_op co, + const std::vector& inputs); + +} // namespace gpu +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx + +#endif diff --git a/src/targets/gpu/jit/mlir.cpp b/src/targets/gpu/jit/mlir.cpp new file mode 100644 index 000000000..e738faa35 --- /dev/null +++ b/src/targets/gpu/jit/mlir.cpp @@ -0,0 +1,58 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include + +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { +namespace gpu { + +struct mlir_compiler : compiler +{ + std::vector names() const { return {"gpu::mlir_conv"}; } + + operation compile_op(context&, const std::vector&, const value&) const { return {}; } + + compiler_replace compile(context& ctx, instruction_ref ins, const operation&) const + { + auto* smod = ins->module_inputs().front(); + assert(smod->get_parameter_names().size() == ins->inputs().size() - 1); + return insert(compile_mlir(ctx, *smod)); + } + + compiler_replace insert(code_object_op co) const + { + return [co = std::move(co)](module& m, instruction_ref ins) { + auto mlir = insert_mlir(m, ins, co, ins->inputs()); + m.replace_instruction(ins, mlir); + }; + } +}; + +} // namespace gpu +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx diff --git a/src/targets/gpu/mlir.cpp b/src/targets/gpu/mlir.cpp new file mode 100644 index 000000000..061e3b64f --- /dev/null +++ b/src/targets/gpu/mlir.cpp @@ -0,0 +1,647 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include + +#ifdef MIGRAPHX_MLIR +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { +namespace gpu { + +MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_TRACE_MLIR); + +#ifdef MIGRAPHX_MLIR +template // NOLINT +struct mlir_handle +{ + struct ptr + { + ptr() = default; + ptr(std::nullptr_t) {} + ptr(T x) : obj(x) {} + + std::intptr_t get_value() const + { + static_assert(sizeof(T) == sizeof(std::intptr_t), "MLIR Handle different size"); + return reinterpret_cast(obj); + } + + T get() const { return obj; } + + friend bool operator==(ptr x, ptr y) { return x.get_value() == y.get_value(); } + + friend bool operator!=(ptr x, ptr y) { return !(x == y); } + T obj{}; + }; + + struct deleter + { + using pointer = ptr; + + void operator()(pointer x) const + { + if(x != nullptr) + { + (void)f(x.obj); + } + } + }; + + mlir_handle() : handle(nullptr) {} + + mlir_handle(T p) : handle(ptr{p}) {} + + T get() const { return handle.get().get(); } + + T release() { return handle.release().get(); } + + private: + std::unique_ptr handle; +}; + +#define MIGRAPHX_MANAGE_MLIR_HANDLE(T, F) migraphx::gpu::mlir_handle // NOLINT + +using mlir_context = MIGRAPHX_MANAGE_MLIR_HANDLE(MlirContext, mlirContextDestroy); +using mlir_module = MIGRAPHX_MANAGE_MLIR_HANDLE(MlirModule, mlirModuleDestroy); +using mlir_operation = MIGRAPHX_MANAGE_MLIR_HANDLE(MlirOperation, mlirOperationDestroy); +using mlir_op_printing_flags = MIGRAPHX_MANAGE_MLIR_HANDLE(MlirOpPrintingFlags, + mlirOpPrintingFlagsDestroy); +using mlir_region = MIGRAPHX_MANAGE_MLIR_HANDLE(MlirRegion, mlirRegionDestroy); +using mlir_block = MIGRAPHX_MANAGE_MLIR_HANDLE(MlirBlock, mlirBlockDestroy); +using mlir_pass_manager = MIGRAPHX_MANAGE_MLIR_HANDLE(MlirPassManager, mlirPassManagerDestroy); + +std::string_view to_string_view(MlirStringRef s) { return {s.data, s.length}; } + +MlirStringRef make_mlir_string_ref(const std::string_view& s) +{ + return mlirStringRefCreate(s.data(), s.size()); +} + +template +void mlir_print(F f, T x, Printer printer) +{ + f( + x, + +[](MlirStringRef s, void* data) { + (*reinterpret_cast(data))(to_string_view(s)); + }, + &printer); +} + +template +void mlir_print(F f, T x, std::ostream& os) +{ + mlir_print(f, x, [&](auto s) { os << s; }); +} + +template +std::string mlir_print(F f, T x) +{ + std::stringstream ss; + mlir_print(f, x, [&](auto s) { ss << s; }); + return ss.str(); +} + +struct mlir_program +{ + mlir_program() + : ctx(mlirContextCreate()), + location(mlirLocationUnknownGet(ctx.get())), + mmodule(mlirModuleCreateEmpty(location)) + { + MlirDialectHandle mixr_handle = mlirGetDialectHandle__migraphx__(); + mlirDialectHandleRegisterDialect(mixr_handle, ctx.get()); + mlirRegisterAllDialects(ctx.get()); + mlirContextSetAllowUnregisteredDialects(ctx.get(), true /*allow*/); + } + + MlirType make_type(shape::type_t t) const + { + MlirType result; + shape::visit(t, [&](auto as) { + if(as.type_enum() == shape::float_type) + result = mlirF32TypeGet(ctx.get()); + else if(as.type_enum() == shape::half_type) + result = mlirF16TypeGet(ctx.get()); + else if(as.type_enum() == shape::double_type) + result = mlirF64TypeGet(ctx.get()); + else if(as.is_integral()) + { + if(as.is_signed()) + result = mlirIntegerTypeSignedGet(ctx.get(), as.size() * 8); + else + result = mlirIntegerTypeGet(ctx.get(), as.size() * 8); + } + else + MIGRAPHX_THROW("Unsupported type: " + std::to_string(as.type_enum())); + }); + return result; + } + + MlirType make_tensor(const shape& s) const + { + assert(s.standard()); + std::vector lens(s.lens().begin(), s.lens().end()); + return mlirRankedTensorTypeGet( + lens.size(), lens.data(), make_type(s.type()), mlirAttributeGetNull()); + } + + template + std::vector make_tensors(const Range& r) + { + std::vector result; + std::transform(r.begin(), r.end(), std::back_inserter(result), [&](const auto& s) { + return make_tensor(s); + }); + return result; + } + + MlirType make_function_type(const std::vector& inputs, const std::vector& outputs) + { + auto in = make_tensors(inputs); + auto out = make_tensors(outputs); + return mlirFunctionTypeGet(ctx.get(), in.size(), in.data(), out.size(), out.data()); + } + + MlirIdentifier id(const std::string_view& s) const + { + return mlirIdentifierGet(ctx.get(), make_mlir_string_ref(s)); + } + + MlirAttribute attribute(std::int64_t i) const + { + if(i < 0) + MIGRAPHX_THROW("MLIR cant handle negative values since they are ambiguous"); + return mlirIntegerAttrGet(mlirIntegerTypeGet(ctx.get(), 64), i); + } + MlirAttribute attribute(std::uint64_t i) const + { + if(i > (std::numeric_limits::max() / 2)) + MIGRAPHX_THROW("MLIR cant handle large integer values since they are ambiguous"); + return mlirIntegerAttrGet(mlirIntegerTypeGet(ctx.get(), 64), i); + } + MlirAttribute attribute(unsigned char i) const { return attribute(std::uint64_t(i)); } + MlirAttribute attribute(bool b) const { return mlirBoolAttrGet(ctx.get(), b ? 1 : 0); } + MlirAttribute attribute(double d) const + { + return mlirFloatAttrDoubleGet(ctx.get(), mlirF64TypeGet(ctx.get()), d); + } + MlirAttribute attribute(const std::string& s) const + { + return mlirStringAttrGet(ctx.get(), make_mlir_string_ref(s)); + } + MlirAttribute attribute(std::nullptr_t) const { return {}; } + template + MlirAttribute attribute(const std::vector& v) const + { + std::vector attributes; + attributes.reserve(v.size()); + std::transform(v.begin(), v.end(), std::back_inserter(attributes), [&](auto&& x) { + return attribute(x); + }); + return mlirArrayAttrGet(ctx.get(), attributes.size(), attributes.data()); + } + MlirAttribute attribute(const value& v) const + { + MlirAttribute attr; + v.visit_value([&](auto&& x) { attr = attribute(x); }); + return attr; + } + MlirAttribute attribute(const std::vector& v) const + { + if(v.empty()) + { + return mlirArrayAttrGet(ctx.get(), 0, nullptr); + } + if(not v.front().get_key().empty()) + { + std::vector attributes = name_attributes(v); + return mlirDictionaryAttrGet(ctx.get(), attributes.size(), attributes.data()); + } + else + { + std::vector attributes; + attributes.reserve(v.size()); + std::transform(v.begin(), v.end(), std::back_inserter(attributes), [&](auto&& x) { + return attribute(x); + }); + return mlirArrayAttrGet(ctx.get(), attributes.size(), attributes.data()); + } + } + + MlirAttribute attribute(MlirType t) const { return mlirTypeAttrGet(t); } + + MlirAttribute attribute(MlirAttribute a) const { return a; } + + template + MlirNamedAttribute name_attribute(const std::string_view& key, const T& x) const + { + MlirNamedAttribute attr; + attr.name = id(key); + attr.attribute = attribute(x); + return attr; + } + + using attribute_t = std::variant, + MlirType>; + using named_attribute_t = std::pair; + + MlirNamedAttribute name_attribute(const named_attribute_t& na) const + { + return name_attribute(na.first, + std::visit([&](const auto& x) { return attribute(x); }, na.second)); + } + + std::vector + name_attributes(const std::vector& named_attrs) const + { + std::vector attributes; + attributes.reserve(named_attrs.size()); + std::transform(named_attrs.begin(), + named_attrs.end(), + std::back_inserter(attributes), + [&](const named_attribute_t& a) { return name_attribute(a); }); + return attributes; + } + + std::vector name_attributes(const value& v) const + { + std::vector attributes; + attributes.reserve(v.size()); + std::transform(v.begin(), v.end(), std::back_inserter(attributes), [&](const value& x) { + return name_attribute(x.get_key(), x.without_key()); + }); + return attributes; + } + + struct mlir_operation_state + { + mlir_operation_state(mlir_program& p, const std::string_view& name) + : prog(&p), op_state(mlirOperationStateGet(make_mlir_string_ref(name), p.location)) + { + } + + mlir_operation_state& add_attributes(const std::vector& named_attrs) + { + auto attributes = prog->name_attributes(named_attrs); + mlirOperationStateAddAttributes(&op_state, attributes.size(), attributes.data()); + return *this; + } + + mlir_operation_state& add_attribute_value(const value& v) + { + auto attributes = prog->name_attributes(v); + mlirOperationStateAddAttributes(&op_state, attributes.size(), attributes.data()); + return *this; + } + + mlir_operation_state& add_regions(std::vector rs) + { + regions = std::move(rs); + return *this; + } + + mlir_operation_state& add_region(mlir_region r) + { + regions.emplace_back(std::move(r)); + return *this; + } + + mlir_operation_state& add_results(const std::vector& outputs) + { + auto x = prog->make_tensors(outputs); + mlirOperationStateAddResults(&op_state, x.size(), x.data()); + return *this; + } + + mlir_operation_state& add_operands(const std::vector& inputs) + { + mlirOperationStateAddOperands(&op_state, inputs.size(), inputs.data()); + return *this; + } + + mlir_operation create_operation() + { + std::vector mregions(regions.size()); + std::transform(regions.begin(), regions.end(), mregions.begin(), [](const auto& r) { + return r.get(); + }); + mlirOperationStateAddOwnedRegions(&op_state, mregions.size(), mregions.data()); + mlir_operation op(mlirOperationCreate(&op_state)); + // Release memory since mlir_operation owns it + for(auto& r : regions) + r.release(); + regions.clear(); + return op; + } + + mlir_program* prog; + MlirOperationState op_state; + std::vector regions = {}; + }; + + mlir_operation_state create_operation_state(const std::string_view& name) + { + return {*this, name}; + } + + std::vector insert(MlirBlock body, mlir_operation_state ops) + { + std::vector result; + mlir_operation op = ops.create_operation(); + auto weak_op = op.get(); + mlirBlockAppendOwnedOperation(body, op.release()); + + auto n = mlirOperationGetNumResults(weak_op); + result.reserve(n); + transform(range(n), std::back_inserter(result), [&](auto i) { + return mlirOperationGetResult(weak_op, i); + }); + return result; + } + + MlirBlock + insert(MlirBlock body, const module& m, std::unordered_map& ins_map) + { + auto names = m.get_parameter_names(); + std::sort(names.begin(), names.end()); + std::vector inputs; + std::transform(names.begin(), + names.end(), + std::back_inserter(inputs), + [&](const std::string& name) { return m.get_parameter_shape(name); }); + std::vector outputs = m.get_output_shapes(); + + std::vector arg_locs(inputs.size(), location); + auto body_inputs = make_tensors(inputs); + mlir_region region = mlirRegionCreate(); + mlir_block fbody = mlirBlockCreate(body_inputs.size(), body_inputs.data(), arg_locs.data()); + MlirBlock result = fbody.get(); + mlirRegionAppendOwnedBlock(region.get(), fbody.release()); + + auto ops = create_operation_state("func.func"); + ops.add_attributes({{"function_type", make_function_type(inputs, outputs)}, + {"sym_name", std::string("main")}, + {"kernel", std::string("mixr")}}); + ops.add_region(std::move(region)); + insert(body, std::move(ops)); + + for(auto i : range(names.size())) + ins_map[m.get_parameter(names[i])] = mlirBlockGetArgument(result, i); + return result; + } + + static std::string get_name(instruction_ref ins) + { + if(ins->name() == "@return") + return "func.return"; + return "migraphx." + ins->name(); + } + + static value get_operator_value(const operation& op) + { + auto v = op.to_value(); + if(op.name() == "convolution") + { + // Adjust symetrical padding + if(v.at("padding").size() == v.at("stride").size()) + { + auto padding = v.at("padding"); + std::copy(padding.begin(), padding.end(), std::back_inserter(v.at("padding"))); + } + } + return v; + } + + static shape get_shape(instruction_ref ins) + { + if(ins->name() == "@return") + { + assert(ins->inputs().size() == 1); + return ins->inputs().front()->get_shape(); + } + return ins->get_shape(); + } + + void parse(const module& m) + { + auto mbody = mlirModuleGetBody(mmodule.get()); + std::unordered_map ins_map; + auto fbody = insert(mbody, m, ins_map); + for(auto ins : iterator_for(m)) + { + if(ins->name() == "@param") + continue; + auto name = get_name(ins); + auto ops = create_operation_state(name); + ops.add_attribute_value(get_operator_value(ins->get_operator())); + if(ins->name() != "@return") + ops.add_results({get_shape(ins)}); + + std::vector inputs; + transform( + ins->inputs(), std::back_inserter(inputs), [&](auto i) { return ins_map.at(i); }); + ops.add_operands(inputs); + + auto outputs = insert(fbody, std::move(ops)); + if(ins->name() != "@return") + { + assert(outputs.size() == 1); + ins_map[ins] = outputs.front(); + } + } + } + + code_object_op compile() MIGRAPHX_TIDY_CONST + { + mlir_pass_manager pm{mlirPassManagerCreate(ctx.get())}; + // 1st pipeline to call + mlirMIGraphXAddHighLevelPipeline(pm.get()); + // 2nd pipeline to call + std::string tname = get_device_name(); + // HACK: Since MLIR can't handle the full target name + auto hacked_tname = tname.substr(0, tname.find(':')); + if(tname.size() != hacked_tname.size()) + std::cout + << "*************** WARNING: MLIR may not compile the correct target features for: " + << tname << std::endl; + mlirMIGraphXAddBackendPipeline(pm.get(), hacked_tname.c_str(), "amdgcn-amd-amdhsa", ""); + mlirPassManagerRun(pm.get(), mmodule.get()); + + code_object_op op{}; + op.symbol_name = "main"; + op.code_object = get_binary(); + std::tie(op.global, op.local) = get_launch_params(); + return op; + } + + std::pair get_launch_params() const + { + uint32_t attrs[2]; + // returns block and grid sizes + mlirGetKernelAttrs(mmodule.get(), attrs); + std::size_t local = attrs[0]; + std::size_t global = local * attrs[1]; + return {global, local}; + } + + value::binary get_binary() const + { + int size = 0; + mlirGetBinary(mmodule.get(), &size, nullptr); + value::binary result(size); + if(mlirGetBinary(mmodule.get(), &size, reinterpret_cast(result.data()))) + return result; + MIGRAPHX_THROW("Failed to compile mlir program"); + } + + mlir_context ctx; + MlirLocation location; + mlir_module mmodule; + std::deque strings{}; +}; + +std::string dump_mlir(const module& m) +{ + mlir_program mp; + mp.parse(m); + auto mod_op = mlirModuleGetOperation(mp.mmodule.get()); + return mlir_print(&mlirOperationPrint, mod_op); +} + +code_object_op compile_mlir(const context&, const module& m) +{ + const bool trace = enabled(MIGRAPHX_TRACE_MLIR{}); + if(trace) + std::cout << m << std::endl; + mlir_program mp; + mp.parse(m); + auto mod_op = mlirModuleGetOperation(mp.mmodule.get()); + if(trace) + std::cout << mlir_print(&mlirOperationPrint, mod_op) << std::endl; + auto co = mp.compile(); + co.output = m.get_output_shapes().front(); + return co; +} + +instruction_ref insert_mlir(module& m, + instruction_ref ins, + code_object_op co, + const std::vector& inputs) +{ + std::vector refs; + refs.reserve(inputs.size() * 15); + + std::unordered_map literal_map{}; + auto get_literal = [&](uint64_t value) { + auto fi = literal_map.find(value); + if(fi != literal_map.end()) + return fi->second; + auto lit = m.add_literal(value); + literal_map.emplace(value, lit); + return lit; + }; + + std::size_t last = 0; + for(auto input : inputs) + { + const size_t offset = 0; + auto s = input->get_shape(); + last = refs.size(); + refs.push_back(input); + refs.push_back(input); + refs.push_back(get_literal(offset)); // offset + + // dim sizes + std::transform(s.lens().begin(), + s.lens().end(), + std::back_inserter(refs), + [&](const auto& lval) { return get_literal(lval); }); + // refs.push_back(get_literal(1)); // G + + // dim strides + std::transform(s.strides().begin(), + s.strides().end(), + std::back_inserter(refs), + [&](const auto& lval) { return get_literal(lval); }); + // refs.push_back(get_literal(1)); // G + } + co.expected_inputs = to_shapes(refs); + co.output_arg = last; + return m.insert_instruction(ins, co, refs); +} + +#else + +std::string dump_mlir(const module&) { return {}; } + +code_object_op compile_mlir(const context&, const module&) { return {}; } + +template +void use(T&) +{ +} + +instruction_ref +// cppcheck-suppress funcArgNamesDifferent +insert_mlir(module& m, instruction_ref, code_object_op co, const std::vector&) +{ + use(co); + return m.end(); +} + +#endif + +} // namespace gpu +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx diff --git a/src/targets/gpu/mlir_conv.cpp b/src/targets/gpu/mlir_conv.cpp deleted file mode 100644 index c49887a7e..000000000 --- a/src/targets/gpu/mlir_conv.cpp +++ /dev/null @@ -1,315 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. - * - * 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. - */ -#include -#include -#include -#include - -#include - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#ifdef MIGRAPHX_MLIR_MIOPEN_SUPPORT -#include -#endif // MIGRAPHX_MLIR_MIOPEN_SUPPORT - -#include - -namespace migraphx { -inline namespace MIGRAPHX_INLINE_NS { -namespace gpu { - -struct mlir_apply -{ - module* mod = nullptr; - const mlir_conv* pass = nullptr; - - const char* mlir_kernel_name = "migraphx_conv2d"; - - std::unordered_map literal_map{}; - - struct execution_spec - { - migraphx::value::binary binary; - size_t global_size; - size_t local_size; - execution_spec(migraphx::value::binary&& binary_m, size_t global_s, size_t local_s) - : binary(std::move(binary_m)), global_size(global_s), local_size(local_s) - { - } - }; - - std::unordered_map> binary_map{}; - - context& get_context() const - { - assert(pass != nullptr); - assert(pass->ctx != nullptr); - return *pass->ctx; - } - - void init() const - { - assert(mod != nullptr); - assert(pass != nullptr); - } - - std::shared_ptr make_mlir_binary(instruction_ref op_r) - { - std::shared_ptr result; - -#ifdef MIGRAPHX_MLIR_MIOPEN_SUPPORT - auto conv = any_cast(op_r->get_operator()); - auto inp_t = op_r->inputs().at(0)->get_shape(); - auto flt_t = op_r->inputs().at(1)->get_shape(); - auto out_t = op_r->get_shape(); - - auto get_type_str = [](const shape& s) -> const char* { - switch(s.type()) - { - case shape::float_type: return "f32"; - case shape::half_type: return "f16"; - case shape::bool_type: - case shape::double_type: - case shape::uint8_type: - case shape::int8_type: - case shape::uint16_type: - case shape::int16_type: - case shape::int32_type: - case shape::int64_type: - case shape::uint32_type: - case shape::uint64_type: - case shape::tuple_type: break; - } - return nullptr; - }; - - const auto* inp_t_s = get_type_str(inp_t); - const auto* flt_t_s = get_type_str(flt_t); - const auto* out_t_s = get_type_str(out_t); - - if(out_t_s == nullptr || inp_t_s == nullptr || flt_t_s == nullptr) - return result; - - std::string mlir_options = "--kernel_name " + std::string(mlir_kernel_name); - - // platform spec - auto& device = get_context().get_current_device(); - char dev_name[64]; - sprintf(dev_name, "gfx%lu%02lu", device.get_device_major(), device.get_device_minor()); - mlir_options += " --arch " + std::string(dev_name) + " --num_cu " + - std::to_string(device.get_cu_count()); // ??? - - // Conv spec - mlir_options += - " --operation " - "conv2d" - " --batchsize " + - std::to_string(conv.group) + " --groupsize " + std::to_string(1) + " --padding_h " + - std::to_string(conv.padding[0]) + " --padding_w " + std::to_string(conv.padding[1]) + - " --conv_stride_h " + std::to_string(conv.stride[0]) + " --conv_stride_w " + - std::to_string(conv.stride[1]) + " --dilation_h " + std::to_string(conv.dilation[0]) + - " --dilation_w " + std::to_string(conv.dilation[1]); - - // Input spec - mlir_options += " --in_layout " - "NCHWG" - " --in_type " + - std::string(inp_t_s) + " --in_channels " + std::to_string(inp_t.lens()[1]) + - " --in_h " + std::to_string(inp_t.lens()[2]) + " --in_w " + - std::to_string(inp_t.lens()[3]); - - // Filter spec - mlir_options += " --fil_layout " - "NCHWG" - " --fil_type " + - std::string(flt_t_s) + " --fil_h " + std::to_string(flt_t.lens()[2]) + - " --fil_w " + std::to_string(flt_t.lens()[3]); - - // Output spec - mlir_options += " --out_layout " - "NCHWG" - " --out_type " + - std::string(out_t_s) + " --out_channels " + - std::to_string(out_t.lens()[1]) + " --out_h " + - std::to_string(out_t.lens()[2]) + " --out_w " + - std::to_string(out_t.lens()[3]); - - auto bin_i = binary_map.find(mlir_options); - if(bin_i == binary_map.end()) - { - size_t bin_size = 0; - - using mlir_handle = MIGRAPHX_MANAGE_PTR(MiirHandle, miirDestroyHandle); - auto handle = mlir_handle(miirCreateHandle(mlir_options.c_str())); - - if(miirLowerBin(handle.get()) == MIIR_SUCCESS && - miirBufferGet(handle.get(), nullptr, &bin_size) == MIIR_SUCCESS) - { - migraphx::value::binary bin(bin_size); - if(miirBufferGet(handle.get(), reinterpret_cast(bin.data()), &bin_size) == - MIIR_SUCCESS) - { - size_t global_size; - size_t block_size; - if(miirGetExecutionDims(handle.get(), &global_size, &block_size) == - MIIR_SUCCESS) - { - result = std::make_shared( - std::move(bin), global_size, block_size); - } - } - } - - binary_map[mlir_options] = result; - } - else - { - result = bin_i->second; - } -#else // MIGRAPHX_MLIR_MIOPEN_SUPPORT - (void)op_r; -#endif // MIGRAPHX_MLIR_MIOPEN_SUPPORT - return result; - } - - instruction_ref get_literal(uint64_t value) - { - auto fi = literal_map.find(value); - if(fi != literal_map.end()) - return fi->second; - auto lit = mod->add_literal(value); - literal_map.emplace(value, lit); - return lit; - } - - operation make_code_object_op(instruction_ref op_r, const std::shared_ptr& spec) - { - // each pointer is expanded out to a MemRefDescriptor - auto inp_t = op_r->inputs().at(0)->get_shape(); - auto flt_t = op_r->inputs().at(1)->get_shape(); - auto out_t = op_r->get_shape(); - - auto i64 = shape(shape::uint64_type); - - std::vector expected_inputs = { - flt_t, flt_t, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, inp_t, - inp_t, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, out_t, out_t, - i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, out_t}; - - return migraphx::make_op("gpu::code_object", - { - {"code_object", spec->binary}, - {"symbol_name", mlir_kernel_name}, - {"global", spec->global_size}, - {"local", spec->local_size}, - {"expected_inputs", migraphx::to_value(expected_inputs)}, - {"output", migraphx::to_value(out_t)}, - }); - } - - void add_memref_descriptor(std::vector& refs, instruction_ref inst) - { - const size_t offset = 0; - auto inst_t = inst->get_shape(); - refs.push_back(inst); - refs.push_back(inst); - refs.push_back(get_literal(offset)); // offset - - // dim sizes - std::transform(inst_t.lens().begin(), - inst_t.lens().end(), - std::back_inserter(refs), - [&](const auto& lval) { return get_literal(lval); }); - refs.push_back(get_literal(1)); // G - - // dim strides - std::transform(inst_t.strides().begin(), - inst_t.strides().end(), - std::back_inserter(refs), - [&](const auto& lval) { return get_literal(lval); }); - refs.push_back(get_literal(1)); // G - } - - instruction_ref insert_allocation(instruction_ref ins, const shape& s) const - { - return mod->insert_instruction(ins, hip_allocate{s}); - } - - void replace_conv_op(instruction_ref ins) - { - auto conv_bin = make_mlir_binary(ins); - if(conv_bin) - { - auto conv = make_code_object_op(ins, conv_bin); - - auto inp = ins->inputs().at(0); - auto flt = ins->inputs().at(1); - auto out = insert_allocation(ins, ins->get_shape()); - - std::vector refs; - refs.reserve(3 * 13 + 1); - add_memref_descriptor(refs, flt); - add_memref_descriptor(refs, inp); - add_memref_descriptor(refs, out); - refs.push_back(out); - - mod->replace_instruction(ins, conv, refs); - } - } - - void apply() - { - init(); - for(auto it : iterator_for(*mod)) - { - if(it->name() == "convolution") - { - replace_conv_op(it); - } - } - } -}; - -void mlir_conv::apply(module& m) const { mlir_apply{&m, this}.apply(); } - -} // namespace gpu -} // namespace MIGRAPHX_INLINE_NS -} // namespace migraphx diff --git a/src/targets/gpu/target.cpp b/src/targets/gpu/target.cpp index cdef5c7cf..c941fd023 100644 --- a/src/targets/gpu/target.cpp +++ b/src/targets/gpu/target.cpp @@ -53,10 +53,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include @@ -128,7 +128,8 @@ std::vector target::get_passes(migraphx::context& gctx, const compile_opti dead_code_elimination{}, enable_pass(not enabled(MIGRAPHX_DISABLE_POINTWISE_FUSION{}), fuse_pointwise{}), dead_code_elimination{}, - mlir_conv{&ctx}, + fuse_mlir{&ctx}, + dead_code_elimination{}, lowering{&ctx, options.offload_copy}, eliminate_contiguous{"gpu::contiguous"}, dead_code_elimination{}, diff --git a/test/gpu/mlir.cpp b/test/gpu/mlir.cpp new file mode 100644 index 000000000..0d71ca558 --- /dev/null +++ b/test/gpu/mlir.cpp @@ -0,0 +1,194 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using migraphx::trim; + +// m test_gpu_mlir && ./bin/test_gpu_mlir + +struct mlir_gpu_target : migraphx::gpu::target +{ + std::string name() const { return "mlir"; } + std::vector get_passes(migraphx::context& gctx, + const migraphx::compile_options&) const + { + auto& ctx = migraphx::any_cast(gctx); + return {migraphx::gpu::write_literals{&ctx}}; + } +}; + +std::string encode(const std::string& s) +{ + std::stringstream ss; + bool prespace = false; + for(auto c : s) + { + if(std::isspace(c) != 0) + { + if(not prespace) + ss << " "; + prespace = true; + } + else if(std::isprint(c) != 0) + { + ss << c; + prespace = false; + } + } + return migraphx::trim(ss.str()); +} + +migraphx::program create_program_from_mlir(const migraphx::module& mmlir) +{ + migraphx::program p; + auto* mm = p.get_main_module(); + auto names = mmlir.get_parameter_names(); + std::vector inputs; + std::transform(names.begin(), names.end(), std::back_inserter(inputs), [&](const auto& name) { + return mm->add_parameter(name, mmlir.get_parameter_shape(name)); + }); + std::sort(inputs.begin(), inputs.end(), migraphx::by(std::less<>{}, [](auto ins) { + return to_string(ins->get_operator()); + })); + inputs.push_back(mm->add_parameter("output", mmlir.get_output_shapes().front())); + + migraphx::gpu::context ctx; + migraphx::gpu::insert_mlir(*mm, mm->end(), compile_mlir(ctx, mmlir), inputs); + return p; +} + +migraphx::parameter_map generate_params(const migraphx::program& p) +{ + migraphx::parameter_map m; + std::size_t i = 0; + for(auto&& x : p.get_parameter_shapes()) + { + // m[x.first] = migraphx::fill_argument(x.second, 1); + m[x.first] = migraphx::generate_argument(x.second, i++); + } + return m; +} + +migraphx::argument run_gpu(migraphx::program p, const migraphx::parameter_map& inputs) +{ + mlir_gpu_target t; + p.compile(t); + migraphx::parameter_map m; + for(auto&& input : inputs) + { + m[input.first] = t.copy_to(input.second); + } + for(auto&& x : p.get_parameter_shapes()) + { + if(m.count(x.first) == 0) + { + m[x.first] = t.allocate(x.second); + } + } + return t.copy_from(p.eval(m).front()); +} + +migraphx::argument run_ref(migraphx::program p, const migraphx::parameter_map& inputs) +{ + p.compile(migraphx::ref::target{}); + return p.eval(inputs).front(); +} + +bool verify_mlir(const migraphx::module& mmlir) +{ + migraphx::program ref; + ref.get_main_module()->insert_instructions(ref.get_main_module()->end(), &mmlir); + + auto inputs = generate_params(ref); + + auto mlir = create_program_from_mlir(mmlir); + return migraphx::verify_args("mlir", run_ref(ref, inputs), run_gpu(mlir, inputs)); +} + +TEST_CASE(conv) +{ + const std::string mlir_output = R"__migraphx__( +module { + func @main(%arg0: tensor<2x8x3x3xf32>, %arg1: tensor<1x8x4x4xf32>) -> tensor<1x2x2x2xf32> attributes {kernel = "mixr"} { + %0 = migraphx.convolution(%arg1, %arg0) {dilation = [1, 1], group = 1 : i64, padding = [0, 0, 0, 0], padding_mode = 0 : i64, stride = [1, 1]} : (tensor<1x8x4x4xf32>, tensor<2x8x3x3xf32>) -> tensor<1x2x2x2xf32> + return %0 : tensor<1x2x2x2xf32> + } +} +)__migraphx__"; + migraphx::module m; + auto x = m.add_parameter("x", {migraphx::shape::float_type, {1, 8, 4, 4}}); + auto w = m.add_parameter("w", {migraphx::shape::float_type, {2, 8, 3, 3}}); + auto conv = m.add_instruction(migraphx::make_op("convolution"), x, w); + m.add_return({conv}); + auto s = migraphx::gpu::dump_mlir(m); + // Skip test if MLIR is not enabled + if(s.empty()) + return; + CHECK(encode(s) == encode(mlir_output)); + EXPECT(verify_mlir(m)); +} + +TEST_CASE(conv_add_relu) +{ + const std::string mlir_output = R"__migraphx__( +module { + func @main(%arg0: tensor<1x2x2x2xf32>, %arg1: tensor<2x8x3x3xf32>, %arg2: tensor<1x8x4x4xf32>) -> tensor<1x2x2x2xf32> attributes {kernel = "mixr"} { + %0 = migraphx.convolution(%arg2, %arg1) {dilation = [1, 1], group = 1 : i64, padding = [0, 0, 0, 0], padding_mode = 0 : i64, stride = [1, 1]} : (tensor<1x8x4x4xf32>, tensor<2x8x3x3xf32>) -> tensor<1x2x2x2xf32> + %1 = migraphx.add(%0, %arg0) : (tensor<1x2x2x2xf32>, tensor<1x2x2x2xf32>) -> tensor<1x2x2x2xf32> + %2 = migraphx.relu(%1) : (tensor<1x2x2x2xf32>) -> tensor<1x2x2x2xf32> + return %2 : tensor<1x2x2x2xf32> + } +} +)__migraphx__"; + migraphx::module m; + auto x = m.add_parameter("x", {migraphx::shape::float_type, {1, 8, 4, 4}}); + auto w = m.add_parameter("w", {migraphx::shape::float_type, {2, 8, 3, 3}}); + auto b = m.add_parameter("b", {migraphx::shape::float_type, {1, 2, 2, 2}}); + auto conv = m.add_instruction(migraphx::make_op("convolution"), x, w); + auto add = m.add_instruction(migraphx::make_op("add"), conv, b); + auto relu = m.add_instruction(migraphx::make_op("relu"), add); + m.add_return({relu}); + auto s = migraphx::gpu::dump_mlir(m); + // Skip test if MLIR is not enabled + if(s.empty()) + return; + CHECK(encode(s) == encode(mlir_output)); + EXPECT(verify_mlir(m)); +} + +int main(int argc, const char* argv[]) { test::run(argc, argv); } -- GitLab From 32e62f928c7770c0e9eaffd99fda427bb165126e Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 3 Jul 2022 13:04:33 -0500 Subject: [PATCH 24/32] Rename test --- test/op_shape_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/op_shape_test.cpp b/test/op_shape_test.cpp index 7d4c9ee1c..4dd66d687 100644 --- a/test/op_shape_test.cpp +++ b/test/op_shape_test.cpp @@ -1528,7 +1528,7 @@ TEST_CASE(test_unsqueeze_step_non_divisable) throws_shape(migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {2}}}), s1); } -TEST_CASE(test_unsqueeze_step_non_zero) +TEST_CASE(test_unsqueeze_step_zero) { migraphx::shape s1{migraphx::shape::float_type, {4, 5, 12}}; throws_shape(migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {0}}}), s1); -- GitLab From 8c756ffc5d9705fd298c8ade0c6c5f8246577697 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 3 Jul 2022 13:17:37 -0500 Subject: [PATCH 25/32] Add tests for different steps and axes size --- src/include/migraphx/op/unsqueeze.hpp | 3 +++ test/op_shape_test.cpp | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/include/migraphx/op/unsqueeze.hpp b/src/include/migraphx/op/unsqueeze.hpp index 46e621a79..3cb7f4754 100644 --- a/src/include/migraphx/op/unsqueeze.hpp +++ b/src/include/migraphx/op/unsqueeze.hpp @@ -51,6 +51,9 @@ struct unsqueeze MIGRAPHX_THROW("UNSQUEEZE: Input must be a scalar"); } + if (steps.size() > axes.size()) + MIGRAPHX_THROW("UNSQUEEZE: Steps provided with no axis"); + std::size_t new_size = old_lens.size() + axes.size(); std::vector new_lens(new_size); diff --git a/test/op_shape_test.cpp b/test/op_shape_test.cpp index 4dd66d687..221a0ad1d 100644 --- a/test/op_shape_test.cpp +++ b/test/op_shape_test.cpp @@ -1540,6 +1540,12 @@ TEST_CASE(test_unsqueeze_step_at_end) throws_shape(migraphx::make_op("unsqueeze", {{"axes", {3}}, {"steps", {2}}}), s1); } +TEST_CASE(test_unsqueeze_mismatch_step_axis) +{ + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 12}}; + throws_shape(migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {2, 3}}}), s1); +} + TEST_CASE(test_unsqueeze_negative_axis) { migraphx::shape s1{migraphx::shape::float_type, {4, 5, 3}}; @@ -1636,6 +1642,13 @@ TEST_CASE(test_unsqueeze_multiple_axes_4) expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {5, 4, 2}}}), s1); } +TEST_CASE(test_unsqueeze_multiple_axes_step) +{ + migraphx::shape s1{migraphx::shape::float_type, {3, 4, 10}}; + migraphx::shape s2{migraphx::shape::float_type, {3, 4, 2, 5, 1, 1}}; + expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2, 4, 5}}, {"steps", {2}}}), s1); +} + TEST_CASE(transpose_shape) { migraphx::shape input{migraphx::shape::float_type, {2, 2}}; -- GitLab From d6f13dd47a521c1f399161be0576a7358e73f7da Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 3 Jul 2022 13:17:44 -0500 Subject: [PATCH 26/32] Format --- src/include/migraphx/op/unsqueeze.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/migraphx/op/unsqueeze.hpp b/src/include/migraphx/op/unsqueeze.hpp index 3cb7f4754..529510c1a 100644 --- a/src/include/migraphx/op/unsqueeze.hpp +++ b/src/include/migraphx/op/unsqueeze.hpp @@ -51,7 +51,7 @@ struct unsqueeze MIGRAPHX_THROW("UNSQUEEZE: Input must be a scalar"); } - if (steps.size() > axes.size()) + if(steps.size() > axes.size()) MIGRAPHX_THROW("UNSQUEEZE: Steps provided with no axis"); std::size_t new_size = old_lens.size() + axes.size(); -- GitLab From 9c6eab14c1759448ebcfcef8cf3b7ff5154750bc Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 3 Jul 2022 14:01:14 -0500 Subject: [PATCH 27/32] Fix concat transpose --- src/simplify_reshapes.cpp | 2 +- test/simplify_reshapes_test.cpp | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/simplify_reshapes.cpp b/src/simplify_reshapes.cpp index c4ad42603..4156cae80 100644 --- a/src/simplify_reshapes.cpp +++ b/src/simplify_reshapes.cpp @@ -249,7 +249,7 @@ struct find_concat_transpose { auto matcher() const { - return match::name("concat")(match::all_of[match::inputs()](match::transpose_shape())); + return match::name("concat")(match::all_of[match::inputs()](match::name("transpose"))); } void apply(module& m, const match::matcher_result& mr) const diff --git a/test/simplify_reshapes_test.cpp b/test/simplify_reshapes_test.cpp index 56fe8216b..15de29a43 100644 --- a/test/simplify_reshapes_test.cpp +++ b/test/simplify_reshapes_test.cpp @@ -1118,4 +1118,37 @@ TEST_CASE(transpose_contiguous_reshape_binary_broadcast) EXPECT(m1 == m2); } +TEST_CASE(transpose_unsqueeze_concat) +{ + migraphx::module m1; + { + auto l0 = m1.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); + auto lt0 = + m1.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), l0); + auto l1 = m1.add_parameter("1", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); + auto lt1 = + m1.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), l1); + auto l2 = m1.add_parameter("2", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); + auto lt2 = + m1.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), l2); + std::vector args{lt0, lt1, lt2}; + std::vector unsqueezed_args; + int64_t axis = 3; + + std::transform(args.begin(), + args.end(), + std::back_inserter(unsqueezed_args), + [&](migraphx::instruction_ref arg) { + return m1.add_instruction( + migraphx::make_op("unsqueeze", {{"axes", {axis}}}), arg); + }); + m1.add_instruction(migraphx::make_op("concat", {{"axis", axis}}), + unsqueezed_args); + } + // TODO: This could be simplified to a single transpose after concat + migraphx::module m2 = m1; + run_pass(m1); + EXPECT(m1 == m2); +} + int main(int argc, const char* argv[]) { test::run(argc, argv); } -- GitLab From 18e0c3fb1faa8abf953683517d75ed798f3856d5 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 3 Jul 2022 14:01:20 -0500 Subject: [PATCH 28/32] Format --- test/simplify_reshapes_test.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/test/simplify_reshapes_test.cpp b/test/simplify_reshapes_test.cpp index 15de29a43..7bf00907f 100644 --- a/test/simplify_reshapes_test.cpp +++ b/test/simplify_reshapes_test.cpp @@ -1122,7 +1122,7 @@ TEST_CASE(transpose_unsqueeze_concat) { migraphx::module m1; { - auto l0 = m1.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); + auto l0 = m1.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); auto lt0 = m1.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), l0); auto l1 = m1.add_parameter("1", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); @@ -1135,15 +1135,14 @@ TEST_CASE(transpose_unsqueeze_concat) std::vector unsqueezed_args; int64_t axis = 3; - std::transform(args.begin(), - args.end(), - std::back_inserter(unsqueezed_args), - [&](migraphx::instruction_ref arg) { - return m1.add_instruction( - migraphx::make_op("unsqueeze", {{"axes", {axis}}}), arg); - }); - m1.add_instruction(migraphx::make_op("concat", {{"axis", axis}}), - unsqueezed_args); + std::transform( + args.begin(), + args.end(), + std::back_inserter(unsqueezed_args), + [&](migraphx::instruction_ref arg) { + return m1.add_instruction(migraphx::make_op("unsqueeze", {{"axes", {axis}}}), arg); + }); + m1.add_instruction(migraphx::make_op("concat", {{"axis", axis}}), unsqueezed_args); } // TODO: This could be simplified to a single transpose after concat migraphx::module m2 = m1; -- GitLab From 27e980c4058690c3ab1376d055eef42e6a5ebf0a Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Tue, 5 Jul 2022 13:17:43 -0500 Subject: [PATCH 29/32] Horizontally fuse contiguous operators (#1232) This reorders the transposes across slice to improve horizontal fusion for contiguous. This also improves eliminate_contiguous to remove contiguous better across splits. --- src/eliminate_contiguous.cpp | 54 ++++++++++----- src/simplify_reshapes.cpp | 64 ++++++++++++++++++ test/eliminate_contiguous_test.cpp | 20 ++++++ test/simplify_reshapes_test.cpp | 102 +++++++++++++++++++++++++++++ 4 files changed, 222 insertions(+), 18 deletions(-) diff --git a/src/eliminate_contiguous.cpp b/src/eliminate_contiguous.cpp index fd21f2b32..7a0242b04 100644 --- a/src/eliminate_contiguous.cpp +++ b/src/eliminate_contiguous.cpp @@ -93,9 +93,11 @@ static bool try_compute_shape(instruction_ref ins, return try_compute_shape(ins, inputs, mods); } -void eliminate_contiguous::apply(module& m) const +template +static void remove_contiguous(const std::string& op_name, module& m, F f) { - std::vector const_instruction; + auto last = std::prev(m.end()); + std::vector const_instructions; for(auto ins : iterator_for(m)) { @@ -103,6 +105,12 @@ void eliminate_contiguous::apply(module& m) const if(ins->name() == "@return") continue; + if(ins != last and ins->outputs().empty()) + continue; + + if(not f(ins)) + continue; + // Make a copy so we can modify it while we iterate auto args = ins->inputs(); auto new_args = args; @@ -110,36 +118,46 @@ void eliminate_contiguous::apply(module& m) const for(auto arg : ins->inputs()) { - if(arg->name() == op_name) + if(arg->name() != op_name) + continue; + auto prev = arg->inputs().front(); + replace(new_args, arg, prev); + if(try_compute_shape(ins, new_args, mod_args)) + { + instruction::replace_argument(ins, arg, prev); + } + else if(prev->can_eval()) { - auto prev = arg->inputs().front(); - replace(new_args, arg, prev); - if(try_compute_shape(ins, new_args, mod_args)) - { - instruction::replace_argument(ins, arg, prev); - } - else if(prev->can_eval()) - { - const_instruction.push_back(arg); - } + const_instructions.push_back(arg); } } } // Perform evaluations in parallel - std::vector literals(const_instruction.size()); - par_for(const_instruction.size(), 1, [&](const auto i) { + std::vector literals(const_instructions.size()); + par_for(const_instructions.size(), 1, [&](const auto i) { auto c = op::contiguous{}; - auto prev = const_instruction[i]->inputs().front(); + auto prev = const_instructions[i]->inputs().front(); literals[i] = c.compute(c.compute_shape({prev->get_shape()}), {prev->eval()}); }); - for(size_t i = 0; i < const_instruction.size(); i++) + for(size_t i = 0; i < const_instructions.size(); i++) { auto l = m.add_literal(literals[i].get_shape(), literals[i].data()); - m.replace_instruction(const_instruction[i], l); + m.replace_instruction(const_instructions[i], l); } } +void eliminate_contiguous::apply(module& m) const +{ + // Skip contiguous from splits first + remove_contiguous(op_name, m, [](auto ins) { + if(ins->name() != "slice") + return true; + return (ins->inputs().front()->outputs().size() == 1); + }); + remove_contiguous(op_name, m, [](auto) { return true; }); +} + } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx diff --git a/src/simplify_reshapes.cpp b/src/simplify_reshapes.cpp index cbbc1baa3..ff2c90f6d 100644 --- a/src/simplify_reshapes.cpp +++ b/src/simplify_reshapes.cpp @@ -601,6 +601,69 @@ struct find_transpose_contiguous_reshaper_unary } }; +struct find_slice_transpose +{ + auto matcher() const + { + return match::any(match::any_of[match::outputs()]( + match::name("slice")(match::output(match::name("transpose"))))); + } + + static std::vector find_common_perm(const std::vector& transposes) + { + std::map, int64_t> count; + for(auto t : transposes) + { + auto perm = t->get_operator().to_value()["permutation"].to_vector(); + count[perm]++; + } + return std::max_element( + count.begin(), count.end(), by(std::less<>{}, [](auto&& p) { return p.second; })) + ->first; + } + + void apply(module& m, const match::matcher_result& r) const + { + auto ins = r.result; + std::vector splits; + std::copy_if(ins->outputs().begin(), + ins->outputs().end(), + std::back_inserter(splits), + [&](instruction_ref out) { + return out->name() == "slice" and out->outputs().size() == 1 and + out->outputs().front()->name() == "transpose"; + }); + if(splits.size() < 2) + return; + std::vector transposes; + std::transform(splits.begin(), + splits.end(), + std::back_inserter(transposes), + [](auto split) { return split->outputs().front(); }); + auto perm = find_common_perm(transposes); + auto iperm = invert_permutation(perm); + auto pre = m.insert_instruction( + std::next(ins), make_op("transpose", {{"permutation", perm}}), ins); + for(auto i : range(transposes.size())) + { + auto split = splits[i]; + auto t = transposes[i]; + auto op = any_cast(split->get_operator()); + std::transform(op.axes.begin(), op.axes.end(), op.axes.begin(), [&](auto axis) { + return iperm[axis]; + }); + auto new_ins = m.insert_instruction(t, op, pre); + if(t->get_operator() != pre->get_operator()) + { + auto curr = t->get_operator().to_value()["permutation"].to_vector(); + new_ins = m.insert_instruction( + t, make_op("transpose", {{"permutation", reorder_dims(iperm, curr)}}), new_ins); + } + m.replace_instruction(t, new_ins); + } + } +}; + void simplify_reshapes::apply(module& m) const { for(int i = 0; i < 2; i++) @@ -616,6 +679,7 @@ void simplify_reshapes::apply(module& m) const find_nested_convert{}, find_nested_slice{}, find_nested_concat{}, + find_slice_transpose{}, find_transpose_contiguous_reshaper_unary{}); dead_code_elimination{}.apply(m); } diff --git a/test/eliminate_contiguous_test.cpp b/test/eliminate_contiguous_test.cpp index a3bc43c74..5b5e48310 100644 --- a/test/eliminate_contiguous_test.cpp +++ b/test/eliminate_contiguous_test.cpp @@ -205,4 +205,24 @@ TEST_CASE(contiguous_pointwise) mm->begin(), mm->end(), [](auto&& ins) { return ins.name() == "contiguous"; })); } +TEST_CASE(slice_contiguous) +{ + migraphx::module m; + + migraphx::shape s{migraphx::shape::float_type, {4, 2}}; + auto x = m.add_parameter("x", s); + auto t = m.add_instruction(migraphx::make_op("transpose", {{"permutation", {1, 0}}}), x); + auto c = m.add_instruction(migraphx::make_op("contiguous"), t); + auto s1 = m.add_instruction( + migraphx::make_op("slice", {{"axes", {0}}, {"starts", {0}}, {"ends", {1}}}), c); + auto s2 = m.add_instruction( + migraphx::make_op("slice", {{"axes", {0}}, {"starts", {1}}, {"ends", {2}}}), c); + auto c1 = m.add_instruction(migraphx::make_op("contiguous"), s1); + auto c2 = m.add_instruction(migraphx::make_op("contiguous"), s2); + m.add_instruction(pass_standard_op{}, c1, c2); + run_pass(m); + EXPECT(std::count_if( + m.begin(), m.end(), [](auto&& ins) { return ins.name() == "contiguous"; }) == 1); +} + int main(int argc, const char* argv[]) { test::run(argc, argv); } diff --git a/test/simplify_reshapes_test.cpp b/test/simplify_reshapes_test.cpp index 7753f61e2..df8561e98 100644 --- a/test/simplify_reshapes_test.cpp +++ b/test/simplify_reshapes_test.cpp @@ -1141,4 +1141,106 @@ TEST_CASE(transpose_contiguous_reshape_binary_broadcast) EXPECT(m1 == m2); } +TEST_CASE(transpose_slice) +{ + migraphx::module m1; + { + auto x = m1.add_parameter("x", {migraphx::shape::float_type, {1, 384, 36, 64}}); + auto slice1 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {0}}, {"ends", {12}}}), x); + auto transpose1 = m1.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), slice1); + auto slice2 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {12}}, {"ends", {24}}}), x); + auto transpose2 = m1.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), slice2); + auto slice3 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {24}}, {"ends", {36}}}), x); + auto transpose3 = m1.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), slice3); + m1.add_return({transpose1, transpose2, transpose3}); + } + run_pass(m1); + migraphx::module m2; + { + auto x = m2.add_parameter("x", {migraphx::shape::float_type, {1, 384, 36, 64}}); + auto transpose = + m2.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), x); + auto slice1 = m2.add_instruction( + migraphx::make_op("slice", {{"axes", {1}}, {"starts", {0}}, {"ends", {12}}}), + transpose); + auto slice2 = m2.add_instruction( + migraphx::make_op("slice", {{"axes", {1}}, {"starts", {12}}, {"ends", {24}}}), + transpose); + auto slice3 = m2.add_instruction( + migraphx::make_op("slice", {{"axes", {1}}, {"starts", {24}}, {"ends", {36}}}), + transpose); + m2.add_return({slice1, slice2, slice3}); + } + EXPECT(m1 == m2); +} + +TEST_CASE(transpose_slice_diff_perm) +{ + migraphx::module m1; + { + auto x = m1.add_parameter("x", {migraphx::shape::float_type, {1, 384, 36, 64}}); + auto slice1 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {0}}, {"ends", {12}}}), x); + auto transpose1 = m1.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), slice1); + auto slice2 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {12}}, {"ends", {24}}}), x); + auto transpose2 = m1.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), slice2); + auto slice3 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {24}}, {"ends", {36}}}), x); + auto transpose3 = m1.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), slice3); + m1.add_return({transpose1, transpose2, transpose3}); + } + run_pass(m1); + migraphx::module m2; + { + auto x = m2.add_parameter("x", {migraphx::shape::float_type, {1, 384, 36, 64}}); + auto transpose = + m2.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), x); + auto slice1 = m2.add_instruction( + migraphx::make_op("slice", {{"axes", {1}}, {"starts", {0}}, {"ends", {12}}}), + transpose); + auto slice2 = m2.add_instruction( + migraphx::make_op("slice", {{"axes", {1}}, {"starts", {12}}, {"ends", {24}}}), + transpose); + auto transpose2 = m2.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 1, 3, 2}}}), slice2); + auto slice3 = m2.add_instruction( + migraphx::make_op("slice", {{"axes", {1}}, {"starts", {24}}, {"ends", {36}}}), + transpose); + m2.add_return({slice1, transpose2, slice3}); + } + EXPECT(m1 == m2); +} + +TEST_CASE(transpose_slice_single_transpose) +{ + migraphx::module m1; + { + auto x = m1.add_parameter("x", {migraphx::shape::float_type, {1, 384, 36, 64}}); + auto slice1 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {0}}, {"ends", {12}}}), x); + auto sqrt1 = m1.add_instruction(migraphx::make_op("sqrt"), slice1); + auto slice2 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {12}}, {"ends", {24}}}), x); + auto transpose = m1.add_instruction( + migraphx::make_op("transpose", {{"permutation", {0, 2, 1, 3}}}), slice2); + auto slice3 = m1.add_instruction( + migraphx::make_op("slice", {{"axes", {2}}, {"starts", {24}}, {"ends", {36}}}), x); + auto sqrt3 = m1.add_instruction(migraphx::make_op("sqrt"), slice3); + m1.add_return({sqrt1, transpose, sqrt3}); + } + migraphx::module m2 = m1; + run_pass(m1); + EXPECT(m1 == m2); +} + int main(int argc, const char* argv[]) { test::run(argc, argv); } -- GitLab From 8520e0b89ce8f30535e09b5cdce3ad499a3c3a87 Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Tue, 5 Jul 2022 18:33:14 -0500 Subject: [PATCH 30/32] Add jit softmax (#1243) * Add softmax kernel --- src/targets/gpu/compile_gen.cpp | 3 + src/targets/gpu/jit/softmax.cpp | 107 ++++++++++++++++++ .../include/migraphx/kernels/array.hpp | 8 ++ .../include/migraphx/kernels/functional.hpp | 2 +- .../include/migraphx/kernels/reduce.hpp | 34 ++++++ .../include/migraphx/kernels/shape.hpp | 1 + .../include/migraphx/kernels/softmax.hpp | 45 ++++++++ .../kernels/include/migraphx/kernels/vec.hpp | 2 + src/targets/gpu/lowering.cpp | 1 - 9 files changed, 201 insertions(+), 2 deletions(-) create mode 100644 src/targets/gpu/jit/softmax.cpp create mode 100644 src/targets/gpu/kernels/include/migraphx/kernels/softmax.hpp diff --git a/src/targets/gpu/compile_gen.cpp b/src/targets/gpu/compile_gen.cpp index a8327e83c..89ae9b9cd 100644 --- a/src/targets/gpu/compile_gen.cpp +++ b/src/targets/gpu/compile_gen.cpp @@ -43,6 +43,9 @@ static std::vector vector_sizes(const std::vector& inputs) vectorize vectorize::elements(std::size_t axis, const std::vector& inputs) { + if(std::all_of( + inputs.begin(), inputs.end(), [&](const auto& s) { return s.lens()[axis] == 1; })) + return {1, axis}; auto sizes = vector_sizes(inputs); std::vector max_vec_size; std::transform(inputs.begin(), diff --git a/src/targets/gpu/jit/softmax.cpp b/src/targets/gpu/jit/softmax.cpp new file mode 100644 index 000000000..09b556de2 --- /dev/null +++ b/src/targets/gpu/jit/softmax.cpp @@ -0,0 +1,107 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +namespace migraphx { +inline namespace MIGRAPHX_INLINE_NS { +namespace gpu { + +using namespace migraphx::gpu::gen; // NOLINT + +static const char* const softmax_kernel = R"__migraphx__( +#include +#include +#include +#include + +namespace migraphx { + +extern "C" { +__global__ void softmax_kernel(void* input_p, void* output_p) +{ + transform_args(make_tensors(), ${transformers})(input_p, output_p)([](auto input, auto output) { + softmax<${axis}>(input, output); + }); +} + +} + +} // namespace migraphx + +)__migraphx__"; + +struct softmax_compiler : compiler +{ + std::vector names() const { return {"softmax"}; } + + operation compile_op(context& ctx, const std::vector& inputs, const value& v) const + { + // TODO: Use reduce_dims + auto axis = v.at("axis").to(); + auto faxis = find_fast_axis({inputs.front()}); + vectorize vec{}; + // Vectorize if the axis is a reduction axis + if(faxis == axis) + { + vec = vectorize::elements(faxis, inputs); + } + auto relements = inputs[0].lens()[axis] / vec.size; + auto nelements = (inputs.back().elements() / inputs[0].lens()[axis]); + auto block_size = compute_block_size(relements, 256); + hip_compile_options options; + options.set_launch_params( + v, compute_global_for(ctx, nelements * block_size, 256), block_size); + options.output = inputs.back(); + options.inputs = inputs; + options.kernel_name = "softmax_kernel"; + + auto src = interpolate_string( + softmax_kernel, + {{"transformers", make_transformer_args(vec)}, {"axis", to_string(axis)}}); + + return compile_hip_code_object(src, options); + } + + compiler_replace compile(context& ctx, instruction_ref ins, const operation& op) const + { + return replace(compile_op(ctx, to_shapes(ins->inputs()), op.to_value())); + } +}; + +} // namespace gpu +} // namespace MIGRAPHX_INLINE_NS +} // namespace migraphx diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp index 584709f23..836377b1e 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/array.hpp @@ -27,6 +27,7 @@ #include #include #include +#include #include namespace migraphx { @@ -213,6 +214,13 @@ constexpr auto transform(integral_const_array, F f) return integral_const_array{}; } +template +constexpr auto transform_i(integral_const_array, F f) +{ + return sequence_c( + [=](auto... is) { return integral_const_array{}; }); +} + template constexpr auto transform(integral_const_array, integral_const_array, F f) { diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp index 35e10eff6..f89f09829 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/functional.hpp @@ -24,7 +24,7 @@ #ifndef MIGRAPHX_GUARD_KERNELS_FUNCTIONAL_HPP #define MIGRAPHX_GUARD_KERNELS_FUNCTIONAL_HPP -#include +#include // NOLINTNEXTLINE #define MIGRAPHX_RETURNS(...) \ diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp index 5110e5c7a..ee06f2ffd 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp @@ -175,6 +175,21 @@ constexpr auto sliced(Slicer slicer, F f) }; } +template +constexpr auto compute_reduce_axis() +{ + constexpr auto lens = + transform_i(get_shape_c{}.lens, [](index_int x, index_int i) -> index_int { + if(i == Axis) + return 1; + return x; + }); + return make_shape(lens, get_shape_c{}.strides); +} + +template +using with_axis = decltype(compute_reduce_axis()); + struct block { template @@ -201,6 +216,14 @@ struct block if(idx.local == 0) f(); } + + template + __device__ auto inner(F f) const + { + return sliced(slicer, [=](auto x, auto... xs) { + idx.local_stride(x.get_shape().elements(), [&](auto j) { f(x[j], xs[j]...); }); + }); + } }; template @@ -247,6 +270,17 @@ struct lane { f(); } + + template + __device__ auto inner(F f) const + { + return sliced(slicer, [=](auto x, auto... xs) { + for(index_int j = 0; j < x.get_shape().elements(); j++) + { + f(x[j], xs[j]...); + } + }); + } }; template diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp index a61bb38c2..8994f5f5c 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/shape.hpp @@ -32,6 +32,7 @@ namespace migraphx { template struct shape { + using shape_type = shape; using index_array = typename Lens::base_array; Lens lens = {}; Strides strides = {}; diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/softmax.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/softmax.hpp new file mode 100644 index 000000000..4a2a66800 --- /dev/null +++ b/src/targets/gpu/kernels/include/migraphx/kernels/softmax.hpp @@ -0,0 +1,45 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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 MIGRAPHX_GUARD_KERNELS_SOFTMAX_HPP +#define MIGRAPHX_GUARD_KERNELS_SOFTMAX_HPP + +#include +#include + +namespace migraphx { + +template +__device__ void softmax(Input input, Output output) +{ + reduce::block::run>([&](auto, auto r) { + auto batch_max = r.reduce(op::max{}, lowest{}, op::id{})(input); + auto batch_sum = + r.reduce(op::sum{}, 0, [&](auto x) { return migraphx::exp(x - batch_max); })(input); + r.inner([&](auto& y, auto x) { y = migraphx::exp(x - batch_max) / batch_sum; })(output, + input); + }); +} + +} // namespace migraphx +#endif // MIGRAPHX_GUARD_KERNELS_SOFTMAX_HPP diff --git a/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp b/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp index 8156e3507..8197a98ee 100644 --- a/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp +++ b/src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp @@ -27,6 +27,8 @@ #include #include #include +#include +#include namespace migraphx { diff --git a/src/targets/gpu/lowering.cpp b/src/targets/gpu/lowering.cpp index df1e3a66d..df1b1d063 100644 --- a/src/targets/gpu/lowering.cpp +++ b/src/targets/gpu/lowering.cpp @@ -186,7 +186,6 @@ struct miopen_apply add_extend_op("rnn_var_sl_shift_output"); add_extend_op("rnn_var_sl_shift_sequence"); add_extend_op("scatter_none"); - add_extend_op("softmax"); add_extend_op("topk"); add_batch_norm_inference_op(); -- GitLab From f2531606c266dd548fee59f242849615cab7f613 Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Tue, 5 Jul 2022 22:06:11 -0500 Subject: [PATCH 31/32] Verify load and save (#1265) *In the verification tests, check that saving and reloading the program is the same program. This also fixes serialization to always load instructions in the same order. There is also fixes for deconv and quant_conv which didn't save the solution id, and was broken for serialization. --- src/include/migraphx/module.hpp | 4 + src/module.cpp | 25 +++-- src/program.cpp | 12 ++- src/serialize.cpp | 4 +- src/targets/cpu/write_literals.cpp | 2 + src/targets/gpu/deconvolution.cpp | 99 +++++++++++++------ .../include/migraphx/gpu/deconvolution.hpp | 8 +- .../migraphx/gpu/quant_convolution.hpp | 4 +- src/targets/gpu/lowering.cpp | 4 +- src/targets/gpu/quant_convolution.cpp | 82 +++++++++++---- test/verify/run_verify.cpp | 13 +++ test/verify/test_conv_add_relu.cpp | 52 ++++++++++ 12 files changed, 235 insertions(+), 74 deletions(-) create mode 100644 test/verify/test_conv_add_relu.cpp diff --git a/src/include/migraphx/module.hpp b/src/include/migraphx/module.hpp index c1725b93c..6a1f5440a 100644 --- a/src/include/migraphx/module.hpp +++ b/src/include/migraphx/module.hpp @@ -164,6 +164,10 @@ struct module instruction_ref replace_return(std::vector args); + instruction_ref insert_literal(instruction_ref ins, literal l); + + instruction_ref insert_parameter(instruction_ref ins, std::string name, shape s); + std::vector get_parameter_names() const; shape get_parameter_shape(std::string name) const; diff --git a/src/module.cpp b/src/module.cpp index 27288a568..a299d861b 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -439,11 +439,7 @@ module::insert_instructions(instruction_ref ins, return insert_generic_instructions(*this, ins, iterator_for(r), std::move(map_ins)); } -instruction_ref module::add_literal(literal l) -{ - impl->emplace_front(std::move(l)); - return impl->instructions.begin(); -} +instruction_ref module::add_literal(literal l) { return insert_literal(begin(), std::move(l)); } instruction_ref module::add_outline(const shape& s) { @@ -453,10 +449,7 @@ instruction_ref module::add_outline(const shape& s) instruction_ref module::add_parameter(std::string name, shape s) { - assert(get_parameter_shape(name) == shape{}); - impl->push_front({builtin::param{std::move(name), impl->nparams}, std::move(s), {}}); - impl->nparams++; - return impl->instructions.begin(); + return insert_parameter(begin(), std::move(name), std::move(s)); } instruction_ref module::add_return(std::vector args) @@ -469,6 +462,20 @@ instruction_ref module::add_return(std::vector args) return result; } +instruction_ref module::insert_literal(instruction_ref ins, literal l) +{ + impl->emplace(ins, std::move(l)); + return std::prev(ins); +} + +instruction_ref module::insert_parameter(instruction_ref ins, std::string name, shape s) +{ + assert(get_parameter_shape(name) == shape{}); + impl->insert(ins, {builtin::param{std::move(name), impl->nparams}, std::move(s), {}}); + impl->nparams++; + return std::prev(ins); +} + instruction_ref module::replace_return(std::vector args) { auto last = std::prev(this->end()); diff --git a/src/program.cpp b/src/program.cpp index f16b9c1b1..3650259ec 100644 --- a/src/program.cpp +++ b/src/program.cpp @@ -504,12 +504,14 @@ static void mod_from_val(module_ref mod, if(name == "@param") { - output = mod->add_parameter(fields["parameter"].to(), - migraphx::from_value(node.at("shape"))); + output = mod->insert_parameter(mod->end(), + fields["parameter"].to(), + migraphx::from_value(node.at("shape"))); } else if(name == "@literal") { - output = mod->add_literal(migraphx::from_value(node.at("literal"))); + output = + mod->insert_literal(mod->end(), migraphx::from_value(node.at("literal"))); } else { @@ -544,11 +546,11 @@ static void mod_from_val(module_ref mod, } else if(module_inputs.empty()) { - output = mod->add_instruction(op, inputs); + output = mod->insert_instruction(mod->end(), op, inputs); } else { - output = mod->add_instruction(op, inputs, module_inputs); + output = mod->insert_instruction(mod->end(), op, inputs, module_inputs); } } output->set_normalized(normalized); diff --git a/src/serialize.cpp b/src/serialize.cpp index 8959e8edc..eff944be0 100644 --- a/src/serialize.cpp +++ b/src/serialize.cpp @@ -36,7 +36,7 @@ void raw_data_to_value(value& v, const RawData& rd) result["shape"] = migraphx::to_value(rd.get_shape()); if(rd.get_shape().type() == shape::tuple_type) result["sub"] = migraphx::to_value(rd.get_sub_objects()); - else + else if(not rd.empty()) result["data"] = migraphx::value::binary(rd.data(), rd.get_shape().bytes()); v = result; } @@ -56,7 +56,7 @@ void migraphx_from_value(const value& v, argument& a) literal l = migraphx::from_value(v); a = l.get_argument(); } - else + else if(v.contains("sub")) { a = migraphx::from_value>(v.at("sub")); } diff --git a/src/targets/cpu/write_literals.cpp b/src/targets/cpu/write_literals.cpp index d0e5f6bcd..0899df4e8 100644 --- a/src/targets/cpu/write_literals.cpp +++ b/src/targets/cpu/write_literals.cpp @@ -25,6 +25,7 @@ #include #include #include +#include namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { @@ -52,6 +53,7 @@ struct cpu_literal return os; } }; +MIGRAPHX_REGISTER_OP(cpu_literal); void write_literals::apply(module& m) const { diff --git a/src/targets/gpu/deconvolution.cpp b/src/targets/gpu/deconvolution.cpp index b2c2f16a1..3dbe63e9a 100644 --- a/src/targets/gpu/deconvolution.cpp +++ b/src/targets/gpu/deconvolution.cpp @@ -59,31 +59,30 @@ argument miopen_deconvolution::compute(context& ctx, auto w_desc = make_tensor(reshape_if_1d(args[1].get_shape())); auto y_desc = make_tensor(reshape_if_1d(output_shape)); - float alpha = 1; - float beta = 0; - auto status = miopenConvolutionForward(ctx.get_stream().get_miopen(), - &alpha, - x_desc.get(), - args[0].implicit(), - w_desc.get(), - args[1].implicit(), - cd.get(), - algo, - &beta, - y_desc.get(), - args[3].implicit(), - args[2].implicit(), - args[2].get_shape().bytes()); + if(solution_id == 0) + MIGRAPHX_THROW("MIOpen Deconvolution: invalid solution ID"); + + auto status = miopenConvolutionForwardImmediate(ctx.get_stream().get_miopen(), + w_desc.get(), + args[1].implicit(), + x_desc.get(), + args[0].implicit(), + cd.get(), + y_desc.get(), + args[3].implicit(), + args[2].implicit(), + args[2].get_shape().bytes(), + solution_id); + if(status != miopenStatusSuccess) - MIGRAPHX_THROW("Running deconvolution failed"); + MIGRAPHX_THROW("MIOpen Deconvolution: running convolution failed"); return args[3]; } -shape miopen_deconvolution::compile(context& ctx, - const shape& output_shape, - std::vector inputs) +shape miopen_deconvolution::find(context& ctx, const shape& output_shape, std::vector inputs) { shape workspace_shape{}; + auto x_desc = make_tensor(reshape_if_1d(inputs[0])); auto w_desc = make_tensor(reshape_if_1d(inputs[1])); auto y_desc = make_tensor(reshape_if_1d(output_shape)); @@ -119,9 +118,35 @@ shape miopen_deconvolution::compile(context& ctx, workspace_size, false); if(status != miopenStatusSuccess) - MIGRAPHX_THROW("Find deconvolution failed"); - handle = ctx.get_stream().get_miopen(); - algo = perf.fwd_algo; + MIGRAPHX_THROW("MIOpen Deconvolution: find convolution failed"); + algo = perf.fwd_algo; + + size_t solution_count; + + status = miopenConvolutionForwardGetSolutionCount(ctx.get_stream().get_miopen(), + w_desc.get(), + x_desc.get(), + cd.get(), + y_desc.get(), + &solution_count); + if(status != miopenStatusSuccess) + MIGRAPHX_THROW("MIOpen Deconvolution: get solution count failed"); + + std::vector solutions(solution_count); + + status = miopenConvolutionForwardGetSolution(ctx.get_stream().get_miopen(), + w_desc.get(), + x_desc.get(), + cd.get(), + y_desc.get(), + solution_count, + &solution_count, + solutions.data()); + if(status != miopenStatusSuccess) + MIGRAPHX_THROW("MIOpen Deconvolution: get solution failed"); + + solution_id = solutions.front().solution_id; + return shape{shape::int8_type, {perf.memory}}; } @@ -129,13 +154,29 @@ void miopen_deconvolution::finalize(context& ctx, const shape& output_shape, std::vector inputs) { - if(handle == ctx.get_stream().get_miopen()) - return; - // Check that workspace hasn't changed - auto size = inputs.at(2).bytes(); - auto ws = compile(ctx, output_shape, std::move(inputs)); - if(ws.bytes() > size) - MIGRAPHX_THROW("Workspace has changed during finalization."); + if(cd == nullptr) + cd = make_deconv(op); + if(solution_id == 0) + { + // Check that workspace hasn't changed + auto size = inputs.at(2).bytes(); + auto ws = find(ctx, output_shape, inputs); + if(ws.bytes() > size) + MIGRAPHX_THROW("MIOpen Deconvolution: workspace has changed during finalization."); + } + + auto x_desc = make_tensor(reshape_if_1d(inputs[0])); + auto w_desc = make_tensor(reshape_if_1d(inputs[1])); + auto y_desc = make_tensor(reshape_if_1d(output_shape)); + + auto status = miopenConvolutionForwardCompileSolution(ctx.get_stream().get_miopen(), + w_desc.get(), + x_desc.get(), + cd.get(), + y_desc.get(), + solution_id); + if(status != miopenStatusSuccess) + MIGRAPHX_THROW("MIOpen Deconvolution: compile solution failed"); } } // namespace gpu diff --git a/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp b/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp index 6d324fb59..719253140 100644 --- a/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp +++ b/src/targets/gpu/include/migraphx/gpu/deconvolution.hpp @@ -39,20 +39,20 @@ struct miopen_deconvolution op::deconvolution op; shared cd; miopenConvFwdAlgorithm_t algo{}; - miopenHandle_t handle = nullptr; + uint64_t solution_id = 0; template static auto reflect(Self& self, F f) { - // TODO: Add algo - return op::convolution::reflect(self.op, f); + return pack_join(op::deconvolution::reflect(self.op, f), + pack(f(self.solution_id, "solution_id"))); } std::string name() const { return "gpu::deconv"; } shape compute_shape(const std::vector& inputs) const; argument compute(context& ctx, const shape& output_shape, const std::vector& args) const; - shape compile(context& ctx, const shape& output_shape, std::vector inputs); + shape find(context& ctx, const shape& output_shape, std::vector inputs); void finalize(context& ctx, const shape& output_shape, std::vector inputs); std::ptrdiff_t output_alias(const std::vector& shapes) const { diff --git a/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp b/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp index 782f292d6..005035e20 100644 --- a/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp +++ b/src/targets/gpu/include/migraphx/gpu/quant_convolution.hpp @@ -41,7 +41,7 @@ struct miopen_quant_convolution bool int8_x4_format = false; shared cd; miopenConvFwdAlgorithm_t algo{}; - miopenHandle_t handle = nullptr; + uint64_t solution_id = 0; template static auto reflect(Self& self, F f) @@ -55,7 +55,7 @@ struct miopen_quant_convolution shape compute_shape(const std::vector& inputs) const; argument compute(context& ctx, const shape& output_shape, const std::vector& args) const; - shape compile(context& ctx, const shape& output_shape, std::vector inputs); + shape find(context& ctx, const shape& output_shape, std::vector inputs); void finalize(context& ctx, const shape& output_shape, std::vector inputs); std::ptrdiff_t output_alias(const std::vector& shapes) const { diff --git a/src/targets/gpu/lowering.cpp b/src/targets/gpu/lowering.cpp index df1b1d063..a800fc83a 100644 --- a/src/targets/gpu/lowering.cpp +++ b/src/targets/gpu/lowering.cpp @@ -300,7 +300,7 @@ struct miopen_apply auto&& op = any_cast(ins->get_operator()); auto conv = miopen_deconvolution{op, make_deconv(op)}; - auto ws = conv.compile(get_context(), ins->get_shape(), to_shapes(ins->inputs())); + auto ws = conv.find(get_context(), ins->get_shape(), to_shapes(ins->inputs())); auto workspace = insert_allocation(ins, ws); auto output = insert_allocation(ins, ins->get_shape()); @@ -331,7 +331,7 @@ struct miopen_apply miopen_quant_convolution conv; auto compile_quant_conv_with_format = [&](bool format) { conv = miopen_quant_convolution{op, format, make_conv(op)}; - ws = conv.compile(get_context(), ins->get_shape(), to_shapes(ins->inputs())); + ws = conv.find(get_context(), ins->get_shape(), to_shapes(ins->inputs())); }; try diff --git a/src/targets/gpu/quant_convolution.cpp b/src/targets/gpu/quant_convolution.cpp index 4abeae51f..2a009b3a4 100644 --- a/src/targets/gpu/quant_convolution.cpp +++ b/src/targets/gpu/quant_convolution.cpp @@ -67,9 +67,9 @@ argument miopen_quant_convolution::compute(context& ctx, return args[3]; } -shape miopen_quant_convolution::compile(context& ctx, - const shape& output_shape, - std::vector inputs) +shape miopen_quant_convolution::find(context& ctx, + const shape& output_shape, + std::vector inputs) { shape workspace_shape{}; auto x_desc = make_tensor(inputs[0], int8_x4_format); @@ -92,18 +92,18 @@ shape miopen_quant_convolution::compile(context& ctx, x_shape = pack_int8_shape(x_shape); w_shape = pack_int8_shape(w_shape); } - auto arg_vec4_x = to_gpu(generate_argument(x_shape)); - auto arg_vec4_w = to_gpu(generate_argument(w_shape)); - auto y = allocate_gpu(output_shape); - auto workspace = allocate_gpu(workspace_shape); + auto x = to_gpu(generate_argument(x_shape)); + auto w = to_gpu(generate_argument(w_shape)); + auto y = allocate_gpu(output_shape); + auto workspace = allocate_gpu(workspace_shape); int algo_count = 1; miopenConvAlgoPerf_t perf; auto status = miopenFindConvolutionForwardAlgorithm(ctx.get_stream().get_miopen(), x_desc.get(), - arg_vec4_x.implicit(), + x.implicit(), w_desc.get(), - arg_vec4_w.implicit(), + w.implicit(), cd.get(), y_desc.get(), y.implicit(), @@ -114,11 +114,35 @@ shape miopen_quant_convolution::compile(context& ctx, workspace_size, false); if(status != miopenStatusSuccess) - { - MIGRAPHX_THROW("QUANT_CONVOLUTION: find convolution failed"); - } - handle = ctx.get_stream().get_miopen(); - algo = perf.fwd_algo; + MIGRAPHX_THROW("MIOpen Quant Convolution: find convolution failed"); + algo = perf.fwd_algo; + + size_t solution_count; + + status = miopenConvolutionForwardGetSolutionCount(ctx.get_stream().get_miopen(), + w_desc.get(), + x_desc.get(), + cd.get(), + y_desc.get(), + &solution_count); + if(status != miopenStatusSuccess) + MIGRAPHX_THROW("MIOpen Quant Convolution: get solution count failed"); + + std::vector solutions(solution_count); + + status = miopenConvolutionForwardGetSolution(ctx.get_stream().get_miopen(), + w_desc.get(), + x_desc.get(), + cd.get(), + y_desc.get(), + solution_count, + &solution_count, + solutions.data()); + if(status != miopenStatusSuccess) + MIGRAPHX_THROW("MIOpen Quant Convolution: get solution failed"); + + solution_id = solutions.front().solution_id; + return shape{shape::int8_type, {perf.memory}}; } @@ -126,13 +150,29 @@ void miopen_quant_convolution::finalize(context& ctx, const shape& output_shape, std::vector inputs) { - if(handle == ctx.get_stream().get_miopen()) - return; - // Check that workspace hasn't changed - auto size = inputs.at(2).bytes(); - auto ws = compile(ctx, output_shape, std::move(inputs)); - if(ws.bytes() > size) - MIGRAPHX_THROW("Workspace has changed during finalization."); + if(cd == nullptr) + cd = make_conv(op); + if(solution_id == 0) + { + // Check that workspace hasn't changed + auto size = inputs.at(2).bytes(); + auto ws = find(ctx, output_shape, inputs); + if(ws.bytes() > size) + MIGRAPHX_THROW("MIOpen Quant Convolution: workspace has changed during finalization."); + } + + auto x_desc = make_tensor(inputs[0], int8_x4_format); + auto w_desc = make_tensor(inputs[1], int8_x4_format); + auto y_desc = make_tensor(output_shape); + + auto status = miopenConvolutionForwardCompileSolution(ctx.get_stream().get_miopen(), + w_desc.get(), + x_desc.get(), + cd.get(), + y_desc.get(), + solution_id); + if(status != miopenStatusSuccess) + MIGRAPHX_THROW("MIOpen Quant Convolution: compile solution failed"); } shape miopen_quant_convolution::pack_int8_shape(const shape& s) const diff --git a/test/verify/run_verify.cpp b/test/verify/run_verify.cpp index 49b3db275..da9be1fce 100644 --- a/test/verify/run_verify.cpp +++ b/test/verify/run_verify.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -57,6 +58,15 @@ std::future::type> detach_async(Function&& f return std::async(std::launch::deferred, std::forward(f)); } +inline void verify_load_save(const migraphx::program& p) +{ + migraphx::tmp_dir td{"migraphx_test"}; + auto path = td.path / "test.mxr"; + migraphx::save(p, path.string()); + auto loaded = migraphx::load(path.string()); + EXPECT(p == loaded); +} + inline void compile_check(migraphx::program& p, const migraphx::target& t, bool show_trace = false) { auto name = t.name(); @@ -82,6 +92,8 @@ inline void compile_check(migraphx::program& p, const migraphx::target& t, bool throw std::runtime_error("Compiling program with " + name + " alters its shape"); } } + if(t.name() != "ref") + verify_load_save(p); } target_info run_verify::get_target_info(const std::string& name) const @@ -152,6 +164,7 @@ void run_verify::verify(const std::string& name, const migraphx::program& p) con auto_print::set_terminate_handler(name); if(migraphx::enabled(MIGRAPHX_DUMP_TEST{})) migraphx::save(p, name + ".mxr"); + verify_load_save(p); std::vector target_names; for(const auto& tname : migraphx::get_targets()) { diff --git a/test/verify/test_conv_add_relu.cpp b/test/verify/test_conv_add_relu.cpp new file mode 100644 index 000000000..74533c86a --- /dev/null +++ b/test/verify/test_conv_add_relu.cpp @@ -0,0 +1,52 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * + * 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. + */ + +#include "verify_program.hpp" +#include +#include +#include +#include + +struct test_conv_add_relu : verify_program +{ + migraphx::program create_program() const + { + migraphx::program p; + auto* mm = p.get_main_module(); + auto input = + mm->add_parameter("x", migraphx::shape{migraphx::shape::float_type, {4, 3, 3, 3}}); + auto weights = + mm->add_parameter("w", migraphx::shape{migraphx::shape::float_type, {4, 3, 3, 3}}); + auto bias_literal = migraphx::literal{migraphx::shape{migraphx::shape::float_type, {4}}, + {2.0f, 2.0f, 2.0f, 2.0f}}; + auto bias = mm->add_literal(bias_literal); + auto conv = mm->add_instruction(migraphx::make_op("convolution"), input, weights); + auto bcast_bias = mm->add_instruction( + migraphx::make_op("broadcast", {{"axis", 1}, {"out_lens", conv->get_shape().lens()}}), + bias); + auto bias_add = mm->add_instruction(migraphx::make_op("add"), conv, bcast_bias); + mm->add_instruction(migraphx::make_op("relu"), bias_add); + return p; + } +}; -- GitLab From bd503d893fe29004bc264eb7fb1f81af1ce7197b Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Thu, 7 Jul 2022 14:23:00 -0500 Subject: [PATCH 32/32] Add a step to unsqeeze axis (#1242) Instead of just unsqueezing to an axis of 1 a step can be set to use instead. So instead of unsqueezing {3, 12} to {3, 1, 12} a step of 2 will unsqeeze to {3, 2, 6} instead --- src/include/migraphx/op/unsqueeze.hpp | 29 ++++++++--- src/simplify_reshapes.cpp | 2 +- test/op_shape_test.cpp | 73 ++++++++++++++++++++++++--- test/simplify_reshapes_test.cpp | 32 ++++++++++++ 4 files changed, 121 insertions(+), 15 deletions(-) diff --git a/src/include/migraphx/op/unsqueeze.hpp b/src/include/migraphx/op/unsqueeze.hpp index b54e4cb78..23f7c041f 100644 --- a/src/include/migraphx/op/unsqueeze.hpp +++ b/src/include/migraphx/op/unsqueeze.hpp @@ -42,11 +42,12 @@ namespace op { struct unsqueeze { std::vector axes; + std::vector steps; template static auto reflect(Self& self, F f) { - return pack(f(self.axes, "axes")); + return pack(f(self.axes, "axes"), f(self.steps, "steps")); } value attributes() const @@ -73,6 +74,9 @@ struct unsqueeze MIGRAPHX_THROW("UNSQUEEZE: Input must be a scalar"); } + if(steps.size() > axes.size()) + MIGRAPHX_THROW("UNSQUEEZE: Steps provided with no axis"); + std::size_t new_size = old_lens.size() + axes.size(); std::vector new_lens(new_size); @@ -80,16 +84,27 @@ struct unsqueeze std::size_t p = 0; for(auto i : range(new_size)) { - if(std::find(axes.begin(), axes.end(), i) != axes.end()) + auto axis_idx = std::find(axes.begin(), axes.end(), i) - axes.begin(); + if(axis_idx < axes.size()) { - new_lens[i] = 1; - if(p == 0) // unsqueeze on the first axes + std::int64_t step = 1; + if(axis_idx < steps.size()) + step = steps[axis_idx]; + if(step == 0) + MIGRAPHX_THROW("UNSQUEEZE: step must be non-zero"); + new_lens[i] = step; + if(p < old_strides.size()) { - new_strides[i] = old_lens[0] * old_strides[0]; + if((old_lens[p] % step) != 0) + MIGRAPHX_THROW("UNSQUEEZE: Axis dimenstion is not divisible by step"); + old_lens[p] /= step; + new_strides[i] = old_strides[p] * old_lens[p]; } - else // unsqueeze on middle or last axes + else { - new_strides[i] = (p < old_strides.size()) ? old_strides[p - 1] : 1; + if(step != 1) + MIGRAPHX_THROW("UNSQUEEZE: Step must be 1 for extra axes"); + new_strides[i] = 1; } } else diff --git a/src/simplify_reshapes.cpp b/src/simplify_reshapes.cpp index ff2c90f6d..9e05ab524 100644 --- a/src/simplify_reshapes.cpp +++ b/src/simplify_reshapes.cpp @@ -272,7 +272,7 @@ struct find_concat_transpose { auto matcher() const { - return match::name("concat")(match::all_of[match::inputs()](match::transpose_shape())); + return match::name("concat")(match::all_of[match::inputs()](match::name("transpose"))); } void apply(module& m, const match::matcher_result& mr) const diff --git a/test/op_shape_test.cpp b/test/op_shape_test.cpp index 9a342f600..274d2778e 100644 --- a/test/op_shape_test.cpp +++ b/test/op_shape_test.cpp @@ -1533,15 +1533,46 @@ TEST_CASE(test_squeeze_wrong_axis) TEST_CASE(test_unsqueeze) { - migraphx::shape s1{migraphx::shape::float_type, {4, 3, 3}}; - migraphx::shape s2{migraphx::shape::float_type, {4, 3, 1, 3}}; + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 3}}; + migraphx::shape s2{migraphx::shape::float_type, {4, 5, 1, 3}}; expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2}}}), s1); } +TEST_CASE(test_unsqueeze_step) +{ + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 12}}; + migraphx::shape s2{migraphx::shape::float_type, {4, 5, 2, 6}}; + expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {2}}}), s1); +} + +TEST_CASE(test_unsqueeze_step_non_divisable) +{ + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 3}}; + throws_shape(migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {2}}}), s1); +} + +TEST_CASE(test_unsqueeze_step_zero) +{ + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 12}}; + throws_shape(migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {0}}}), s1); +} + +TEST_CASE(test_unsqueeze_step_at_end) +{ + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 12}}; + throws_shape(migraphx::make_op("unsqueeze", {{"axes", {3}}, {"steps", {2}}}), s1); +} + +TEST_CASE(test_unsqueeze_mismatch_step_axis) +{ + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 12}}; + throws_shape(migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {2, 3}}}), s1); +} + TEST_CASE(test_unsqueeze_negative_axis) { - migraphx::shape s1{migraphx::shape::float_type, {4, 3, 3}}; - migraphx::shape s2{migraphx::shape::float_type, {4, 3, 1, 3}}; + migraphx::shape s1{migraphx::shape::float_type, {4, 5, 3}}; + migraphx::shape s2{migraphx::shape::float_type, {4, 5, 1, 3}}; expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {-2}}}), s1); } @@ -1567,21 +1598,28 @@ TEST_CASE(test_unsqueeze_scalar_tensor2) TEST_CASE(test_unsqueeze_transpose) { migraphx::shape s1{migraphx::shape::float_type, {4, 4, 3}, {12, 1, 4}}; - migraphx::shape s2{migraphx::shape::float_type, {4, 4, 1, 3}, {12, 1, 1, 4}}; + migraphx::shape s2{migraphx::shape::float_type, {4, 4, 1, 3}, {12, 1, 12, 4}}; expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2}}}), s1); } +TEST_CASE(test_unsqueeze_transpose_step) +{ + migraphx::shape s1{migraphx::shape::float_type, {4, 4, 6}, {24, 1, 4}}; + migraphx::shape s2{migraphx::shape::float_type, {4, 4, 2, 3}, {24, 1, 12, 4}}; + expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2}}, {"steps", {2}}}), s1); +} + TEST_CASE(test_unsqueeze_multibroadcast) { migraphx::shape s1{migraphx::shape::float_type, {2, 3, 4}, {0, 1, 0}}; - migraphx::shape s2{migraphx::shape::float_type, {2, 3, 1, 4}, {0, 1, 1, 0}}; + migraphx::shape s2{migraphx::shape::float_type, {2, 3, 1, 4}, {0, 1, 0, 0}}; expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2}}}), s1); } TEST_CASE(test_unsqueeze_slice) { migraphx::shape s1{migraphx::shape::float_type, {2, 3, 4}, {108, 36, 1}}; - migraphx::shape s2{migraphx::shape::float_type, {2, 3, 1, 4}, {108, 36, 36, 1}}; + migraphx::shape s2{migraphx::shape::float_type, {2, 3, 1, 4}, {108, 36, 4, 1}}; expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2}}}), s1); } @@ -1613,6 +1651,27 @@ TEST_CASE(test_unsqueeze_multiple_axes_2) expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {0, 1}}}), s1); } +TEST_CASE(test_unsqueeze_multiple_axes_3) +{ + migraphx::shape s1{migraphx::shape::float_type, {3, 4, 5}}; + migraphx::shape s2{migraphx::shape::float_type, {3, 4, 1, 5, 1, 1}}; + expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2, 4, 5}}}), s1); +} + +TEST_CASE(test_unsqueeze_multiple_axes_4) +{ + migraphx::shape s1{migraphx::shape::float_type, {3, 4, 5}}; + migraphx::shape s2{migraphx::shape::float_type, {3, 4, 1, 5, 1, 1}}; + expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {5, 4, 2}}}), s1); +} + +TEST_CASE(test_unsqueeze_multiple_axes_step) +{ + migraphx::shape s1{migraphx::shape::float_type, {3, 4, 10}}; + migraphx::shape s2{migraphx::shape::float_type, {3, 4, 2, 5, 1, 1}}; + expect_shape(s2, migraphx::make_op("unsqueeze", {{"axes", {2, 4, 5}}, {"steps", {2}}}), s1); +} + TEST_CASE(transpose_shape) { migraphx::shape input{migraphx::shape::float_type, {2, 2}}; diff --git a/test/simplify_reshapes_test.cpp b/test/simplify_reshapes_test.cpp index df8561e98..cbe74553c 100644 --- a/test/simplify_reshapes_test.cpp +++ b/test/simplify_reshapes_test.cpp @@ -1141,6 +1141,38 @@ TEST_CASE(transpose_contiguous_reshape_binary_broadcast) EXPECT(m1 == m2); } +TEST_CASE(transpose_unsqueeze_concat) +{ + migraphx::module m1; + { + auto l0 = m1.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); + auto lt0 = + m1.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), l0); + auto l1 = m1.add_parameter("1", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); + auto lt1 = + m1.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), l1); + auto l2 = m1.add_parameter("2", migraphx::shape{migraphx::shape::float_type, {1, 2, 1, 1}}); + auto lt2 = + m1.add_instruction(migraphx::make_op("transpose", {{"permutation", {0, 2, 3, 1}}}), l2); + std::vector args{lt0, lt1, lt2}; + std::vector unsqueezed_args; + int64_t axis = 3; + + std::transform( + args.begin(), + args.end(), + std::back_inserter(unsqueezed_args), + [&](migraphx::instruction_ref arg) { + return m1.add_instruction(migraphx::make_op("unsqueeze", {{"axes", {axis}}}), arg); + }); + m1.add_instruction(migraphx::make_op("concat", {{"axis", axis}}), unsqueezed_args); + } + // TODO: This could be simplified to a single transpose after concat + migraphx::module m2 = m1; + run_pass(m1); + EXPECT(m1 == m2); +} + TEST_CASE(transpose_slice) { migraphx::module m1; -- GitLab