Skip to content

Commit 2ba1a61

Browse files
metal lowbit kernels: replace ATEN by USE_ATEN
Differential Revision: D65253390 Pull Request resolved: #1263
1 parent eaa3daa commit 2ba1a61

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

torchao/experimental/kernels/mps/codegen/gen_metal_shader_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* This file is generated by gen_metal_shader_lib.py
2929
*/
3030
31-
#ifdef ATEN
31+
#ifdef USE_ATEN
3232
using namespace at::native::mps;
3333
#else
3434
#include <torchao/experimental/kernels/mps/src/OperationUtils.h>

torchao/experimental/kernels/mps/src/lowbit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <fstream>
1818
#include <sstream>
1919

20-
#ifdef ATEN
20+
#ifdef USE_ATEN
2121
#include <ATen/native/mps/OperationUtils.h>
2222
using namespace at::native::mps;
2323
inline void finalize_block(MPSStream* mpsStream) {}

torchao/experimental/ops/mps/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
name="torchao_mps_ops",
1717
sources=["register.mm"],
1818
include_dirs=[os.getenv("TORCHAO_ROOT")],
19-
extra_compile_args=["-DATEN=1"],
19+
extra_compile_args=["-DUSE_ATEN=1"],
2020
),
2121
],
2222
cmdclass={"build_ext": BuildExtension},

0 commit comments

Comments
 (0)