Skip to content

Conversation

@soumith
Copy link
Contributor

@soumith soumith commented Jun 15, 2018

  1. remove the WITH_* / NO_* legacy options in CMakeLists.txt and aten/CMakeLists.txt
  2. Sed the following variables from WITH_* to USE_* using find . -type f -exec sed -i 's/WITH_NCCL/USE_NCCL/g' {} +
WITH_CUDA
WITH_CUDNN
WITH_DISTRIBUTED
WITH_DISTRIBUTED_MW
WITH_GLOO_IBVERBS
WITH_NCCL
WITH_ROCM
WITH_NUMPY
WITH_SYSTEM_NCCL
WITH_MKLDNN
WITH_NNPACK
WITH_C10D
WITH_NINJA
  1. remove all instances of NO_* in all files except setup.py and README.md

The following variables were checked and worked around:

NO_CUDA
NO_CUDNN
NO_MKLDNN
NO_NNPACK
NO_DISTRIBUTED
NO_SYSTEM_NCCL
  1. in setup.py, on instance of NO_* or WITH_* of supported variables, hotpatch a USE_* equivalent

Copy link
Contributor

@Yangqing Yangqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#lavish_praises

config_env_vars = ['CUDA', 'CUDNN', 'MKLDNN', 'NNPACK', 'DISTRIBUTED', 'DISTRIBUTED_MW',
'SYSTEM_NCCL', 'GLOO_IBVERBS']

def hotpatch_var(var):

This comment was marked as off-topic.

@soumith soumith merged commit dc186cc into master Jun 15, 2018
@soumith soumith deleted the removenovars branch September 20, 2018 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants