Canonicalize THD includes with .. in them

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/13980

Reviewed By: jerryzh168

Differential Revision: D13062706

fbshipit-source-id: 100e10d1bae7efc3e13f029708c2c1dd053ce074
This commit is contained in:
Edward Yang 2018-11-14 17:31:32 -08:00 committed by Facebook Github Bot
parent 7ea9c674bc
commit 72da09bb4d
28 changed files with 42 additions and 42 deletions

View File

@ -105,7 +105,7 @@ SET(all_h THD.h ${base_h} ${process_group_h})
EXCLUDE_DIR(all_cpp ".*/generic/.*\\.cpp$")
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/..")
ADD_LIBRARY(THD STATIC ${all_cpp})

View File

@ -7,14 +7,14 @@
#endif
#ifndef _THD_CORE
#include "base/DataChannelRequest.h"
#include "base/TensorDescriptor.h"
#include <THD/base/DataChannelRequest.h>
#include <THD/base/TensorDescriptor.h>
#else
#include "base/DataChannelRequest.hpp"
#include "base/TensorDescriptor.hpp"
#include <THD/base/DataChannelRequest.hpp>
#include <THD/base/TensorDescriptor.hpp>
#endif
#include "base/ChannelType.h"
#include "base/Cuda.h"
#include <THD/base/ChannelType.h>
#include <THD/base/Cuda.h>
#include "process_group/Collectives.h"
#include "process_group/General.h"
#include <THD/process_group/Collectives.h>
#include <THD/process_group/General.h>

View File

@ -1,7 +1,7 @@
#pragma once
#ifdef USE_CUDA
#include "../THD.h"
#include <THD/THD.h>
#include <THC/THC.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include "../THD.h"
#include <THD/THD.h>
#ifndef _THD_CORE
struct _THDRequest;

View File

@ -1,7 +1,7 @@
#pragma once
#include <TH/TH.h>
#include "../THD.h"
#include <THD/THD.h>
#ifdef USE_CUDA
#include <THC/THC.h>
#endif

View File

@ -1,7 +1,7 @@
#pragma once
#include "../ChannelUtils.hpp"
#include "../DataChannel.hpp"
#include <THD/base/ChannelUtils.hpp>
#include <THD/base/DataChannel.hpp>
#include "DataChannelUtils.hpp"
#include "gloo/rendezvous/store.h"

View File

@ -1,6 +1,6 @@
#pragma once
#include "../DataChannel.hpp"
#include <THD/base/DataChannel.hpp>
#include <mpi.h>
#include <memory>

View File

@ -1,5 +1,5 @@
#include "DataChannelNccl.hpp"
#include "../Cuda.hpp"
#include <THD/base/Cuda.hpp>
#include "DataChannelUtils.hpp"
#include <ATen/ATen.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include "../DataChannel.hpp"
#include <THD/base/DataChannel.hpp>
#include "DataChannelUtils.hpp"
#include <nccl.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include "../DataChannel.hpp"
#include <THD/base/DataChannel.hpp>
#include "DataChannelUtils.hpp"
#include <sys/poll.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include "../DataChannel.hpp"
#include <THD/base/DataChannel.hpp>
#include <atomic>
#include <condition_variable>

View File

@ -1,8 +1,8 @@
#pragma once
#include "../ChannelUtils.hpp"
#include "../Cuda.hpp"
#include "../DataChannel.hpp"
#include <THD/base/ChannelUtils.hpp>
#include <THD/base/Cuda.hpp>
#include <THD/base/DataChannel.hpp>
#include "gloo/algorithm.h"
#include "gloo/allgather_ring.h"

View File

@ -1,5 +1,5 @@
#include "Store.hpp"
#include "../ChannelUtils.hpp"
#include <THD/base/ChannelUtils.hpp>
#include <poll.h>
#include <unistd.h>

View File

