ColossalAI/colossalai/kernel/cuda_native/csrc/compat.h

13 lines
238 B
C
Raw Normal View History

2021-12-21 04:19:52 +00:00
/*This code from NVIDIA apex:
* https://github.com/NVIDIA/apex
* with minor changes. */
#ifndef TORCH_CHECK
#define TORCH_CHECK AT_CHECK
#endif
#ifdef VERSION_GE_1_3
#define DATA_PTR data_ptr
#else
#define DATA_PTR data
#endif