Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
356ff436
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
356ff436
编写于
7月 26, 2022
作者:
F
fwenguang
提交者:
GitHub
7月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MLU] rollback cntoolkit vetsion to 2.8.5 (#44595)
上级
4bc22b69
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
32 deletion
+33
-32
paddle/fluid/platform/device/mlu/mlu_info.h
paddle/fluid/platform/device/mlu/mlu_info.h
+1
-1
python/paddle/fluid/tests/unittests/mlu/test_grid_sampler_op_mlu.py
...dle/fluid/tests/unittests/mlu/test_grid_sampler_op_mlu.py
+20
-19
tools/dockerfile/Dockerfile.mlu
tools/dockerfile/Dockerfile.mlu
+12
-12
未找到文件。
paddle/fluid/platform/device/mlu/mlu_info.h
浏览文件 @
356ff436
...
@@ -16,9 +16,9 @@ limitations under the License. */
...
@@ -16,9 +16,9 @@ limitations under the License. */
#ifdef PADDLE_WITH_MLU
#ifdef PADDLE_WITH_MLU
#include <cn_api.h>
#include <cn_api.h>
#include <cndrv_id.h>
#include <cnnl.h>
#include <cnnl.h>
#include <cnpapi.h>
#include <cnpapi.h>
#include <cnpapi_cndrv_id.h>
#include <cnrt.h>
#include <cnrt.h>
#ifdef PADDLE_WITH_CNCL
#ifdef PADDLE_WITH_CNCL
#include <cncl.h>
#include <cncl.h>
...
...
python/paddle/fluid/tests/unittests/mlu/test_grid_sampler_op_mlu.py
浏览文件 @
356ff436
...
@@ -186,15 +186,16 @@ class TestGridSamplerOp(OpTest):
...
@@ -186,15 +186,16 @@ class TestGridSamplerOp(OpTest):
self
.
mode
=
"bilinear"
self
.
mode
=
"bilinear"
class
Case1
(
TestGridSamplerOp
):
# TODO(fwg): Test this case when cnnl support align_corners = True.
# class Case1(TestGridSamplerOp):
def
initTestCase
(
self
):
#
self
.
x_shape
=
(
2
,
3
,
5
,
6
)
# def initTestCase(self):
self
.
grid_shape
=
(
2
,
8
,
9
,
2
)
# self.x_shape = (2, 3, 5, 6)
self
.
theta_shape
=
(
2
,
2
,
3
)
# self.grid_shape = (2, 8, 9, 2)
self
.
align_corners
=
True
# self.theta_shape = (2, 2, 3)
self
.
padding_mode
=
"zeros"
# self.align_corners = True
self
.
mode
=
"bilinear"
# self.padding_mode = "zeros"
# self.mode = "bilinear"
class
LargeInputCase
(
TestGridSamplerOp
):
class
LargeInputCase
(
TestGridSamplerOp
):
...
@@ -208,16 +209,16 @@ class LargeInputCase(TestGridSamplerOp):
...
@@ -208,16 +209,16 @@ class LargeInputCase(TestGridSamplerOp):
self
.
mode
=
"bilinear"
self
.
mode
=
"bilinear"
class
Case2
(
LargeInputCase
):
# TODO(fwg): Test this case when cnnl support align_corners = True.
# class Case2(LargeInputCase):
def
initTestCase
(
self
):
#
self
.
x_shape
=
(
2
,
3
,
128
,
128
)
# def initTestCase(self):
self
.
grid_shape
=
(
2
,
130
,
130
,
2
)
# self.x_shape = (2, 3, 128, 128
)
self
.
theta_shape
=
(
2
,
2
,
3
)
# self.grid_shape = (2, 130, 130, 2
)
self
.
align_corners
=
True
# self.theta_shape = (2, 2, 3)
self
.
padding_mode
=
"zeros"
# self.align_corners = True
self
.
mode
=
"bilinear
"
# self.padding_mode = "zeros
"
# self.mode = "bilinear"
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
tools/dockerfile/Dockerfile.mlu
浏览文件 @
356ff436
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
# Update CNTOOLKIT_VERSION, CNNL_VERSION and CNCL_VERSION if using other versions
# Update CNTOOLKIT_VERSION, CNNL_VERSION and CNCL_VERSION if using other versions
#
#
# Build:
# Build:
# - CNTOOLKIT_VERSION
3.0.0-1
# - CNTOOLKIT_VERSION
2.8.5
# - CNNL_VERSION 1.1
1.0-1
# - CNNL_VERSION 1.1
0.5
# - CNCL_VERSION 1.
2.0-1
# - CNCL_VERSION 1.
1.2
#
#
# Download three packages from FTP (need to connect cambricon AE to get FTP url)
# Download three packages from FTP (need to connect cambricon AE to get FTP url)
# - cntoolkit_
3.0.0-1
.ubuntu18.04_amd64.deb
# - cntoolkit_
2.8.5
.ubuntu18.04_amd64.deb
# - cnnl_1.1
1.0-1
.ubuntu18.04_amd64.deb
# - cnnl_1.1
0.5
.ubuntu18.04_amd64.deb
# - cncl_1.
2.0-1
.ubuntu18.04_amd64.deb
# - cncl_1.
1.2
.ubuntu18.04_amd64.deb
# copy them to current directory first, then run build commands
# copy them to current directory first, then run build commands
#
#
# For example:
# For example:
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
# (get cncl pkg)
# (get cncl pkg)
#
#
# docker build -f Dockerfile.mlu \
# docker build -f Dockerfile.mlu \
# --build-arg CNTOOLKIT_VERSION=
3.0.0-1
\
# --build-arg CNTOOLKIT_VERSION=
2.8.5
\
# --build-arg CNNL_VERSION=1.1
1.0-1
\
# --build-arg CNNL_VERSION=1.1
0.5
\
# --build-arg CNCL_VERSION=1.
2.0-1
\
# --build-arg CNCL_VERSION=1.
1.2
\
# -t paddlepaddle/paddle:latest-dev-mlu .
# -t paddlepaddle/paddle:latest-dev-mlu .
#
#
# without mlu device:
# without mlu device:
...
@@ -40,9 +40,9 @@ MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
...
@@ -40,9 +40,9 @@ MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
ENV WITH_GPU=OFF
ENV WITH_GPU=OFF
ARG CNTOOLKIT_VERSION=
3.0.0-1
ARG CNTOOLKIT_VERSION=
2.8.5
ARG CNNL_VERSION=1.1
1.0-1
ARG CNNL_VERSION=1.1
0.5
ARG CNCL_VERSION=1.
2.0-1
ARG CNCL_VERSION=1.
1.2
ARG CNTOOLKIT_PKG=cntoolkit_$CNTOOLKIT_VERSION.ubuntu18.04_amd64.deb
ARG CNTOOLKIT_PKG=cntoolkit_$CNTOOLKIT_VERSION.ubuntu18.04_amd64.deb
ARG CNNL_PKG=cnnl_$CNNL_VERSION.ubuntu18.04_amd64.deb
ARG CNNL_PKG=cnnl_$CNNL_VERSION.ubuntu18.04_amd64.deb
ARG CNCL_PKG=cncl_$CNCL_VERSION.ubuntu18.04_amd64.deb
ARG CNCL_PKG=cncl_$CNCL_VERSION.ubuntu18.04_amd64.deb
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录