Commit f8fe9a2b authored by Peter Bell's avatar Peter Bell Committed by Facebook GitHub Bot
Browse files

Remove THGeneral (#69041)

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

`TH_CONCAT_{N}` is still being used by THP so I've moved that into
it's own header but all the compiled code is gone.

Test Plan: Imported from OSS

Reviewed By: anjali411

Differential Revision: D32872477

Pulled By: ngimel

fbshipit-source-id: 06c82d8f96dbcee0715be407c61dfc7d7e8be47a
parent d049cd2e
......@@ -208,8 +208,7 @@ __device__ static float atomicMin(float* address, float val) {
#define IABS(a) abs(a)
// Checks.
#define CHECKOK C10_CUDA_CHECK
#define ARGCHECK THArgCheck
#define ARGCHECK TORCH_CHECK_ARG
// Math.
#define NORM3DF(x, y, z) norm3df(x, y, z)
......
......@@ -155,8 +155,7 @@ INLINE void ATOMICADD_F3(T* address, T val) {
#define IABS(a) abs(a)
// Checks.
#define CHECKOK THCheck
#define ARGCHECK THArgCheck
#define ARGCHECK TORCH_CHECK_ARG
// Math.
#define NORM3DF(x, y, z) sqrtf(x* x + y * y + z * z)
......
......@@ -24,12 +24,10 @@
// #pragma diag_suppress = 68
#include <ATen/cuda/CUDAContext.h>
// #pragma pop
#include <TH/TH.h>
#include "../cuda/commands.h"
#else
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#include <TH/TH.h>
#pragma clang diagnostic pop
#include "../host/commands.h"
#endif
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment