-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Fix build issue with USE_CUDNN=0 #11470
Changes from 1 commit
6961a20
7bdf6c7
06815b4
def0842
e7e6084
a488e43
0631682
2d11ade
f338866
2c7453a
a5c2c79
71d7d72
65d01e0
4ce776c
556dee1
67d00a3
266ba86
e837777
2f590ee
a2fc5f5
749981d
9573913
e8d87dd
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 |
---|---|---|
|
@@ -281,6 +281,17 @@ try { | |
} | ||
} | ||
}, | ||
'GPU: MKLDNN_CUDNNOFF': { | ||
node('mxnetlinux-cpu') { | ||
ws('workspace/build-mkldnn-gpu-nocudnn') { | ||
timeout(time: max_time, unit: 'MINUTES') { | ||
init_git() | ||
docker_run('ubuntu_build_cuda', 'build_ubuntu_gpu_mkldnn_cuda', false) | ||
pack_lib('mkldnn_gpu_nocudnn', mx_mkldnn_lib) | ||
} | ||
} | ||
} | ||
}, | ||
'GPU: CUDA9.1+cuDNN7': { | ||
node('mxnetlinux-cpu') { | ||
ws('workspace/build-gpu') { | ||
|
@@ -645,6 +656,34 @@ try { | |
} | ||
} | ||
}, | ||
'Python2: MKLDNN-GPU-NOCUDNN': { | ||
node('mxnetlinux-gpu') { | ||
ws('workspace/ut-python2-mkldnn-gpu-nocudnn') { | ||
try { | ||
init_git() | ||
unpack_lib('mkldnn_gpu_nocudnn', mx_mkldnn_lib) | ||
python2_gpu_ut('ubuntu_gpu') | ||
publish_test_coverage() | ||
} finally { | ||
collect_test_results_unix('nosetests_gpu.xml', 'nosetests_python2_mkldnn_gpu_nocudnn.xml') | ||
} | ||
} | ||
} | ||
}, | ||
'Python3: MKLDNN-GPU-NOCUDNN': { | ||
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 it needed to test python2 and python3 or is one enough? 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. one is enough , i will remove python2. |
||
node('mxnetlinux-gpu') { | ||
ws('workspace/ut-python3-mkldnn-gpu-nocudnn') { | ||
try { | ||
init_git() | ||
unpack_lib('mkldnn_gpu_nocudnn', mx_mkldnn_lib) | ||
python3_gpu_ut('ubuntu_gpu') | ||
publish_test_coverage() | ||
} finally { | ||
collect_test_results_unix('nosetests_gpu.xml', 'nosetests_python3_mkldnn_gpu_nocudnn.xml') | ||
} | ||
} | ||
} | ||
}, | ||
'Python3: CentOS 7 CPU': { | ||
node('mxnetlinux-cpu') { | ||
ws('workspace/build-centos7-cpu') { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -457,6 +457,24 @@ build_ubuntu_gpu_mkldnn() { | |
report_ccache_usage | ||
} | ||
|
||
build_ubuntu_gpu_mkldnn_nocudnn() { | ||
set -ex | ||
|
||
build_ccache_wrappers | ||
|
||
make \ | ||
DEV=1 \ | ||
USE_CPP_PACKAGE=1 \ | ||
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. No need for the cpp package here since we don't run the cpp tests 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. not sure about this . shouldnt we test if it builds fine with CUDNN with CPP_PACKAGE just in case cpp package depends on the flag to use cudnn specific functionality (unlikely) ? 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. The CPP package just generates wrappers around the C-API and should not rely on backend-specific things like CUDA or CUDNN. Thus, I'd say that we should keep it separate and only build the CPP package if we're actually going to run it (which we do in another 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. okay, removed! |
||
USE_BLAS=openblas \ | ||
USE_MKLDNN=1 \ | ||
USE_CUDA=1 \ | ||
USE_CUDA_PATH=/usr/local/cuda \ | ||
USE_CUDNN=0 \ | ||
-j$(nproc) | ||
|
||
report_ccache_usage | ||
} | ||
|
||
build_ubuntu_gpu_cuda91_cudnn7() { | ||
set -ex | ||
# unfortunately this build has problems in 3rdparty dependencies with ccache and make | ||
|
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.
supposed to be build_ubuntu_gpu_mkldnn_nocudnn?
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.
good catch! will fix.