-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[MXNET-74]Update mkldnn to the newest & Add clang build test with mkldnn. #9918
Changes from 15 commits
de64891
cbc2699
8feeb90
8126acb
f87cdb6
58f3844
a297465
c9e45ac
a258d08
cb7c8fb
781ec00
2c7647b
b7be591
b246a05
98484d9
17747f8
bc5d44c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,6 +175,24 @@ try { | |
} | ||
} | ||
}, | ||
'CPU: Clang 3.9 MKLDNN': { | ||
node('mxnetlinux-cpu') { | ||
ws('workspace/build-cpu-clang39') { | ||
init_git() | ||
sh "ci/build.py --build --platform ubuntu_cpu /work/runtime_functions.sh build_ubuntu_cpu_clang39_mkldnn" | ||
pack_lib('mkldnn_cpu', mx_mkldnn_lib) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate name |
||
} | ||
} | ||
}, | ||
'CPU: Clang 5 MKLDNN': { | ||
node('mxnetlinux-cpu') { | ||
ws('workspace/build-cpu-clang50') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you, I am going to fix it:) |
||
init_git() | ||
sh "ci/build.py --build --platform ubuntu_cpu /work/runtime_functions.sh build_ubuntu_cpu_clang50_mkldnn" | ||
pack_lib('mkldnn_cpu', mx_mkldnn_lib) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate name |
||
} | ||
} | ||
}, | ||
'CPU: MKLDNN': { | ||
node('mxnetlinux-cpu') { | ||
ws('workspace/build-mkldnn-cpu') { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,13 +237,14 @@ mkldnn_memory_format_t GetDefaultFormat(mkldnn::memory::desc desc) { | |
case mkldnn_gOIhw16o16i: | ||
case mkldnn_gIOhw16o16i: | ||
case mkldnn_gOihw8o: | ||
case mkldnn_Goihw8g: | ||
case mkldnn_gOihw16o: | ||
case mkldnn_gOhwi8o: | ||
case mkldnn_gOhwi16o: | ||
case mkldnn_gOhIw16o4i: | ||
return mkldnn_goihw; | ||
default: | ||
LOG(FATAL) << "Unknown MKLDNN format for 4 dimensions: " << desc.data.format; | ||
LOG(FATAL) << "Unknown MKLDNN format for 5 dimensions: " << desc.data.format; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a test for this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We notice that there is a test case failed here and it was caused by a missing data format "mkldnn_Goihw8g". Then we found the error message is misleading. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aah great. But the error message is indeed pretty misleading. Would it be possible to make a better fitting test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean a negative test case which can run into the default statement? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because all the 5D data formats that mkldnn supported currently are covered by the swich-case statement here. So I don't think we can create a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sounds like a good idea! Especially considering that updating the MKLDNN submodule requires a PR, problems like this would be caught during an early stage. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @marcoabreu Sorry for late response. It seems a little difficult to monitor the change of a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you create the jira issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Created. MXNET-98 |
||
return mkldnn_format_undef; | ||
} | ||
} else { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're trying to give each build task its own unique workspace. I'd recommend we change this to: