diff --git a/dnn/src/rocm/add_update/add_update.cpp.hip b/dnn/src/rocm/add_update/add_update.cpp.hip index a000be667b5db90d53f37098d33a51054d5c1ac9..5f328ab3039d3aca8c1f62b95e2064e02c0df1aa 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 33e158badbe045073220ec034c6d3af5a15c0bf7..20758b03d7652f22d1151a79e94b18985adee8e6 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 13fd678d73094d6d59980bc21fe144af221a1559..1e57de2eca0f30beaa6e8313111d6337f791120d 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 944fc213119325612ebeb7d2378a91eef2c36914..8bd930405ef132a53b7357a57b78cd2fdf3654d8 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 88740eddf1f49095cd1117ec456008d7ee1fa873..94b2c0ed2ae450d0c1d5b1e3f9e5b71fc08ad678 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 c21b976ecc4d9aa6b8711036aba94c51b605d709..298f1e969b025954544412779ef973ed6d3512a3 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 0e98ff04323dc3adaaacbe073de60da80cc9b7c6..6a11b02492887aa6dfb794535426ab1b93abbbfc 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 fa2496e20e7bad53855a99f76127cc87266bcfe8..25e09c574e85a29d1b17cb91efbf6ebe84fb036a 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 5895cc378d503b42ab2ebfe5273b0fcc9f808188..bc36021e63b9416f52fe7d7ef8286f24abecd189 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 2c06cd6f66ce42225086a060b63ddf52bbc41100..03cf5b68777b4b75d72d7a58745a9c6bd6632b0f 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 7876c61264d060b7389040fcf4f3350db3be7043..2f0d91ef41fdbe80b1593fd7a5a4960dc04fa25d 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 958aaf0c7ec96ec3541218fa5c45cd6c18e11a39..a33b42535405401c90e1b5ea5c0a5535f6018da9 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 c4109f199f8aecd6ba1858968814aafedd7182a1..60079658d96f6e2da70efbf5a1dcfd9dc8ca86ad 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 919c733070e0bf089869b9b4be14b03df6d890b5..5200607d5ddd6601a39adb6607d71714a8472cd3 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 1d5b46e6ec45fa2b5834377ed9fbb32f16ed8049..0870a79f7bc14442e7b928778c7e81b35a2cd1a8 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 b97cf944b476f08673d345a6215b4820571837bb..a0bb9ec6739067e6f842df53661601b00f96098e 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 b21ee120ca366ad2a25512b7842b52a7a1107484..deca2e7a0712627c456e5d9b2c3b859f8aa9a485 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 bd2c2e23a80821d083a91c3fed42f757d710bbdd..a4e427b1ee24f68eaa4497ab8758a251242f4cda 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 1f09ca4efd49d8d3eb268343f11b429e35a5ddf2..1a189e4f0942f23305944fe72006a4078cc75cc8 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 774233ede0cfdf564df2ab16bd5fdac5f56af8ac..dc569af6685344fc724fededb9d2756f1df644ae 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 6a1f6f869cd42947415ac0297ee74421f26d072f..5c098cb633340991a07ce5b8e584347986afa3c1 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 bee63e220ed863d5eba87f06c02201c6122965e8..8d35248bdd910741e2592634e20d1e0164e4ff12 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 7de02bfc41359f2517f1d40ca2cad137d0bed11e..9fd821f1d78c038c78dbc66d85ad8db1bf034e39 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 f1804bca2d0629b1ebf1eb0dd1f54890d119d005..b5291e668a79a83822abd9c524990fac78f5d180 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 26a9fd6f739ddb36b7203770d238c23bf74b1fb9..e728e86c12846d81ebe9dc43b7e8702a5ddea1f4 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 c7e75ec188774fbac331ae5e08159c25b7032a47..8a406ea9fbb9c10ca525c55cbf8392e0b857d68c 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 e15181f4cae99ec3e72ebd4b87175d51ef64d407..88c0b7dc0f48529f1c17ffcb37386f60320352c8 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 769c38bef42e1f1448fadcaf1fa9282251c556f0..7687f4bb63fc7f8baf8f8fdf475c6328d5a49549 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 1358d7f70ddf66c18514f317582d1a36363a7256..3ec327f1816d03dd0c27edced98ac40d5dd42e12 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 47ac27e84cf1132beafb678bfba2ff7f96bc7ad7..ed04a850dd80e490b646d19e7540d0ec5cfd27b7 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 5094f015825b4ffea1c7a764eb2479e0eb0e3b22..c23c42d3a32540ceb4cdd373dc60a4c88c784ed4 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 3d16e6cf7ccd37a9d0c4a907ce896b3ce0d1f3fa..266ee6cd86232c1a737dc14d0a3b71b693598479 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 1b84d5815f1900ae0d13dac86d8cdd5cf5eae3fa..f4783b6e54949d41f225bf18f2d3dc84f1dd4e1a 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 654e1a2587cfaaa167bf34557b1c4e262dcb8919..fc6c45b84f8718c5c94bdcb9114e27752cf9354e 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 6a3eb72722e1140d7491ebda574adaef9e6ccc22..405eb1345fcc6a057d2bc3c625798cca205eeb5b 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 96f678f259f6397c9a96b39f355abff5783dc2f9..b1bcd471812767798fb40da97deab07bec05feea 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 c526d882e0cab0e45b8900faa62ca2fb458326d6..c38549f142937edeb51ead8e49dcc4f32314c042 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 3d8ef596589d8d6d59616776b4a44e658ee24579..48b7bcc8def9613e7e523faea51a848a92cfd3d1 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 d361b1a6bd802bca13e93232503b034217087c40..f025435a0c9900fe54370f6cb8f92a47f73ae787 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 95c6d620b09328e06de9eef336d17e24e77ef223..376bfe09265ca670793999bad11e8acc0917939b 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 1a370f399ac8818719af12fee01291e9983eacb3..6860fea65b902448bc8fdf38b042b9f7c6b8e6eb 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 af85b3b31185b3f48e382916c873fedc780a578a..d3c7781a87880a3c4af95df66ac1f1c87e29fa4f 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 a7f74450038c02b335b3a9662b72c5247af7ccac..23f16803f93640dd068958330604229ce4528a64 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 bc9e1a84582d31d59594eb49a86c8e9902b00c41..bf8e757ca724e7904b224f814f0f402f4a2321c7 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 b7b99025abd740e91f20104999fec59cbcd6046f..6e4130266e9a67edded28e6cb3d05db4a19538b1 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 19a53b215869a6f72c62dbec4da4dde163a817e1..f272c4880568906303686706e14d72604f301ab8 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 7e5ba1327b96ae9a7310cbd718257af792569057..8255bc6c632fab97fe8e429f3ab87c666a0736b2 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 67d0e6c2a9ddf78836fef9e72f033e883bd01001..8571e5769b39e37670061e85e0ced37f1c071c21 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 4af15407f4942d8b3de8e8a7dae7259db53b499c..6870cc0793d7b802253ead953039116b0a69c478 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 1cfc3aae792b1663c3fbeb4fd38fd60f5bc33516..22533b6add480625f54ea679c14f866a7402bf70 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 072520dce41a2a383a6a096bc28c3559a6fa5467..8beb7d2a559d02b8322f5c75fd42a05edf73f207 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