-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Add cuda version check to skip building quantization ops for versions less than 8.0 #10710
Add cuda version check to skip building quantization ops for versions less than 8.0 #10710
Conversation
Please note this change is not verifiable by CI since we only support CUDA>=8.0. Please validate it manually |
c439b7b
to
c666eae
Compare
@marcoabreu I launched a Ubuntu 14.04 instance and installed cuda-7.5 and cudnn-6. The build can pass successfully with this PR. Unit tests other than quantization_gpu can pass as well which is as expected. Please help to review: @szha @piiswrong @anirudh2290 |
@@ -270,7 +270,7 @@ void QuantizedConvForwardGPU(const nnvm::NodeAttrs& attrs, | |||
const ConvolutionParam& param = nnvm::get<ConvolutionParam>(attrs.parsed); | |||
CHECK_EQ(param.kernel.ndim(), 2U) | |||
<< "QuantizedConvForward<gpu> only supports 2D convolution for now"; | |||
#if MXNET_USE_CUDNN == 1 && CUDNN_MAJOR >= 6 | |||
#if MXNET_USE_CUDNN == 1 && CUDNN_MAJOR >= 6 && CUDA_VERSION >= 8000 |
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.
Does this need to have an else clause? What is the expected behavior if quantizedpoolforwadgpu is called with cuda version < 8 ?
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.
There will be an error message printed saying that otherwise is not supported. I have made it clearer on specifying cudnn and cuda versions.
82c1da3
to
363de1e
Compare
… less than 8.0 (apache#10710) * Add cuda version check to skip building quantization ops for version less 8 * Clearer error message on cuda and cudnn versions * Trigger CI
… less than 8.0 (apache#10710) * Add cuda version check to skip building quantization ops for version less 8 * Clearer error message on cuda and cudnn versions * Trigger CI
… less than 8.0 (apache#10710) * Add cuda version check to skip building quantization ops for version less 8 * Clearer error message on cuda and cudnn versions * Trigger CI
… less than 8.0 (apache#10710) * Add cuda version check to skip building quantization ops for version less 8 * Clearer error message on cuda and cudnn versions * Trigger CI
Description
Build would fail if users installed cuda prior to version 8.0. Added cuda version check to prevent build failure.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments