Register CPU/CUDA fuser dynamically (#15887)
authorZachary DeVito <zdevito@fb.com>
Fri, 11 Jan 2019 18:45:40 +0000 (10:45 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 11 Jan 2019 18:50:35 +0000 (10:50 -0800)
commit3f6b212e801adf4a0ad99839022aa74f7f0b0580
tree4874e54690affe0ba24414f299b4f249452b94a2
parentd580d3583b0e037c73bd6ebcf848efccfdc5b693
Register CPU/CUDA fuser dynamically (#15887)

Summary:
This avoids a bunch of conditional compilation logic
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15887

Reviewed By: eellison

Differential Revision: D13613239

Pulled By: zdevito

fbshipit-source-id: a18fc69676b3ef19b4469ab58d8714d1f6efccbb
33 files changed:
CONTRIBUTING.md
test/cpp/jit/tests.h
test/test_jit.py
tools/build_variables.py
torch/CMakeLists.txt
torch/csrc/jit/fuser/arg_spec.h
torch/csrc/jit/fuser/codegen.cpp
torch/csrc/jit/fuser/codegen.h
torch/csrc/jit/fuser/compiler.cpp
torch/csrc/jit/fuser/compiler.h
torch/csrc/jit/fuser/config.h.in [deleted file]
torch/csrc/jit/fuser/cpu/dynamic_library.h
torch/csrc/jit/fuser/cpu/dynamic_library_unix.cpp [new file with mode: 0644]
torch/csrc/jit/fuser/cpu/dynamic_library_win.cpp [new file with mode: 0644]
torch/csrc/jit/fuser/cpu/fused_kernel.cpp
torch/csrc/jit/fuser/cpu/fused_kernel.h
torch/csrc/jit/fuser/cpu/resource_strings.h
torch/csrc/jit/fuser/cpu/temp_file.h
torch/csrc/jit/fuser/cuda/fused_kernel.cpp
torch/csrc/jit/fuser/cuda/fused_kernel.h
torch/csrc/jit/fuser/cuda/resource_strings.h
torch/csrc/jit/fuser/executor.cpp
torch/csrc/jit/fuser/executor.h
torch/csrc/jit/fuser/fallback.h
torch/csrc/jit/fuser/fused_kernel.h
torch/csrc/jit/fuser/interface.cpp
torch/csrc/jit/fuser/kernel_cache.h
torch/csrc/jit/fuser/kernel_spec.h
torch/csrc/jit/fuser/partition_desc.h
torch/csrc/jit/fuser/tensor_desc.h
torch/csrc/jit/fuser/tensor_info.h
torch/csrc/jit/init.cpp
torch/csrc/jit/passes/graph_fuser.cpp