File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
* This file is generated by gen_metal_shader_lib.py
29
29
*/
30
30
31
- #ifdef ATEN
31
+ #ifdef USE_ATEN
32
32
using namespace at::native::mps;
33
33
#else
34
34
#include <torchao/experimental/kernels/mps/src/OperationUtils.h>
Original file line number Diff line number Diff line change 17
17
#include < fstream>
18
18
#include < sstream>
19
19
20
- #ifdef ATEN
20
+ #ifdef USE_ATEN
21
21
#include < ATen/native/mps/OperationUtils.h>
22
22
using namespace at ::native::mps;
23
23
inline void finalize_block (MPSStream* mpsStream) {}
Original file line number Diff line number Diff line change 16
16
name = "torchao_mps_ops" ,
17
17
sources = ["register.mm" ],
18
18
include_dirs = [os .getenv ("TORCHAO_ROOT" )],
19
- extra_compile_args = ["-DATEN =1" ],
19
+ extra_compile_args = ["-DUSE_ATEN =1" ],
20
20
),
21
21
],
22
22
cmdclass = {"build_ext" : BuildExtension },
You can’t perform that action at this time.
0 commit comments