Skip to content

Commit

Permalink
upgrade mlu-ops version to 0.4.1 and reformat reference. (#336)
Browse files Browse the repository at this point in the history
Co-authored-by: budefei <[email protected]>
  • Loading branch information
defei-coder and budefei authored Dec 19, 2022
1 parent 70749fa commit c4495e2
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bangcops_release_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
runner: [mlu270-x5k, mlu290-m5, mlu370-m8]
os: [ubuntu16.04, ubuntu18.04, ubuntu20.04, debian9, debian10, centos7, centos8]
os: [ubuntu18.04, ubuntu20.04, debian9, debian10, centos7, centos8]
runs-on: ${{matrix.runner}}
steps:
- uses: actions/checkout@v3
Expand All @@ -27,7 +27,7 @@ jobs:
- name: mlu_ops_version_check
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-${{matrix.os}}
bash version_check.sh 0.4.0
bash version_check.sh 0.4.1
- name: bangc_ops_release_test_cases
run: >
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: build_bangc_ops
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
docker run --rm -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./build.sh --sub_module=bangc
- name: build_bangpy_ops
Expand All @@ -32,14 +32,14 @@ jobs:
- name: bangc_ops_release_temp_cases
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/default_platform
- name: test_bangc_ops_release_temp_370_cases
if: matrix.runner == 'mlu370-m8'
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/370
- name: test_bangpy_ops
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: build_bangc_ops
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
docker run --rm -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./build.sh --sub_module=bangc
- name: build_bangpy_ops
Expand All @@ -30,27 +30,27 @@ jobs:
- name: bangc_ops_release_test_cases
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./test.sh --sub_module=bangc --cases_dir=/testdata/release_test/default_platform
- name: bangc_ops_release_temp_cases
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/default_platform
- name: test_bangc_ops_release_test_370_cases
if: matrix.runner == 'mlu370-m8'
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./test.sh --sub_module=bangc --cases_dir=/testdata/release_test/370
- name: test_bangc_ops_release_temp_370_cases
if: matrix.runner == 'mlu370-m8'
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu16.04
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/mluops_ci:v0.4.0-devel-x86_64-ubuntu18.04
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/370
- name: test_bangpy_ops
Expand Down
10 changes: 5 additions & 5 deletions bangc-ops/mlu_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#define MLUOP_MAJOR 0
#define MLUOP_MINOR 4
#define MLUOP_PATCHLEVEL 0
#define MLUOP_PATCHLEVEL 1

#include <stdint.h>

Expand Down Expand Up @@ -1800,7 +1800,7 @@ mluOpGetGenerateProposalsV2WorkspaceSize(mluOpHandle_t handle,
*
* @par Reference
* -
* https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/kernels/gpu/generate_proposals_v2_kernel.cu
* https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/kernels/gpu/generate_proposals_kernel.cu
*/
mluOpStatus_t MLUOP_WIN_API
mluOpGenerateProposalsV2(mluOpHandle_t handle,
Expand Down Expand Up @@ -3287,7 +3287,7 @@ mluOpExpand(mluOpHandle_t handle,
@endverbatim
*
* @par Reference
* - http://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/Fill.cpp
* - https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/Fill.cpp
*
*/
mluOpStatus_t MLUOP_WIN_API mluOpFill(
Expand Down Expand Up @@ -3363,7 +3363,7 @@ mluOpStatus_t MLUOP_WIN_API mluOpFill(
* - None.
*
* @par Reference
* - github.com/open-mmlab/mmcv/blob/master/mmcv/ops/psa_mask.py
* - https://github.com/open-mmlab/mmcv/blob/master/mmcv/ops/psa_mask.py
*
*/
mluOpStatus_t MLUOP_WIN_API
Expand Down Expand Up @@ -3445,7 +3445,7 @@ mluOpPsamaskForward(mluOpHandle_t handle,
* - None.
*
* @par Reference
* - github.com/open-mmlab/mmcv/blob/master/mmcv/ops/psa_mask.py
* - https://github.com/open-mmlab/mmcv/blob/master/mmcv/ops/psa_mask.py
*
*/
mluOpStatus_t MLUOP_WIN_API
Expand Down
2 changes: 1 addition & 1 deletion build.property
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.4.0-1",
"version": "0.4.1-1",
"build_requires": {"cntoolkit": ["release","3.2.0-1"]},
"package_type": ["rpm","deb"]
}
19 changes: 19 additions & 0 deletions docs/bangc-docs/release_notes/bangc_ops.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@
+----------------------------+------------------------+--------------------------------+


v0.4.1
-----------------

特性变更
~~~~~~~~~~~~~~~~~~~~~~

- 不再支持Ubuntu16.04。

已修复问题
~~~~~~~~~~~~~~~~~~~~~~

无。

已知遗留问题
~~~~~~~~~~~~~~~~~~~~~~

无。


v0.4.0
-----------------

Expand Down
4 changes: 3 additions & 1 deletion installer/centos7.5/SPECS/mluops-independent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name: mluops
Summary: The Machine Lerning Unit OPerators
Version: 0.4.0
Version: 0.4.1
Release: 1%{?dist}
License: Cambricon Release License
Vendor: Cambricon Inc.
Expand Down Expand Up @@ -76,6 +76,8 @@ cp $RPM_SOURCE_DIR/neuware-env.conf $RPM_BUILD_ROOT/etc/ld.so.conf.d/
%postun -p /sbin/ldconfig

%changelog
* Mon Dec 19 2022 Cambricon Software Team <[email protected]>
- release mluops v0.4.1
* Mon Dec 12 2022 Cambricon Software Team <[email protected]>
- release mluops v0.4.0
* Fri Oct 14 2022 Cambricon Software Team <[email protected]>
Expand Down
6 changes: 6 additions & 0 deletions installer/independent/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
mluops (0.4.1-1.ubuntu16.04) xenial; urgency=medium

* Release mluops v0.4.1

-- Cambricon <[email protected]> Mon, 19 Dec 2022 00:00:00 +0100

mluops (0.4.0-1.ubuntu16.04) xenial; urgency=medium

* Release mluops v0.4.0
Expand Down
6 changes: 6 additions & 0 deletions installer/ubuntu16.04/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
mluops (0.4.1-1.ubuntu16.04) xenial; urgency=medium

* Release mluops v0.4.1

-- Cambricon <[email protected]> Mon, 19 Dec 2022 00:00:00 +0100

mluops (0.4.0-1.ubuntu16.04) xenial; urgency=medium

* Release mluops v0.4.0
Expand Down

0 comments on commit c4495e2

Please sign in to comment.