Update cpp_extension.py (#18638)
authorBloodAxe <ekhvedchenya@gmail.com>
Tue, 2 Apr 2019 14:49:40 +0000 (07:49 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 2 Apr 2019 14:56:38 +0000 (07:56 -0700)
commit5ade96fc8461cf40f8bddd9c1a562ebd0c657a0c
treec66a2a1f5797a1cdf7446eb9d1a777cd462beb17
parentfba89b2ae1fa294deff2b71274905dd7e27ad466
Update cpp_extension.py (#18638)

Summary:
Hi. It seems that when building CPP-extensions with CUDA for Windows, an `extra_cuda_cflags` options are not properly forwarded to `nvcc`.

Use of extra CUDA options is necessary to build, for instance, a InplaceABN (https://github.com/mapillary/inplace_abn), which requires `--expt-extended-lambda` option.

This PR adds one line that correctly appends `extra_cuda_cflags`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18638

Differential Revision: D14704270

Pulled By: ezyang

fbshipit-source-id: e1e330d193d9afd5707a5437a74c0499460d2b90
torch/utils/cpp_extension.py