This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Replace mxnet_option macro with standard CMAKE_DEPENDENT_OPTION #17018
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc @junrushao1994 who may want to offer suggestions |
leezu
force-pushed
the
cmakedependentoption
branch
2 times, most recently
from
December 9, 2019 07:39
90110f0
to
be66bc5
Compare
I think I am a very beginner in using cmake. Looks like |
yajiedesign
suggested changes
Dec 10, 2019
leezu
force-pushed
the
cmakedependentoption
branch
from
December 10, 2019 02:17
be66bc5
to
734b61e
Compare
5 tasks
yajiedesign
reviewed
Dec 10, 2019
yajiedesign
reviewed
Dec 10, 2019
yajiedesign
approved these changes
Dec 10, 2019
leezu
added
pr-awaiting-merge
Review and CI is complete. Ready to Merge
and removed
pr-awaiting-review
PR is waiting for code review
labels
Dec 10, 2019
yajiedesign
pushed a commit
to yajiedesign/mxnet
that referenced
this pull request
Jan 5, 2020
…ranch Fix CUDNN detection for CMake build (apache#17019) Replace mxnet_option macro with standard CMAKE_DEPENDENT_OPTION (apache#17018) Switch to modern CMake CUDA handling (apache#17031) Introduce unified MXNET_CUDA_ARCH option to specify cuda architectures. Previously cuda architecture setting was partially broken and different options were applied to different parts of the build (CUDA_ARCH_NAME CUDA_ARCH_BIN CUDA_ARCH_PTX and CUDA_ARCH_LIST). Include FindCUDAToolkit from CMake 3.17, which replaces the deprecated FindCUDA functionality for finding the cuda toolkit include directories and libraries. Workaround for DLL size limitation on Windows (apache#16980) * change windows build system. add gen_warp cpp version add add_custom_command to run warp_gen add download cmake add option change option add dynamic read mxnet dll
ptrendx
pushed a commit
that referenced
this pull request
Jan 5, 2020
Fix CUDNN detection for CMake build (#17019) Replace mxnet_option macro with standard CMAKE_DEPENDENT_OPTION (#17018) Switch to modern CMake CUDA handling (#17031) Introduce unified MXNET_CUDA_ARCH option to specify cuda architectures. Previously cuda architecture setting was partially broken and different options were applied to different parts of the build (CUDA_ARCH_NAME CUDA_ARCH_BIN CUDA_ARCH_PTX and CUDA_ARCH_LIST). Include FindCUDAToolkit from CMake 3.17, which replaces the deprecated FindCUDA functionality for finding the cuda toolkit include directories and libraries. Workaround for DLL size limitation on Windows (#16980) * change windows build system. add gen_warp cpp version add add_custom_command to run warp_gen add download cmake add option change option add dynamic read mxnet dll Co-authored-by: Leonard Lausen <leonard@lausen.nl>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Replace mxnet_option macro with standard CMAKE_DEPENDENT_OPTION.
Using standard language constructs improves maintainability and eases reading the code.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments
@cjolivier01 please confirm the change in
FindMKL.cmake
is correct. Previously, based on #14743, if the condition was false, the option was set toOFF
.