@ -1,6 +1,6 @@
#pragma once
#include "../ChannelUtils.hpp"
#include <THD/base/ChannelUtils.hpp>
#include "gloo/rendezvous/store.h"
#include <memory>

View File

@ -1,6 +1,6 @@
#pragma once
#include "../ChannelUtils.hpp"
#include <THD/base/ChannelUtils.hpp>
#include <stdexcept>
#include <string>

View File

@ -1,6 +1,6 @@
#pragma once
#include "../ChannelUtils.hpp"
#include <THD/base/ChannelUtils.hpp>
#include <string>
#include <vector>

View File

@ -1,5 +1,5 @@
#include "Collectives.hpp"
#include "../base/ChannelUtils.hpp"
#include <THD/base/ChannelUtils.hpp>
#include "General.hpp"
#include <vector>

View File

@ -1,7 +1,7 @@
#pragma once
#include "../THD.h"
#include "../base/DataChannel.h"
#include <THD/THD.h>
#include <THD/base/DataChannel.h>
THD_API int THDGetRank();
THD_API int THDGetNumProcesses();

View File

@ -1,4 +1,4 @@
#pragma once
#include "Collectives.h"
#include "base/TensorDescriptor.hpp"
#include <THD/base/TensorDescriptor.hpp>

View File

@ -1,5 +1,5 @@
#include "General.hpp"
#include "../base/Exceptions.hpp"
#include <THD/base/Exceptions.hpp>
namespace thd {
std::unique_ptr<DataChannel> dataChannel;

View File

@ -1,8 +1,8 @@
#pragma once
#include <string>
#include "../THD.h"
#include "../base/DataChannel.h"
#include <THD/THD.h>
#include <THD/base/DataChannel.h>
THD_API void THDProcessGroupInit(
THDChannelType channel_type,

View File

@ -2,7 +2,7 @@
#include <memory>
#include "General.h"
#include "base/DataChannel.hpp"
#include <THD/base/DataChannel.hpp>
namespace thd {
extern std::unique_ptr<DataChannel> dataChannel;

View File

@ -1,10 +1,10 @@
#ifdef WITH_GLOO
#include "../base/data_channels/DataChannelGloo.hpp"
#include <THD/base/data_channels/DataChannelGloo.hpp>
#endif // WITH_GLOO
#ifdef WITH_MPI
#include "../base/data_channels/DataChannelMPI.hpp"
#include <THD/base/data_channels/DataChannelMPI.hpp>
#endif // WITH_MPI
#include "../base/data_channels/DataChannelTCP.hpp"
#include <THD/base/data_channels/DataChannelTCP.hpp>
#include "TestUtils.hpp"
#include <THPP/tensors/THTensor.hpp>

View File

@ -1,4 +1,4 @@
#include "../base/data_channels/DataChannelGloo.hpp"
#include <THD/base/data_channels/DataChannelGloo.hpp>
#include "TestUtils.hpp"
#include <THPP/tensors/THTensor.hpp>

View File

@ -1,4 +1,4 @@
#include "../base/data_channels/DataChannelMPI.hpp"
#include <THD/base/data_channels/DataChannelMPI.hpp>
#include <unistd.h>
#include <cassert>

View File

@ -1,4 +1,4 @@
#include "../base/data_channels/DataChannelTCP.hpp"
#include <THD/base/data_channels/DataChannelTCP.hpp>
#include "TestUtils.hpp"
#include <cassert>

View File

@ -1,4 +1,4 @@
#include "../base/data_channels/DataChannelTCP.hpp"
#include <THD/base/data_channels/DataChannelTCP.hpp>
#include "TestUtils.hpp"
#include <THPP/tensors/THTensor.hpp>

View File

@ -1,4 +1,4 @@
#include "../base/data_channels/DataChannelTCP.hpp"
#include <THD/base/data_channels/DataChannelTCP.hpp>
#include "TestUtils.hpp"
#include <THPP/tensors/THTensor.hpp>