find libnvToolsExt instead of using only hardcoded path (#16714)
authorThomas Viehmann <tv.code@beamnet.de>
Sun, 10 Feb 2019 21:57:57 +0000 (13:57 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 10 Feb 2019 22:01:00 +0000 (14:01 -0800)
commit6a528007a6f025c4a0fae2be4e4a964f219a8d3f
tree61c45308c71d0f1394f0a0ec3468b9ca6a6928af
parent8c9df48fd433ee51d3305d2f500b962baa480aee
find libnvToolsExt instead of using only hardcoded path (#16714)

Summary:
This changes the libnvToolsExt dependency to go through CMake find_library.

I have a machine where cuda libs, and libnvToolsExt in particular, are in the "usual library locations". It would be neat if we could find libnvToolsExt and use the path currently hardcoded as default.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16714

Differential Revision: D14020315

Pulled By: ezyang

fbshipit-source-id: 00be27be10b1863ca92fd585f273d50bded850f8
cmake/TorchConfig.cmake.in
torch/CMakeLists.txt