From 103d7f33ba9473fcf054e0a607083270f79e2fb6 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Fri, 30 Apr 2021 14:17:35 +0800 Subject: [PATCH] refactor(dnn/rocm): update hip license header GitOrigin-RevId: 79d684755d31a982446a2c136ce800d70afae91f --- dnn/src/rocm/add_update/add_update.cpp.hip | 11 +++++---- dnn/src/rocm/add_update/add_update.h.hip | 11 +++++---- dnn/src/rocm/argmxx/argmxx.cpp.hip | 11 +++++---- dnn/src/rocm/argsort/opr_impl.cpp | 4 ++-- dnn/src/rocm/checksum/kern.cpp.hip | 11 +++++---- dnn/src/rocm/checksum/kern.h.hip | 11 +++++---- .../convolution/chanwise/bwd_data.cpp.hip | 11 +++++---- .../convolution/chanwise/bwd_filter.cpp.hip | 11 +++++---- dnn/src/rocm/convolution/chanwise/fwd.cpp.hip | 11 +++++---- dnn/src/rocm/convolution/chanwise/kern.h.hip | 11 +++++---- .../convolution/chanwise/kern_helper.h.hip | 11 +++++---- .../forward/inplace_matmul_impl.cpp.hip | 11 +++++---- .../forward/inplace_matmul_impl.h.hip | 11 +++++---- dnn/src/rocm/convolution/im2col.cpp.hip | 11 +++++---- dnn/src/rocm/convolution/im2col.h.hip | 11 +++++---- dnn/src/rocm/elemwise/kern_wrapper.h.hip | 11 +++++---- dnn/src/rocm/elemwise/special_kerns.h.hip | 2 +- dnn/src/rocm/elemwise_helper.h.hip | 10 ++++---- dnn/src/rocm/error_info.h.hip | 11 +++++---- dnn/src/rocm/eye/eye.cpp.hip | 11 +++++---- dnn/src/rocm/eye/eye.h.hip | 11 +++++---- .../rocm/indexing_multi_axis_vec/kern.h.hip | 11 +++++---- .../kern_apply_opr_fwd.cpp.hip | 11 +++++---- .../kern_apply_opr_impl.hipinl | 11 +++++---- .../kern_apply_opr_incr.cpp.hip | 11 +++++---- .../kern_apply_opr_set.cpp.hip | 11 +++++---- .../kern_gen_offset_base.cpp.hip | 11 +++++---- .../indexing_one_hot/indexing_one_hot.cpp.hip | 11 +++++---- .../indexing_one_hot/indexing_one_hot.h.hip | 11 +++++---- dnn/src/rocm/int_fastdiv.h.hip | 11 +++++---- dnn/src/rocm/linspace/linspace.cpp.hip | 11 +++++---- dnn/src/rocm/linspace/linspace.h.hip | 11 +++++---- dnn/src/rocm/powc/powc.cpp.hip | 11 +++++---- dnn/src/rocm/powc/powc.h.hip | 11 +++++---- dnn/src/rocm/reduce/reduce.cpp.hip | 11 +++++---- dnn/src/rocm/reduce_helper.h.hip | 12 ++++++---- dnn/src/rocm/reduce_helper.hipinl | 12 ++++++---- dnn/src/rocm/reduce_helper/column.hipinl | 11 +++++---- dnn/src/rocm/reduce_helper/largeBC.hipinl | 11 +++++---- dnn/src/rocm/relayout/relayout.cpp.hip | 11 +++++---- dnn/src/rocm/relayout/relayout.h.hip | 11 +++++---- .../rocm/relayout/relayout_contiguous.cpp.hip | 11 +++++---- .../rocm/relayout/relayout_contiguous.h.hip | 11 +++++---- dnn/src/rocm/sleep/kern.cpp.hip | 11 +++++---- dnn/src/rocm/sleep/kern.h.hip | 11 +++++---- dnn/src/rocm/topk/opr_impl.cpp | 12 ++-------- dnn/src/rocm/topk/topk_radix.h.hip | 23 ------------------- dnn/src/rocm/type_cvt/type_cvt.cpp.hip | 11 +++++---- dnn/src/rocm/type_cvt/type_cvt.h.hip | 11 +++++---- dnn/src/rocm/utils.h.hip | 11 +++++---- dnn/test/rocm/topk.cpp | 5 ---- 51 files changed, 322 insertions(+), 231 deletions(-) diff --git a/dnn/src/rocm/add_update/add_update.cpp.hip b/dnn/src/rocm/add_update/add_update.cpp.hip index a000be66..5f328ab3 100644 --- a/dnn/src/rocm/add_update/add_update.cpp.hip +++ b/dnn/src/rocm/add_update/add_update.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/add_update/add_update.cpp.hip + * \file dnn/src/rocm/add_update/add_update.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "./add_update.h.hip" diff --git a/dnn/src/rocm/add_update/add_update.h.hip b/dnn/src/rocm/add_update/add_update.h.hip index 33e158ba..20758b03 100644 --- a/dnn/src/rocm/add_update/add_update.h.hip +++ b/dnn/src/rocm/add_update/add_update.h.hip @@ -1,11 +1,14 @@ /** * - * \file src/rocm/add_update/add_update.h.hip + * \file dnn/src/rocm/add_update/add_update.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/argmxx/argmxx.cpp.hip b/dnn/src/rocm/argmxx/argmxx.cpp.hip index 13fd678d..1e57de2e 100644 --- a/dnn/src/rocm/argmxx/argmxx.cpp.hip +++ b/dnn/src/rocm/argmxx/argmxx.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/argmxx/argmxx.cpp.hip + * \file dnn/src/rocm/argmxx/argmxx.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "hip_header.h" diff --git a/dnn/src/rocm/argsort/opr_impl.cpp b/dnn/src/rocm/argsort/opr_impl.cpp index 944fc213..8bd93040 100644 --- a/dnn/src/rocm/argsort/opr_impl.cpp +++ b/dnn/src/rocm/argsort/opr_impl.cpp @@ -37,7 +37,7 @@ void ArgsortForwardImpl::exec(_megdnn_tensor_in src, _megdnn_tensor_out dst, ARGSORT_FOREACH_CTYPE(cb); #undef cb default: - megdnn_throw(ssprintf("unsupported argsort dtype on cuda: %s", + megdnn_throw(ssprintf("unsupported argsort dtype on rocm: %s", src.layout.dtype.name())); } } @@ -71,7 +71,7 @@ void ArgsortBackwardImpl::exec(_megdnn_tensor_in diff, ARGSORT_FOREACH_CTYPE(cb); #undef cb default: - megdnn_throw(ssprintf("unsupported argsort dtype on cuda: %s", + megdnn_throw(ssprintf("unsupported argsort dtype on rocm: %s", diff.layout.dtype.name())); } } diff --git a/dnn/src/rocm/checksum/kern.cpp.hip b/dnn/src/rocm/checksum/kern.cpp.hip index 88740edd..94b2c0ed 100644 --- a/dnn/src/rocm/checksum/kern.cpp.hip +++ b/dnn/src/rocm/checksum/kern.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/checksum/kern.cpp.hip + * \file dnn/src/rocm/checksum/kern.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "hip_header.h" diff --git a/dnn/src/rocm/checksum/kern.h.hip b/dnn/src/rocm/checksum/kern.h.hip index c21b976e..298f1e96 100644 --- a/dnn/src/rocm/checksum/kern.h.hip +++ b/dnn/src/rocm/checksum/kern.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/checksum/kern.h.hip + * \file dnn/src/rocm/checksum/kern.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/convolution/chanwise/bwd_data.cpp.hip b/dnn/src/rocm/convolution/chanwise/bwd_data.cpp.hip index 0e98ff04..6a11b024 100644 --- a/dnn/src/rocm/convolution/chanwise/bwd_data.cpp.hip +++ b/dnn/src/rocm/convolution/chanwise/bwd_data.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/chanwise/bwd_data.cpp.hip + * \file dnn/src/rocm/convolution/chanwise/bwd_data.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hip_header.h" diff --git a/dnn/src/rocm/convolution/chanwise/bwd_filter.cpp.hip b/dnn/src/rocm/convolution/chanwise/bwd_filter.cpp.hip index fa2496e2..25e09c57 100644 --- a/dnn/src/rocm/convolution/chanwise/bwd_filter.cpp.hip +++ b/dnn/src/rocm/convolution/chanwise/bwd_filter.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/chanwise/bwd_filter.cpp.hip + * \file dnn/src/rocm/convolution/chanwise/bwd_filter.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hip_header.h" diff --git a/dnn/src/rocm/convolution/chanwise/fwd.cpp.hip b/dnn/src/rocm/convolution/chanwise/fwd.cpp.hip index 5895cc37..bc36021e 100644 --- a/dnn/src/rocm/convolution/chanwise/fwd.cpp.hip +++ b/dnn/src/rocm/convolution/chanwise/fwd.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/chanwise/fwd.cpp.hip + * \file dnn/src/rocm/convolution/chanwise/fwd.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hip_header.h" diff --git a/dnn/src/rocm/convolution/chanwise/kern.h.hip b/dnn/src/rocm/convolution/chanwise/kern.h.hip index 2c06cd6f..03cf5b68 100644 --- a/dnn/src/rocm/convolution/chanwise/kern.h.hip +++ b/dnn/src/rocm/convolution/chanwise/kern.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/chanwise/kern.h.hip + * \file dnn/src/rocm/convolution/chanwise/kern.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/convolution/chanwise/kern_helper.h.hip b/dnn/src/rocm/convolution/chanwise/kern_helper.h.hip index 7876c612..2f0d91ef 100644 --- a/dnn/src/rocm/convolution/chanwise/kern_helper.h.hip +++ b/dnn/src/rocm/convolution/chanwise/kern_helper.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/chanwise/kern_helper.h.hip + * \file dnn/src/rocm/convolution/chanwise/kern_helper.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/convolution/forward/inplace_matmul_impl.cpp.hip b/dnn/src/rocm/convolution/forward/inplace_matmul_impl.cpp.hip index 958aaf0c..a33b4253 100644 --- a/dnn/src/rocm/convolution/forward/inplace_matmul_impl.cpp.hip +++ b/dnn/src/rocm/convolution/forward/inplace_matmul_impl.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/forward/inplace_matmul_impl.cpp.hip + * \file dnn/src/rocm/convolution/forward/inplace_matmul_impl.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "./inplace_matmul_impl.h.hip" #include "src/rocm/utils.h.hip" diff --git a/dnn/src/rocm/convolution/forward/inplace_matmul_impl.h.hip b/dnn/src/rocm/convolution/forward/inplace_matmul_impl.h.hip index c4109f19..60079658 100644 --- a/dnn/src/rocm/convolution/forward/inplace_matmul_impl.h.hip +++ b/dnn/src/rocm/convolution/forward/inplace_matmul_impl.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/forward/inplace_matmul_impl.h.hip + * \file dnn/src/rocm/convolution/forward/inplace_matmul_impl.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/convolution/im2col.cpp.hip b/dnn/src/rocm/convolution/im2col.cpp.hip index 919c7330..5200607d 100644 --- a/dnn/src/rocm/convolution/im2col.cpp.hip +++ b/dnn/src/rocm/convolution/im2col.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/im2col.cpp.hip + * \file dnn/src/rocm/convolution/im2col.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "./im2col.h.hip" #include "megdnn/dtype.h" diff --git a/dnn/src/rocm/convolution/im2col.h.hip b/dnn/src/rocm/convolution/im2col.h.hip index 1d5b46e6..0870a79f 100644 --- a/dnn/src/rocm/convolution/im2col.h.hip +++ b/dnn/src/rocm/convolution/im2col.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/convolution/im2col.h.hip + * \file dnn/src/rocm/convolution/im2col.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/elemwise/kern_wrapper.h.hip b/dnn/src/rocm/elemwise/kern_wrapper.h.hip index b97cf944..a0bb9ec6 100644 --- a/dnn/src/rocm/elemwise/kern_wrapper.h.hip +++ b/dnn/src/rocm/elemwise/kern_wrapper.h.hip @@ -1,12 +1,13 @@ /** - * \file src/rocm/elemwise/kern_wrapper.h.hip + * \file dnn/src/rocm/elemwise/kern_wrapper.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \brief helper for implementing elemwise oprs + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/elemwise/special_kerns.h.hip b/dnn/src/rocm/elemwise/special_kerns.h.hip index b21ee120..deca2e7a 100644 --- a/dnn/src/rocm/elemwise/special_kerns.h.hip +++ b/dnn/src/rocm/elemwise/special_kerns.h.hip @@ -1,5 +1,5 @@ /** - * \file src/rocm/elemwise/special_kerns.h.hip + * \file dnn/src/rocm/elemwise/special_kerns.h.hip * * This file is part of MegDNN, a deep neural network run-time library * developed by Megvii. diff --git a/dnn/src/rocm/elemwise_helper.h.hip b/dnn/src/rocm/elemwise_helper.h.hip index bd2c2e23..a4e427b1 100644 --- a/dnn/src/rocm/elemwise_helper.h.hip +++ b/dnn/src/rocm/elemwise_helper.h.hip @@ -1,11 +1,13 @@ /** - * \file src/rocm/elemwise_helper.h.hip + * \file dnn/src/rocm/elemwise_helper.h.hip * - * This file is part of MegBrain, a deep learning framework developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \brief helper utilities for implementing element-wise kernels + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/error_info.h.hip b/dnn/src/rocm/error_info.h.hip index 1f09ca4e..1a189e4f 100644 --- a/dnn/src/rocm/error_info.h.hip +++ b/dnn/src/rocm/error_info.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/error_info.h.hip + * \file dnn/src/rocm/error_info.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/eye/eye.cpp.hip b/dnn/src/rocm/eye/eye.cpp.hip index 774233ed..dc569af6 100644 --- a/dnn/src/rocm/eye/eye.cpp.hip +++ b/dnn/src/rocm/eye/eye.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/eye/eye.cpp.hip + * \file dnn/src/rocm/eye/eye.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "hip_header.h" diff --git a/dnn/src/rocm/eye/eye.h.hip b/dnn/src/rocm/eye/eye.h.hip index 6a1f6f86..5c098cb6 100644 --- a/dnn/src/rocm/eye/eye.h.hip +++ b/dnn/src/rocm/eye/eye.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/eye/eye.h.hip + * \file dnn/src/rocm/eye/eye.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once #include diff --git a/dnn/src/rocm/indexing_multi_axis_vec/kern.h.hip b/dnn/src/rocm/indexing_multi_axis_vec/kern.h.hip index bee63e22..8d35248b 100644 --- a/dnn/src/rocm/indexing_multi_axis_vec/kern.h.hip +++ b/dnn/src/rocm/indexing_multi_axis_vec/kern.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_multi_axis_vec/kern.h.hip + * \file dnn/src/rocm/indexing_multi_axis_vec/kern.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_fwd.cpp.hip b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_fwd.cpp.hip index 7de02bfc..9fd821f1 100644 --- a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_fwd.cpp.hip +++ b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_fwd.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_multi_axis_vec/kern_apply_opr_fwd.cpp.hip + * \file dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_fwd.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" diff --git a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_impl.hipinl b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_impl.hipinl index f1804bca..b5291e66 100644 --- a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_impl.hipinl +++ b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_impl.hipinl @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_multi_axis_vec/kern_apply_opr_impl.hipinl + * \file dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_impl.hipinl * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #ifndef KERN_APPLY_OPR_OPR diff --git a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_incr.cpp.hip b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_incr.cpp.hip index 26a9fd6f..e728e86c 100644 --- a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_incr.cpp.hip +++ b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_incr.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_multi_axis_vec/kern_apply_opr_incr.cpp.hip + * \file dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_incr.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" diff --git a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_set.cpp.hip b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_set.cpp.hip index c7e75ec1..8a406ea9 100644 --- a/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_set.cpp.hip +++ b/dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_set.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_multi_axis_vec/kern_apply_opr_set.cpp.hip + * \file dnn/src/rocm/indexing_multi_axis_vec/kern_apply_opr_set.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" diff --git a/dnn/src/rocm/indexing_multi_axis_vec/kern_gen_offset_base.cpp.hip b/dnn/src/rocm/indexing_multi_axis_vec/kern_gen_offset_base.cpp.hip index e15181f4..88c0b7dc 100644 --- a/dnn/src/rocm/indexing_multi_axis_vec/kern_gen_offset_base.cpp.hip +++ b/dnn/src/rocm/indexing_multi_axis_vec/kern_gen_offset_base.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_multi_axis_vec/kern_gen_offset_base.hip.cpp + * \file dnn/src/rocm/indexing_multi_axis_vec/kern_gen_offset_base.hip.cpp * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" diff --git a/dnn/src/rocm/indexing_one_hot/indexing_one_hot.cpp.hip b/dnn/src/rocm/indexing_one_hot/indexing_one_hot.cpp.hip index 769c38be..7687f4bb 100644 --- a/dnn/src/rocm/indexing_one_hot/indexing_one_hot.cpp.hip +++ b/dnn/src/rocm/indexing_one_hot/indexing_one_hot.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_one_hot/indexing_one_hot.cpp.hip + * \file dnn/src/rocm/indexing_one_hot/indexing_one_hot.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2016 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "./indexing_one_hot.h.hip" diff --git a/dnn/src/rocm/indexing_one_hot/indexing_one_hot.h.hip b/dnn/src/rocm/indexing_one_hot/indexing_one_hot.h.hip index 1358d7f7..3ec327f1 100644 --- a/dnn/src/rocm/indexing_one_hot/indexing_one_hot.h.hip +++ b/dnn/src/rocm/indexing_one_hot/indexing_one_hot.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/indexing_one_hot/indexing_one_hot.h.hip + * \file dnn/src/rocm/indexing_one_hot/indexing_one_hot.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/int_fastdiv.h.hip b/dnn/src/rocm/int_fastdiv.h.hip index 47ac27e8..ed04a850 100644 --- a/dnn/src/rocm/int_fastdiv.h.hip +++ b/dnn/src/rocm/int_fastdiv.h.hip @@ -1,12 +1,13 @@ /** - * \file src/rocm/int_fastdiv.h.hip + * \file dnn/src/rocm/int_fastdiv.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \brief fast integer division for constant divisor + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/linspace/linspace.cpp.hip b/dnn/src/rocm/linspace/linspace.cpp.hip index 5094f015..c23c42d3 100644 --- a/dnn/src/rocm/linspace/linspace.cpp.hip +++ b/dnn/src/rocm/linspace/linspace.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/linspace/linspace.cpp.hip + * \file dnn/src/rocm/linspace/linspace.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "./linspace.h.hip" diff --git a/dnn/src/rocm/linspace/linspace.h.hip b/dnn/src/rocm/linspace/linspace.h.hip index 3d16e6cf..266ee6cd 100644 --- a/dnn/src/rocm/linspace/linspace.h.hip +++ b/dnn/src/rocm/linspace/linspace.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/linspace/linspace.h.hip + * \file dnn/src/rocm/linspace/linspace.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hip_header.h" diff --git a/dnn/src/rocm/powc/powc.cpp.hip b/dnn/src/rocm/powc/powc.cpp.hip index 1b84d581..f4783b6e 100644 --- a/dnn/src/rocm/powc/powc.cpp.hip +++ b/dnn/src/rocm/powc/powc.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/powc/powc.cpp.hip + * \file dnn/src/rocm/powc/powc.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "src/rocm/powc/powc.h.hip" diff --git a/dnn/src/rocm/powc/powc.h.hip b/dnn/src/rocm/powc/powc.h.hip index 654e1a25..fc6c45b8 100644 --- a/dnn/src/rocm/powc/powc.h.hip +++ b/dnn/src/rocm/powc/powc.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/powc/powc.h.hip + * \file dnn/src/rocm/powc/powc.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hip_header.h" diff --git a/dnn/src/rocm/reduce/reduce.cpp.hip b/dnn/src/rocm/reduce/reduce.cpp.hip index 6a3eb727..405eb134 100644 --- a/dnn/src/rocm/reduce/reduce.cpp.hip +++ b/dnn/src/rocm/reduce/reduce.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/reduce/reduce.cpp.hip + * \file dnn/src/rocm/reduce/reduce.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "hip_header.h" diff --git a/dnn/src/rocm/reduce_helper.h.hip b/dnn/src/rocm/reduce_helper.h.hip index 96f678f2..b1bcd471 100644 --- a/dnn/src/rocm/reduce_helper.h.hip +++ b/dnn/src/rocm/reduce_helper.h.hip @@ -1,11 +1,13 @@ /** - * \file src/rocm/reduce_helper.h.hip + * \file dnn/src/rocm/reduce_helper.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \brief helper for implementing reduce operators - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/reduce_helper.hipinl b/dnn/src/rocm/reduce_helper.hipinl index c526d882..c38549f1 100644 --- a/dnn/src/rocm/reduce_helper.hipinl +++ b/dnn/src/rocm/reduce_helper.hipinl @@ -1,12 +1,14 @@ /** - * \file src/rocm/reduce_helper.hipinl + * \file dnn/src/rocm/reduce_helper.hipinl * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \brief helper for implementing reduce operators + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + */ #pragma once diff --git a/dnn/src/rocm/reduce_helper/column.hipinl b/dnn/src/rocm/reduce_helper/column.hipinl index 3d8ef596..48b7bcc8 100644 --- a/dnn/src/rocm/reduce_helper/column.hipinl +++ b/dnn/src/rocm/reduce_helper/column.hipinl @@ -1,12 +1,13 @@ /** - * \file src/rocm/reduce_helper/column.hipinl + * \file dnn/src/rocm/reduce_helper/column.hipinl * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \brief reduce kernel for (A, B) -> (A, 1) with small B + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/reduce_helper/largeBC.hipinl b/dnn/src/rocm/reduce_helper/largeBC.hipinl index d361b1a6..f025435a 100644 --- a/dnn/src/rocm/reduce_helper/largeBC.hipinl +++ b/dnn/src/rocm/reduce_helper/largeBC.hipinl @@ -1,12 +1,13 @@ /** - * \file src/rocm/reduce_helper/largeBC.hipinl + * \file dnn/src/rocm/reduce_helper/largeBC.hipinl * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \brief reduce kernel for large (B * C) value + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/relayout/relayout.cpp.hip b/dnn/src/rocm/relayout/relayout.cpp.hip index 95c6d620..376bfe09 100644 --- a/dnn/src/rocm/relayout/relayout.cpp.hip +++ b/dnn/src/rocm/relayout/relayout.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/relayout/relayout.cpp.hip + * \file dnn/src/rocm/relayout/relayout.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "./relayout.h.hip" diff --git a/dnn/src/rocm/relayout/relayout.h.hip b/dnn/src/rocm/relayout/relayout.h.hip index 1a370f39..6860fea6 100644 --- a/dnn/src/rocm/relayout/relayout.h.hip +++ b/dnn/src/rocm/relayout/relayout.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/relayout/relayout.h.hip + * \file dnn/src/rocm/relayout/relayout.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/relayout/relayout_contiguous.cpp.hip b/dnn/src/rocm/relayout/relayout_contiguous.cpp.hip index af85b3b3..d3c7781a 100644 --- a/dnn/src/rocm/relayout/relayout_contiguous.cpp.hip +++ b/dnn/src/rocm/relayout/relayout_contiguous.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/relayout/kern_contiguous.cpp.hip + * \file dnn/src/rocm/relayout/kern_contiguous.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" diff --git a/dnn/src/rocm/relayout/relayout_contiguous.h.hip b/dnn/src/rocm/relayout/relayout_contiguous.h.hip index a7f74450..23f16803 100644 --- a/dnn/src/rocm/relayout/relayout_contiguous.h.hip +++ b/dnn/src/rocm/relayout/relayout_contiguous.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/relayout/relayout_contiguous.h.hip + * \file dnn/src/rocm/relayout/relayout_contiguous.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/sleep/kern.cpp.hip b/dnn/src/rocm/sleep/kern.cpp.hip index bc9e1a84..bf8e757c 100644 --- a/dnn/src/rocm/sleep/kern.cpp.hip +++ b/dnn/src/rocm/sleep/kern.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/sleep/kern.cpp.hip + * \file dnn/src/rocm/sleep/kern.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "hip_header.h" diff --git a/dnn/src/rocm/sleep/kern.h.hip b/dnn/src/rocm/sleep/kern.h.hip index b7b99025..6e413026 100644 --- a/dnn/src/rocm/sleep/kern.h.hip +++ b/dnn/src/rocm/sleep/kern.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/sleep/kern.h.hip + * \file dnn/src/rocm/sleep/kern.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/src/rocm/topk/opr_impl.cpp b/dnn/src/rocm/topk/opr_impl.cpp index 19a53b21..f272c488 100644 --- a/dnn/src/rocm/topk/opr_impl.cpp +++ b/dnn/src/rocm/topk/opr_impl.cpp @@ -81,18 +81,10 @@ void TopKImpl::do_exec(int k, _megdnn_tensor_in data, _megdnn_tensor_out values, values.ptr(), indices, workspace.raw_ptr); return; -// #if !MEGDNN_DISABLE_FLOAT16 -// case DTypeEnum::Float16: -// dispatch_with_ctype(k, data.layout[0], data.layout[1], -// data.layout.stride[0], data.ptr(), -// values.ptr(), indices, -// workspace.raw_ptr); -// return; -// #endif default: megdnn_throw( - ssprintf("only float32, int32 and float16 supported for " - "cuda topk, got: %s", + ssprintf("only float32, int32 are supported for " + "rocm topk, got: %s", data.layout.dtype.name())); } } diff --git a/dnn/src/rocm/topk/topk_radix.h.hip b/dnn/src/rocm/topk/topk_radix.h.hip index 7e5ba132..8255bc6c 100644 --- a/dnn/src/rocm/topk/topk_radix.h.hip +++ b/dnn/src/rocm/topk/topk_radix.h.hip @@ -59,29 +59,6 @@ struct RadixConverter { } }; -// #if !MEGDNN_DISABLE_FLOAT16 -// template <> -// struct RadixConverter { -// union FIunion { -// FIunion() {} -// dt_float16 fv; -// uint16_t iv; -// }; -// static __forceinline__ __device__ __host__ uint16_t to_radix(dt_float16 val) { -// FIunion fi; -// fi.fv = val; -// return fi.iv ^ (((!(fi.iv >> 15u)) - 1u) | 0x8000u); -// } -// static __forceinline__ __device__ __host__ dt_float16 from_radix(uint16_t val) { -// FIunion fi; -// // do not write as to_radix() to work around a compiler bug in cuda-9.0 -// uint16_t m = 0x8000u; -// fi.iv = val ^ (m | (m - !(val >> 15u))); -// return fi.fv; -// } -// }; -// #endif - } // namespace internal /*! diff --git a/dnn/src/rocm/type_cvt/type_cvt.cpp.hip b/dnn/src/rocm/type_cvt/type_cvt.cpp.hip index 67d0e6c2..8571e576 100644 --- a/dnn/src/rocm/type_cvt/type_cvt.cpp.hip +++ b/dnn/src/rocm/type_cvt/type_cvt.cpp.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/type_cvt/type_cvt.cpp.hip + * \file dnn/src/rocm/type_cvt/type_cvt.cpp.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hcc_detail/hcc_defs_prologue.h" #include "./type_cvt.h.hip" diff --git a/dnn/src/rocm/type_cvt/type_cvt.h.hip b/dnn/src/rocm/type_cvt/type_cvt.h.hip index 4af15407..6870cc07 100644 --- a/dnn/src/rocm/type_cvt/type_cvt.h.hip +++ b/dnn/src/rocm/type_cvt/type_cvt.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/type_cvt/type_cvt.h.hip + * \file dnn/src/rocm/type_cvt/type_cvt.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "hip_header.h" diff --git a/dnn/src/rocm/utils.h.hip b/dnn/src/rocm/utils.h.hip index 1cfc3aae..22533b6a 100644 --- a/dnn/src/rocm/utils.h.hip +++ b/dnn/src/rocm/utils.h.hip @@ -1,10 +1,13 @@ /** - * \file src/rocm/utils.h.hip + * \file dnn/src/rocm/utils.h.hip * - * This file is part of MegDNN, a deep neural network run-time library - * developed by Megvii. + * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * - * \copyright Copyright (c) 2014-2019 Megvii Inc. All rights reserved. + * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #pragma once diff --git a/dnn/test/rocm/topk.cpp b/dnn/test/rocm/topk.cpp index 072520dc..8beb7d2a 100644 --- a/dnn/test/rocm/topk.cpp +++ b/dnn/test/rocm/topk.cpp @@ -29,10 +29,5 @@ TEST_F(ROCM, TOP_K) { TEST_F(ROCM, TOP_K_I32) { run_topk_test(handle_rocm()); } -// #if !MEGDNN_DISABLE_FLOAT16 -// TEST_F(ROCM, TOP_K_F16) { -// run_topk_test(handle_rocm()); -// } -// #endif // vim: syntax=cpp.doxygen -- GitLab