[6/n] Migrate activation kernels, gptq, gguf, non cutlass w8a8 to libtorch stable ABI (continued) (#42663)
Signed-off-by: Mikayla Gawarecki <mikaylagawarecki@gmail.com> Signed-off-by: Chris Leonard <chleonar@redhat.com> Co-authored-by: Mikayla Gawarecki <mikaylagawarecki@gmail.com> Co-authored-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
co-authored by
Mikayla Gawarecki
Shengqi Chen
parent
40651c0207
commit
07aeaf9d4d
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
// Shared TORCH_UTILS_CHECK across both libtorch stable and unstable source
|
||||
// files. Keep this header free of CUTLASS/CUTE so attention/quant headers can
|
||||
// use it.
|
||||
//
|
||||
// If TORCH_TARGET_VERSION is defined, we are building _C_stable_libtorch.so so
|
||||
// use STD_TORCH_CHECK via header-only.
|
||||
// Otherwise, use TORCH_CHECK via torch/all.h.
|
||||
|
||||
#ifdef TORCH_TARGET_VERSION
|
||||
#include <torch/headeronly/util/Exception.h>
|
||||
#define TORCH_UTILS_CHECK STD_TORCH_CHECK
|
||||
#else
|
||||
#include <torch/all.h>
|
||||
#define TORCH_UTILS_CHECK TORCH_CHECK
|
||||
#endif
|
||||
Reference in New Issue
Block a user